API Check transaction status
Endpoint: /api/v1/service/shopcard/transaction/{partnerRefId}
Method: GET
Header: How to generate JWT_TOKEN
{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}
Params
| Params | Required | Type | Description |
|---|---|---|---|
| partnerRefId | √ | String | Counterparty transaction code included in API url |
Data result
| Params | Type | Description |
|---|---|---|
| errorCode | Integer | Error code return |
| message | String | Detailed description of the error code |
| cards | Array of Object | Card Information |
| cards[].code | String | Card code (in encrypted form) |
| cards[].serial | String | Card Serial |
| cards[].vendor | String | CardVendor |
| cards[].value | Integer | Card value |
| cards[].expiry | String | Card expiry date (format: y-m-d, vd: 29-09-2023) |
| transaction | Object | Transaction information |
| transaction.appotapayTransId | String | AppotaPay side transaction code |
| amount | Integer | Transaction amount |
| time | String | Transaction time (format: d-m-Y H:i:s) |
Example
Response
{
"errorCode": 0,
"message": "Success",
"cards": [
{
"code": "b10294bae53e89919b3efd62a763bf3",
"serial": "OTA123456789",
"vendor": "appota",
"value": 100000,
"expiry": "29-09-2023"
}
],
"transaction": {
"appotapayTransId": "AP12adf21121",
"amount": 100000,
"time": "10-04-2020 10:10:10"
}
}