Skip to main content

Cancelling a token

If you wish to cancel the possibility to charge a certain customer token, you can do that by cancelling the token. If the customer wants to start payments again, they'll need to give consent anew to create a new token. It's a good idea to cancel a token when it's no longer needed, for example if a customer ends their subscription.

Cancelling a customer token

DEL /purchase/customer-tokens/916f7730-8d24-4dd9-9778-92b75b747382 HTTP/1.1
Host: api.uat.walleydev.com // (Please note! Different hostname in production)
Authorization: Bearer bXlVc2VybmFtZTpmN2E1ODA4MGQzZTk0M2VmNWYyMTZlMDE...

Request Properties

Request headers

HeaderRequiredExplanation
AuthorizationYesInstructions on how to generate the authorization header value can be found here.

Important error responses

Error codeCause
401Incorrect, missing or expired bearer token
403The customer token was already cancelled
404The customer token was not found for the authenticated bearer token
503There was some internal error. Please try again