Skip to main content
GET

Query & Retrieve Guide

Search for tokens and retrieve their metadata
Use this endpoint to search for stored card tokens by the reference value you assigned during tokenization. It returns metadata (card type, last digits, expiration, associations) for up to 100 matching tokens per request, with pagination support for larger result sets.

Parameter Constraints

This endpoint is rate limited. Standard authentication errors apply (code -1003, HTTP 401).

Parameters

Headers

Authorization
string
required
Your API key prefixed with APIKEY. Example: APIKEY your-api-key. See the Authentication guide.

Query String

ref
string
required
The reference value provided during tokenization to locate this token. Exact match only.
from
integer
default:"0"
Chronological counter of tokens from which to start retrieving.
to
integer
default:"100"
The number of tokens to return in the response.
property
string
The property ID of the hotel the tokens were associated with. You would have used this method to set up the association first.

Request Example

Query all tokens created with the reference booking-12345, returning the first 10 results:
To filter by property, add the property parameter:

Response

200 - An array of token metadata objects. Each item contains the fields below. For the single-token equivalent (which also returns CreatorReference and VirtualInfo), see Retrieve Token Metadata.
CreateDate
string
The date and time the token was created (ISO 8601).
CardType
string
The card brand (e.g. Visa, Mastercard, Amex). See supported card types.
LeadingDigits
string
The first 6 digits (BIN) of the card number.
LastDigits
string
The last 4 digits of the card number.
ExpirationYear
integer
The card expiration year.
ExpirationMonth
integer
The card expiration month.
OwnerID
string
The cardholder ID, if provided at tokenization time.
OwnerName
string
The name on the card, if provided at tokenization time.
UserID
string
The PCI Booking user ID that owns this token.
IssueNumber
string
The card issue number (used by some card schemes).
URI
string
The full token URI for use in API calls.
CvvExists
boolean
Whether CVV data is currently stored on this token.
EndRetentionDate
string
The date after which the CVV will be automatically deleted (ISO 8601). Reflects the CVV retention policy.
AssociatedMerchants
string[]
List of PCI Booking customer (booker) user IDs associated with this token.
AssociatedProperties
string[]
List of property user IDs associated with this token.
ThreeDSecureInfo
object
3D Secure authentication data, if stored on this token. See 3D Secure Authentication for field details.
NetworkTokenScheme
string
The card network scheme if this is a network token (e.g. Visa, Mastercard). null for regular cards.
NetworkTokenId
string
The network token identifier assigned by the card scheme. null for regular cards.
TokenLocation
string
The geographic storage location of the token data. null for default (in-table) storage.