Getting token details
DRAFT This endpoint is subject to change
To retrieve the current state and details of a customer token.
Getting token details​
- Request
- Response
- Error
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...
HttpStatusCode: 200 Accepted
{
"id": "ee634b96-f40e-426a-be3f-3533a7f6a400",
"data": {
"status": "Active"
}
}
HttpStatusCode: 404 Not Found (Example error. More errors available below.)
{
"id": "fe8a21bb-6cb5-4d7d-b7f6-c0c335fc4593",
"error": {
"code": 404,
"message": "The resource requested was not found.",
"errors": []
}
}
Request​
Request headers
Header | Required | Explanation |
---|---|---|
Authorization | Yes | Instructions on how to generate the authorization header value can be found here. |
Response​
Property | Explanation |
---|---|
id | The correlation id for this request |
data | The data for a successful call |
error | The data for a failed call |
Data object
Property | Type | Sent | Description |
---|---|---|---|
status | string | Yes | The current status for the token. See below |
cancellationDate | date | Maybe | The 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 code | Cause |
---|---|
401 | Incorrect, missing or expired bearer token |
404 | The customer token was not found for the authenticated bearer token |
503 | There was some internal error. Please try again |