curl --request POST \
--url https://api.kyrenpay.com/epay/api.php \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data act=order \
--data pid=merch_001 \
--data key=merchant_raw_api_key \
--data out_trade_no=order_20260409002{
"code": 1,
"msg": "查询订单号成功!",
"trade_no": "order_epay_001",
"out_trade_no": "order_20260409002",
"type": "wxpay",
"pid": "merch_001",
"addtime": "2026-04-09 06:10:20",
"endtime": "2026-04-09 06:11:08",
"name": "AI Credits 1000",
"money": "9.99",
"status": 1,
"param": "user_42",
"buyer": ""
}Epay Compatibility
api.php (order query/refund compatibility endpoint)
Executes compatibility operations with act.
act=order: query order status/result.act=refund: submit a refund for an eligible Epay-source order.
This endpoint also accepts GET with the same parameters.
POST
/
epay
/
api.php
curl --request POST \
--url https://api.kyrenpay.com/epay/api.php \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data act=order \
--data pid=merch_001 \
--data key=merchant_raw_api_key \
--data out_trade_no=order_20260409002{
"code": 1,
"msg": "查询订单号成功!",
"trade_no": "order_epay_001",
"out_trade_no": "order_20260409002",
"type": "wxpay",
"pid": "merch_001",
"addtime": "2026-04-09 06:10:20",
"endtime": "2026-04-09 06:11:08",
"name": "AI Credits 1000",
"money": "9.99",
"status": 1,
"param": "user_42",
"buyer": ""
}Body
application/x-www-form-urlencoded
API action.
Available options:
order, refund Merchant ID
Merchant raw API key (not encrypted key)
Merchant order number. Required when trade_no is not provided.
Platform order ID. Required when out_trade_no is not provided.
Required for act=refund. Refund amount as a decimal string.
Optional merchant refund number for act=refund; used for idempotency when provided.
Optional refund reason for act=refund.
Response
200 - application/json
Epay-compatible operation result
- Option 1
- Option 2
- Option 3
Available options:
1 Payment channel type in Epay compatibility mode.
Available options:
alipay, wxpay, creditcard, crypto, paynow UTC datetime string, format yyyy-MM-dd HH:mm:ss
UTC datetime string, empty when unpaid
1 means paid/settled; 0 means not paid
Available options:
0, 1 Reserved field, currently empty string