Tokens

Get token information

get

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
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"
    }
  }
}

Deactivate an existing token

delete

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
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?