Create a GMPay order
https://pay.example.com/payments/gmpay/v1/order/create-transactionSign the request on your server and open payment_url for the buyer. Supply token and network together or omit both so the buyer can choose at checkout.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
pid | string | Yes | Merchant PID used to look up the signing key. |
order_id | string | Yes | Unique merchant order ID, up to 32 characters. |
currency | string | Yes | Fiat currency, for example usd or cny. |
token | string | Conditional | Receiving asset. Pair with network or omit both. |
network | string | Conditional | Network ID from public config, for example binance. |
amount | number | Yes | Fiat amount, greater than 0.01. |
notify_url | string | Yes | Asynchronous success callback URL. |
redirect_url | string | No | Browser return URL. |
name | string | No | Product or order name. |
payment_type | string | No | Defaults to GMPay. EPay (case-insensitive) selects EPay callback format and requires a numeric PID. Include any nonempty value in the signature. |
signature | string | Yes | 64-character lowercase HMAC-SHA256 signature. |
The sample signature uses the demonstration key epusdt_secret_key. Recalculate it on your server whenever the fields or merchant key change.
Related resources
Responses
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
dataobjectResponse payload; null on error.
trade_idstringorder_idstringstatusintegerexpiration_timeintegerpayment_urlstring
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.
Response fields
status_codeintegerApplication result code.
messagestringHuman-readable result.
datanullResponse payload; null on error.
request_idstringRequest identifier for tracing.