Create Order
Introduction
This api is for create order.
API Description
Request Method:POST
Request Path:open/api/payment
Parameters
Request Parameters
Parameter | Sign | Mandatory | Type | Length | Description |
---|---|---|---|---|---|
appId | Y | Y | string | 64 | AppId is unique for merchant |
sign | N | Y | string | 256 | Sign |
merchantOrderNo | Y | Y | string | 64 | Merchant order number (must be unique) |
qrCode | Y | Y | string | 256 | QR Code string |
userId | Y | Y | string | 64 | UserId is unique for user (email / phone number) |
userIp | Y | Y | string | 32 | User IP address |
redirectURL | Y | Y | string | 128 | The redirection address after the successful purchase |
callbackURL | Y | Y | string | 128 | The address receiving order webhook |
Example
{
"appId": "TEST000001",
"sign": "TEST000001",
"merchantOrderNo": "11126"
"qrCode": "00020101021138580010A000000727012800069704070114190360421800120208QRIBFTTA53037045802VN830084006304EDC5",
"userId": "[email protected]",
"userIp": "127.0.0.1",
"redirectUrl": "http://127.0.0.1:8022/open/api/payment2",
"callbackUrl": "http://127.0.0.1:8022/open/api/callback"
}
Response Parameters
Parameter | Type | Description |
---|---|---|
success | boolean | Success |
error | boolean | Error |
code | long | Response code |
msg | string | Response message |
traceId | string | Trace id |
model | object | Response content |
Model Response Parameters
Parameter | Type | Description |
---|---|---|
webUrl | string | Checkout url address |
orderNo | string | AEON order number |
Example
{
"code": "0",
"msg": "success",
"model": {
"webUrl": "htts://127.0.0.1:8080?orderNum=300217180923663910033",
"orderNo":"21321321321"
},
"traceId": "6668024eeb989c77a375967aded5d646",
"success": true,
"error": false
}
Updated 5 days ago