Order creation
Interface address
Interface parameters
app_id
header
string
Yes
Application ID, example value:8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd
mch_id
body
string
Yes
Merchant ID, example value:1234567890
description
body
string
No
Order description, example value:recharge
out_trade_no
body
string
Yes
Merchant order number, the merchant generates its own unique order number
expire_second
body
integer
Yes
Expiry date(second), example value:3600
amount
body
number
Yes
Order amount, example value:15000000
chain
body
string
Yes
Owned public chain, example value:TRON
currency
body
string
Yes
to_address
body
string
No
Collection wallet( Notes: payment wallet is required for the application of monitor order
)
attach
body
string
No
Custom parameter. It returns as-is in the query API and payment notifications and can be used as a custom parameter. In practice, this field is returned only when the payment is complete.
locale
body
string
No
Language: zh_cn
Chinese、 en
English.Using cash register will display the default language based on this setting.
notify_url
body
string
No
return_url
body
string
No
Return address, when payment is complete or fails, click the return button on the address. And it can be the https or the route of the app.
order_type
body
string
Yes
Payment method, example value: platform_order
platform collection , merchant_order
monitor order
Parameters example
Interface return
code
integer
msg
string
Status description
request_id
string
Request ID
data
object
Data object
prepay_id
string
Prepayment ID
Prepayment transaction session ID. It is used for subsequent interface calls, and its value is valid for the expire_second
parameter set when the order is created, or you can access the payment_url
directly to complete the payment.
payment_url
string
Paymwnt cash register URL
payment_url
is to pull up the middle page of the payment cash register, you can complete the payment by visiting this url. You can pay by visiting the url. payment_url
is valid for the expire_second
parameter set when the order is created.
Return example
Example code
Last updated