Skip to content

Create Payin Order

Request URL

methodurl
POST/api/pay/payment/create/v1

Headers

Header ParameterDescription
timestampRequest timestamp
nonceRandom value
countryCountry code (VN)
appCodeApplication ID

Supported Payment Types (paymentType)

PaymentTypePayment Method Name
2101QR
2102VA

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
paymentTypeIntyesPayment type, see the payment type list
amountStringyes20Payin amount in VND, integer only
realNameStringyes64Payer name
emailStringyes50Payer email (must match a valid regex format)
phoneStringyes50Phone number: 10 digits starting with 0
bankCodeStringno50Bank code; see the Bank List.
Required when paymentType is 2102 (VA)
signStringyesSignature
callbackUrlStringno200Callback URL
2101 (QR) Request Example
{
"merchantOrderNo": "OrderNoExample",
"realName": "TeemoPay",
"amount": "30000",
"callbackUrl": "https://www.callbackexample.com",
"paymentType": 2101,
"email": "TeemoPay@example.com",
"phone": "0900000000",
"sign": "YOUR_SIGN"
}
2102 (VA) Request Example
{
"merchantOrderNo": "OrderNoExampleVA",
"realName": "TeemoPay",
"amount": "30000",
"callbackUrl": "https://www.callbackexample.com",
"paymentType": 2102,
"bankCode": "1001",
"email": "TeemoPay@example.com",
"phone": "0900000000",
"sign": "YOUR_SIGN"
}

Response Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyesPlatform order number
amountStringyesTransaction amount
paymentTypeIntyesPayment type
paymentInfoStringyesPrimary payment information
For example: 2101 returns the QR code string for QR payment
2102 returns the VA account number
additionalInfoJSONObjectnoAdditional payment information; see the fields below
statusIntyesPayin status: 1 = Paying, 3 = Failed
errorMsgStringnoError message (returned only in case of failure)

additionalInfo Object

FieldTypeRequiredDescription
paymentLinkStringyesPayment link
qrStringStringyesQR code string for QR payment, applicable to 2101 (QR)
vaStringyesVA account number, applicable to 2102 (VA)
2101 (QR) Response Example
{
"code": 200,
"data": {
"merchantOrderNo": "OrderNoExample",
"amount": "30000",
"tradeNo": "TS2501010001VN0000000000000000",
"paymentType": 2101,
"paymentInfo": "QR_CODE_STRING_EXAMPLE",
"additionalInfo": {
"paymentLink": "https://Example",
"qrString": "QR_CODE_Example",
"va": "VA_Example"
},
"status": 1,
"errorMsg": null
},
"msg": "success",
"traceId": "30c38418a758434dba4da32fe73b5fd2.106.17833191761712117"
}
2102 (VA) Response Example
{
"code": 200,
"data": {
"merchantOrderNo": "OrderNoExampleVA",
"amount": "30000",
"tradeNo": "TS2501010001VN0000000000000001",
"paymentType": 2102,
"paymentInfo": "1234567890123",
"additionalInfo": {
"paymentLink": "https://Example",
"qrString": "QR_CODE_Example",
"va": "VA_Example"
},
"status": 1,
"errorMsg": null
},
"msg": "success",
"traceId": "30c38418a758434dba4da32fe73b5fd2.106.17833191761712117"
}