Skip to main content
Version: Lastest

Delete token & card saved

API Delete token & card saved

Endpoint: /api/v2/token/delete

Method: 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"
}

HTTP Request:

ParamsData typeExample
tokenString9704001845460018

HTTP Response:

ParamsData typeDescription
errorCodeIntegerError Code
messageStringError Description

Example Response

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