Skip to main content

Getting token details

DRAFT This endpoint is subject to change

To retrieve the current state and details of a customer token.

Getting token details​

GET /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​

Request headers

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

Response​

PropertyExplanation
idThe correlation id for this request
dataThe data for a successful call
errorThe data for a failed call

Data object

PropertyTypeSentDescription
statusstringYesThe current status for the token. See below
cancellationDatedateMaybeThe date if the token is cancelled

Status Active - The token is active and ready to use for authorizations Pending - The token is pending approval to be used Denied - The token usage approval has been denied and cannot be used for authorizations Revoked - The token usage approval has been revoked and cannot be used for authorizations Cancelled - The token has been cancelled with the cancel endpoint and cannot be used for authorizations

Error responses​

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