Delete token & card saved
API Delete token & card saved
EndPoint
DELETE /api/v2/token/delete
Header Params
| Params | Requirement | Data type | Description | Note |
|---|---|---|---|---|
| X-APPOTAPAY-AUTH | required | String | To create a JWT_TOKEN | |
| Content-Type | required | String | Value: application/json | |
| X-Request-ID | optional | String | Format is UUIDv4. Request ID for troubleshooting purposes | max:42 |
| X-Language | optional | String | Value vi or en,The value corresponding to the payment link can be in Vietnamese or English (default: vi) | in:vi,en |
| X-Account-Ref-ID | optional | String | 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
| Params | Requirement | Data type | Example |
|---|---|---|---|
| token | required | String | 9704001845460018 |
Response Params
| Params | Data type | Description |
|---|---|---|
| errorCode | Integer | Error Code |
| message | String | Error Description |
Success
Http Status Code
200-OK
Example Response
{
"errorCode": 0,
"message": "Thành công"
}
Error
HTTP Status Code !=
200With the returned errorCode, please refer to the error code table here