# 1.4 J&T QrCode Callback Notification api

# Request URL
  • /xxx
# request method
  • POST
# request params
parameter name Is it mandatory type of data description
eventName mandatory string eventName (qrcode.payment.success, qrcode.payment.failed)
mchOrderId mandatory string Merchant QRCODE mchOrderId
transactionId mandatory string PayCools Transaction ID
totalAmount mandatory int Amount: Total Amount
amount mandatory int Amount: J&T Order Amount
fee mandatory int Amount: Service fee
transactionStatus mandatory string Transaction Status:PENDING, COMPLETE, FAILED
createTime mandatory string Create Time
returnTime mandatory string Return Time
channelCode mandatory string Used for payment callback - Channel Code
businessType mandatory Integer business type (1:COD type,2:Station type,3:Delivery Change,4:STATION COD)
remark mandatory string Remark
failedCode optional int Failed Code
failedMessage optional string Failed Message
sign mandatory string Sign

# sign procss refer to sign procss (opens new window)

# callback example
// QRCODE payment success callback
{
    "eventName": "qrcode.payment.success",
    "totalAmount":505700, // Unit: cent
    "amount":503700, // Unit: cent
    "fee":2000, // Unit: cent
    "channelCode":"QRPH_HYBRID_QR",
    "mchOrderId":"CCVA1653350151938813",
    "createTime":"2022-05-31 09:38:06",
    "remark":"qrcode payment",
    "sign": "xxxxxxxxxxxxx",
    "returnTime":"2022-05-31 09:38:06",
    "businessType": 1,
    "transactionId":"C1032653961085706055",
    "transactionStatus":"COMPLETE"
}

// QRCODE payment failed callback
{
    "eventName": "qrcode.payment.failed",
    "totalAmount":505700,  // Unit: cent
    "amount":503700, // Unit: cent
    "fee":2000, // Unit: cent
    "channelCode":"QRPH_HYBRID_QR",
    "mchOrderId":"CCVA1653350151938813",
    "createTime":"2022-05-31 09:38:06",
    "remark":"qrcode payment",
    "sign": "xxxxxxxxxxxxx",
    "returnTime":"2022-05-31 09:38:06",
    "businessType": 1,
    "transactionId":"C1032653961085706055",
    "transactionStatus":"FAILED"
}
# response example
{
    "code":1,
    "msg":"success",
    "data":{
	}
}