Tokens
Get token metadata
Returns the details for an active token without consuming it. The token remains usable after this call.
Possible responses:
- 200 – Active and recently-used tokens (still within the 15-minute window).
- 410 – Expired tokens.
- 404 – Not found tokens, or of an unsupported type (for example, cvv or pin).
get/tokens/{tokenId}/metadata
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- Auth
- API key in header Authorization
- or OAuth 2Client credentialsToken URLstringScopesvault:tokens-metadata
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tokenIdstring required
Example:tok_4gzeau5o2uqubbk6fudbloo47a
The token ID
Response
Token metadata retrieved successfully
Example response
{
"token": "tok_4gzeau5o2uqubbk6fudbloo47a",
"type": "card",
"expiry_month": 12,
"expiry_year": 2030,
"scheme": "Visa",
"last4": "4242",
"bin": "424242",
"card_type": "CREDIT",
"card_category": "CONSUMER",
"issuer": "JPMORGAN CHASE BANK NA",
"issuer_country": "US",
"product_id": "A",
"product_type": "Visa Traditional",
"billing_address": {
"city": "London",
"country": "GB"
},
"metadata": {
"documentNumber": "12345678900",
"partnerId": "partner_123"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.