Tokens
Retrieve token status and other non-sensitive data.
Path parameters
tokenIdstring · max: 64Required
Unique ID of the token
versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired
ID of the request, unique to the call, as determined by the initiating party
Responses
200
OK
application/json
400
Bad Request
application/json
403
Forbidden
application/json
404
Not Found
application/json
409
Conflict
application/json
503
Service Unavailable
application/json
get
GET /egw/{version}/tokens/{tokenId} HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"tokenId": "text",
"tokenStatus": "ACTIVE",
"purposes": [
"CIT"
],
"paymentMethodType": "CARD",
"card": {
"cardholderName": "text",
"lastFourDigits": "text",
"expiry": {
"month": "text",
"year": "text"
}
}
}
Deactivates an existing token, preventing its use in future payments
Path parameters
tokenIdstring · max: 64Required
Unique ID of the token
versionstringRequired
Header parameters
X-Request-Idstring · uuidRequired
ID of the request, unique to the call, as determined by the initiating party
Responses
200
OK
application/json
400
Bad Request
application/json
403
Forbidden
application/json
404
Not Found
application/json
409
Conflict
application/json
503
Service Unavailable
application/json
delete
DELETE /egw/{version}/tokens/{tokenId} HTTP/1.1
Host: hostname
X-Request-Id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"tokenId": "text",
"tokenStatus": "ACTIVE"
}
Last updated
Was this helpful?