Create Order (QR Code)

Introduction

Create order after user scan the QRcode.

Must useDecode QRcode before calling create order api.

API Description

Request Method:POST

Request Path:open/api/scan/payment

Parameters

Request Parameters

ParameterSignMandatoryTypeLengthDescription
appIdYYstring64AppId is unique for merchant
signNYstring512Sign
merchantOrderNoYYstring64Merchant order number (must be unique)
qrCodeYYstring512QR Code string
amountYYstring20Order amount (unit as fiat currency, 1=1.00) PHP/BRL/ARS/PEN/BOB/COP: retains two digits
VND: no retain decimals
currencyYYstring20Fiat currency (unit of amount)
VND/PHP/BRL/PEN/ARS/
INR/COP/BOB
userIdYYstring64UserId is unique for user (email / phone number)
userIpYYstring64User IP address
emailNYstring64User email
feeTypeYYstring32Outer Buckle: OUTER_BUCKLE
User Buckle:USER_BUCKLE
callbackUrlYYstring128The address receiving order webhook
customParamNNobject1024Custom fields

Example

{
    "appId": "TEST000001",
    "sign": "TEST000001",
    "merchantOrderNo": "11187",
    "amount": "100000",
    "currency": "VND",
    "feeType":"INNER_BUCKLE",
    "qrCode": "00020101021138580010A000000727012800069704070114190360421800120208QRIBFTTA53037045802VN830084006304EDC5",
    "userId": "[email protected]",
    "userIp": "14.232.142.199",
    "email": "[email protected]",
    "callbackUrl": "http://127.0.0.1:8022/open/api/callback",
    "customParam": {}
}

Response Parameters

ParameterTypeDescription
successbooleanSuccess
errorbooleanError
codelongResponse code
msgstringResponse message
traceIdstringTrace id
modelobjectResponse content

Model Response Parameters

ParameterTypeDescription
amountstringOrder amount (USDT) retains two digits
orderNostringOrder number

Example

{
    "code": "0",
    "msg": "success",
    "model": {
        "amount": 0.78,
        "orderNo": "400017452047901950404"
    },
    "traceId": "6805b6349f57da09af484497f3ea6136",
    "error": false,
    "success": true
}

Did this page help you?