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.
Body
API action.
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
Epay-compatible operation result
- Option 1
- Option 2
- Option 3
1 Payment channel type in Epay compatibility mode.
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
0, 1 Reserved field, currently empty string