Skip to main content
Version: Lastest

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

ParamsRequiredTypeDescription
partnerRefIdStringCounterparty transaction code included in API url

Data result

ParamsTypeDescription
errorCodeIntegerError code return
messageStringDetailed description of the error code
cardsArray of ObjectCard Information
cards[].codeStringCard code (in encrypted form)
cards[].serialStringCard Serial
cards[].vendorStringCardVendor
cards[].valueIntegerCard value
cards[].expiryStringCard expiry date (format: y-m-d, vd: 29-09-2023)
transactionObjectTransaction information
transaction.appotapayTransIdStringAppotaPay side transaction code
amountIntegerTransaction amount
timeStringTransaction 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"
}
}

Code Examples

curl "https://gateway.dev.appotapay.com/api/v1/service/shopcard/transaction/AB123" \
-H "X-APPOTAPAY-AUTH: JWT_TOKEN" \
-H "Content-Type: application/json"

Request

REQUEST

Development server