Create Order

Introduction

This api is for create order.

API Description

Request Method:POST

Request Path:open/api/payment

Parameters

Request Parameters

ParameterSignMandatoryTypeLengthDescription
appIdYYstring64AppId is unique for merchant
signNYstring256Sign
merchantOrderNoYYstring64Merchant order number (must be unique)
qrCodeYYstring256QR Code string
userIdYYstring64UserId is unique for user (email / phone number)
userIpYYstring32User IP address
redirectURLYYstring128The redirection address after the successful purchase
callbackURLYYstring128The address receiving order webhook

Example

{ "appId": "TEST000001", "sign": "TEST000001", "merchantOrderNo": "11126" "qrCode": "00020101021138580010A000000727012800069704070114190360421800120208QRIBFTTA53037045802VN830084006304EDC5", "userId": "505884978@qq.com", "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

ParameterTypeDescription
successbooleanSuccess
errorbooleanError
codelongResponse code
msgstringResponse message
traceIdstringTrace id
modelobjectResponse content

Model Response Parameters

ParameterTypeDescription
webUrlstringCheckout url address
orderNostringAEON 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 }

Did this page help you?