- Getting Started
- Fiat Collection
- Crypto Collection
- Common Collection
Create Order
POST
/openapi/fiat/createOrder
Request
Authorization
Header Params
X-App-Key
string
required
Example:
{{merchant-app-key}}
Body Params application/json
data
object
required
scenarioCode
string
required
merchantId
string
required
merchantOrderId
string
required
Match pattern:
^[a-zA-Z0-9_-]+$
orderAmount
number
required
productId
string
required
orderCountry
string
required
>= 2 characters<= 2 characters
Match pattern:
^[A-Z]{2}$
orderCurrency
string
required
>= 3 characters<= 3 characters
Match pattern:
^[A-Z]{3}$
timestamp
string
required
Match pattern:
^\d{13}$
nonce
string
required
notifyUrl
string
optional
redirectUrl
string
optional
signature
string
required
Example
{
"data": {
"scenarioCode": "string",
"merchantId": "string",
"merchantOrderId": "string",
"orderAmount": 0,
"productId": "string",
"orderCountry": "st",
"orderCurrency": "str",
"timestamp": "string",
"nonce": "string",
"notifyUrl": "string",
"redirectUrl": "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/openapi/fiat/createOrder' \
--header 'X-App-Key: {{merchant-app-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"scenarioCode": "string",
"merchantId": "string",
"merchantOrderId": "string",
"orderAmount": 0,
"productId": "string",
"orderCountry": "st",
"orderCurrency": "str",
"timestamp": "string",
"nonce": "string",
"notifyUrl": "string",
"redirectUrl": "string"
},
"signature": "string"
}'
Responses
🟢200OK
*/*
Body
code
string
required
data
object
required
scenarioCode
string
required
pelagoOrderId
string
required
merchantOrderId
string
required
orderAmount
string
required
orderCurrency
string
required
orderCountry
string
required
orderStatus
integer
required
expireTime
string
required
paymentUrl
string
required
msg
string
required
Example
{
"code": "string",
"data": {
"scenarioCode": "string",
"pelagoOrderId": "string",
"merchantOrderId": "string",
"orderAmount": "string",
"orderCurrency": "string",
"orderCountry": "string",
"orderStatus": 0,
"expireTime": "string",
"paymentUrl": "string"
},
"msg": "string"
}
Modified at 2025-06-04 08:10:51