Check transaction status
Check transaction status API
Endpoint: /api/v1/orders/transaction/bank/status
Method: POST
Header: How to generate JWT_TOKEN
{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}
HTTP Request:
Params | Sample |
---|---|
orderId | 5f5b46cb73fd0 |
signature | 3d4cf0f6130ee51f75714733922a7e76b1c18704187827a78abd379f4ab266ec |
HTTP Response:
Params | Data type | Description |
---|---|---|
errorCode | Integer | Error Code |
message | String | Error detail |
partnerCode | String | Partner Code |
apiKey | String | Partner APIKEY |
amount | Integer | Payment amount |
currency | String | Currency code (default: VND) |
orderId | String | Order ID |
bankCode | String | Bank code |
paymentMethod | String | Payment method |
paymentType | String | Payment type (default: WEB) |
appotapayTransId | String | AppotaPay transaction ID |
transactionTs | Integer | Transaction time |
extraData | String | Extra data |
cardInfo | Object | Card information |
cardInfo.cardNumber | String | Card/ Account number |
cardInfo.cardDate | String | Card date |
cardInfo.cardName | String | Card/ Account name |
cardInfo.countryCode | String | Country code |
signature | String | Signature check data signature = data: |
Example Response
{
"errorCode":0,
"message":"Thành công",
"partnerCode": "TEST",
"apiKey": "oMhJpkz7K6HDcR6S",
"amount":50000,
"currency":"VND",
"orderId":"5f5b46cb73fd0",
"bankCode":"SHB",
"paymentMethod":"ATM",
"paymentType":"WEB",
"appotapayTransId":"AP200910014125B",
"transactionTs":1599817433,
"extraData":"test test",
"signature":"d6ff2d38c2b1167c6d17b9dbb1380347b24c1bf912dc442dbd018b2e1ed74f3d",
"cardInfo":{
"cardNumber":"",
"cardDate":"",
"cardName":"",
"countryCode":""
}
}