Skip to main content
POST

Body

application/x-www-form-urlencoded
act
enum<string>
required

API action.

Available options:
order,
refund
pid
string
required

Merchant ID

key
string
required

Merchant raw API key (not encrypted key)

out_trade_no
string

Merchant order number. Required when trade_no is not provided.

trade_no
string

Platform order ID. Required when out_trade_no is not provided.

money
string

Required for act=refund. Refund amount as a decimal string.

refund_no
string

Optional merchant refund number for act=refund; used for idempotency when provided.

reason
string

Optional refund reason for act=refund.

Response

200 - application/json

Epay-compatible operation result

code
enum<integer>
Available options:
1
msg
string
trade_no
string
out_trade_no
string
type
enum<string>

Payment channel type in Epay compatibility mode.

Available options:
alipay,
wxpay,
creditcard,
crypto,
paynow
pid
string
addtime
string

UTC datetime string, format yyyy-MM-dd HH:mm:ss

endtime
string

UTC datetime string, empty when unpaid

name
string
money
string
status
enum<integer>

1 means paid/settled; 0 means not paid

Available options:
0,
1
param
string
buyer
string

Reserved field, currently empty string