Skip to main content
Version: 1.0

API Card Charging

Endpoint: /v1/services/card_charging?api_key=YOUR_API_KEY

Method: POST

Header: How to generate JWT_TOKEN

{    "X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,    "Content-Type": "application/json"}

Params#

ParamsRequiredTypeDescription
codeStringCard code is encrypted
serialStringCard Serial
vendorStringDefault is: appota
partner_codeStringPartner code is provided by AppotaPay
service_nameStringPartner service name
transaction_idStringUnique ID per transaction (5 - 50 char)
signatureStringHash params: signature= SHA256(code + serial + vendor + partner_code + service_name + transaction_id + secret_key)

Secret key is provided by AppotaPay

Data result#

ParamsTypeDescription
error_codeStringError Code
messageStringError Message
dataObjectResponse data
data.amountIntegerCard value
data.serialStringCard serial
data.transaction_idStringAppotaPay Transaction ID
data.timeStringTransaction Time

Example#

Response#

{    "error_code": "00",    "message": "Transaction success",    "data": {        "amount": 100000,        "serial": "OTA123456789",        "transaction_id": "abc123",        "time": "10:05:01 08/05/2019 GMT+7"    }}