Skip to main content
Version: Lastest

Delete token & card saved

API Delete token & card saved

EndPoint

DELETE /api/v2/token/delete

Header Params

ParamsRequirementData typeDescriptionNote
X-APPOTAPAY-AUTHrequiredString To create a JWT_TOKEN
Content-TyperequiredStringValue: application/json
X-Request-IDoptionalStringFormat is UUIDv4. Request ID for troubleshooting purposesmax:42
X-LanguageoptionalStringValue vi or en,The value corresponding to the payment link can be in Vietnamese or English (default: vi)

in:vi,en

X-Account-Ref-IDoptionalString

Iidentifier of the sub account provided by AppotaPay.

Mandatory be passed over when processing payment for transactions of owner-type sub account

{
"X-APPOTAPAY-AUTH": "JWT_TOKEN",
"Content-Type": "application/json",
"X-Request-ID": "Your_Unique_id",
"X-Language": "vi",
"X-Account-Ref-ID": "9723f73b-9295-4acb-884b-ab6310c2e653"
}

Request Params

ParamsRequirementData typeExample
tokenrequiredString9704001845460018

Response Params

ParamsData typeDescription
errorCodeIntegerError Code
messageStringError Description

Success

Http Status Code 200 - OK

Example Response

{
"errorCode": 0,
"message": "Thành công"
}

Error

HTTP Status Code != 200 With the returned errorCode, please refer to the error code table here

Code Examples

curl -X DELETE "https://gateway.dev.appotapay.com/api/v2/token/delete" \
-H "X-APPOTAPAY-AUTH: JWT_TOKEN" \
-H "Content-Type: application/json" \
-H "X-Request-ID: Your_Unique_id" \
-H "X-Language: vi" \
-H "X-Account-Ref-ID: 9723f73b-9295-4acb-884b-ab6310c2e653" \
-d '{
"token": "9704001845460018"
}'

Request

REQUEST

Development server
The value corresponding to the payment link can be in Vietnamese or English (default: vi)
Example (from schema)