Create deposit order
This interface is for you to call us to create a payment order
Last updated
This interface is for you to call us to create a payment order
Last updated
GET
code
String
32
Merchant platform number.
eg:100101
uid
String
64
Merchant platform user id.
eg:100
order_amount
String
40
order amount.(USDT or USDC or ETH) you can choose between
eg:1000
order_time
String
32
Order time (unix timestamp)
currency_type
String
11
eg:USDT or USDC or ETH
chain_name
String
32
Tron or Ethereum
order_id
String
64
order id
sign
String
36
A string encrypted with the hmac-sha256 algorithm based on the request parameter and access_key.
About sign content:
Arrange the parameters in ascending order of key letters, connect the obtained parameter string (similar to a=1&b=2&c=3) with the access key , and finally use hmac-sha256 Encrypt the signature string
Example:
code: 100119
currency_type: USDT
order_amount: 1000
order_id: 999123
order_time: 1703232182
uid: 123545
Get the string to be encrypted: code=100119¤cy_type=USDT&order_amount=1000&order_id=999123 &order_time=1703232182&uid=123545
key: 8b026795f25458920ec1ce2249efasd9 (swap.space system allocation)
Encrypted value: CmjeVZ4srq8ZvLaajHYmHWtT1UV4QPTowEpQ05X55jY=
So the input parameter sign = CmjeVZ4srq8ZvLaajHYmHWtT1UV4QPTowEpQ05X55jY=
!!! Note:
When parameters contain special characters, they must be escaped (urlencode) to comply with URL specifications
code
int
response code 200 is success, esle is fail
msg
String
response message
data
Object
response payment order url