Token
METHOD | URL |
---|---|
DELETE | /tokens/{tokenId} |
EXAMPLE | https://test.api.macropay.com/v2/tokens/{tokenId} |
Deletes the corresponding token identified by a given token ID. There is no need to provide a body for this request.
✅ Success Responses - Delete Token
HTTP CODE | DESCRIPTION |
---|---|
204 | This response does not contain a body. |
❌ Error Responses - Delete Token
HTTP CODE | ERROR CODE | ERROR MESSAGE | DESCRIPTION |
---|---|---|---|
400 | 0905 | Problem Parsing Request | The request syntax is incorrect. |
400 | 0300 | Invalid Request | The request body does not match the JSON schema or the token ID is not an UUID. |
400 | 0151 | Token Not Found | The order ID has no related transactions. |
403 | - | User is not authorized to access this resource with an explicit deny | Requester is not authorized to access to this resource |
500 | 0900 | Internal Server Error | The server experienced an unexpected error. |
❗ Error Response Example - Delete Token
{
"error": {
"code": "0151",
"message": "Token Not Found"
}
}