Payment-Gateway-OpenApi
  1. Crypto Collection
Payment-Gateway-OpenApi
  • Getting Started
  • Fiat Collection
    • Overview
    • Pelago Cashier Mode
      • Cashier Mode Introduction
      • Create Pelago Order
    • Pelago Direct Mode
      • Direct Mode Introduction
      • Get Rate
      • Get Product
      • Create Order
      • Get Order Info
      • Order Notify
  • Crypto Collection
    • Overview
    • Create Order
      POST
    • Refund
      POST
    • Withdraw
      POST
  • Common Collection
    • Check Order Info
      POST
  1. Crypto Collection

Create Order

POST
/merchant-api/crypto-order

Request

Authorization
Header Params
X-App-Key
string 
required
Example:
{{merchant-app-key}}
Body Params application/json
data
object 
required
merchantId
string 
required
merchantOrderId
string 
required
max length 32
amount
number 
required
coinId
string 
optional
country
string 
optional
notifyUrl
string 
optional
redirectUrl
string 
optional
timestamp
string 
required
Match pattern:
^\d{13}$
nonce
string 
required
signature
string 
required
Example
{
    "data": {
        "merchantId": "string",
        "merchantOrderId": "string",
        "amount": 0,
        "coinId": "string",
        "country": "string",
        "notifyUrl": "string",
        "redirectUrl": "string",
        "timestamp": "string",
        "nonce": "string"
    },
    "signature": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/merchant-api/crypto-order' \
--header 'X-App-Key: {{merchant-app-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data": {
        "merchantId": "string",
        "merchantOrderId": "string",
        "amount": 0,
        "coinId": "string",
        "country": "string",
        "notifyUrl": "string",
        "redirectUrl": "string",
        "timestamp": "string",
        "nonce": "string"
    },
    "signature": "string"
}'

Responses

🟢200OK
*/*
OK
Body
code
integer 
required
data
object 
required
orderId
integer 
required
cashierUrl
string 
required
order
object 
required
msg
string 
required
Example
{
    "code": 0,
    "data": {
        "orderId": 0,
        "cashierUrl": "string",
        "order": {
            "orderId": 0,
            "tradeType": 0,
            "orderStatus": 0,
            "coinId": "string",
            "amount": 0,
            "address": "string",
            "txHashList": "string",
            "txHash": [
                "string"
            ],
            "paidAmount": 0,
            "refundAmount": 0,
            "payStatus": 0,
            "expireTime": "2019-08-24T14:15:22.123Z",
            "createTime": "2019-08-24T14:15:22.123Z",
            "closedTime": "2019-08-24T14:15:22.123Z",
            "refundTime": "2019-08-24T14:15:22.123Z",
            "merchantId": 0,
            "merchantOrderId": "string",
            "merchantAppId": 0,
            "merchantAppName": "string",
            "notifyUrl": "string",
            "redirectUrl": "string"
        }
    },
    "msg": "string"
}
Modified at 2025-06-13 02:23:31
Previous
Overview
Next
Refund
Built with