/epay/mapi.php is the server-to-server Epay compatibility endpoint. It accepts form POST, creates or reuses a Kyren order, and returns Epay-style response fields such as payurl, qrcode, img, and trade_no depending on the selected channel.
This endpoint uses pid + sign, not x-api-key. Because it is server-to-server, it may be subject to the API IP allowlist when enabled. A failed allowlist check can return numeric code 0 with msg.
Parameters
Required parameters:
Optional parameters:
Example request
Success response example
Failure response example
mapi.php API reference.