Skip to main content

Token

METHODURL
DELETE/tokens/{tokenId}
EXAMPLEhttps://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 CODEDESCRIPTION
204This response does not contain a body.

❌ Error Responses - Delete Token

HTTP CODEERROR CODEERROR MESSAGEDESCRIPTION
4000905Problem Parsing RequestThe request syntax is incorrect.
4000300Invalid RequestThe request body does not match the JSON schema or the token ID is not an UUID.
4000151Token Not FoundThe order ID has no related transactions.
403-User is not authorized to access this resource with an explicit denyRequester is not authorized to access to this resource
5000900Internal Server ErrorThe server experienced an unexpected error.

❗ Error Response Example - Delete Token

{
"error": {
"code": "0151",
"message": "Token Not Found"
}
}