Querying for pay method tokens
GET/api/v3/tokenized
Available query parameter values for filtering:
- customer_id
- customer_external_key
- customer_token
Request
Query Parameters
customer_id:EQUALS:1000
customer_id:ASC
2
8
Responses
- 200
- 400
- 401
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
Array [
]
response
object[]
Tokenized ID #
Customer ID #
Descriptive name for token (e.g. "Visa x4111")
Type of token (usually "customer")
(Optional) Either "crd" (credit card) or "ach" (ACH/bank accounts)
(Optional; only required for First Data/Payeezy) Expiration date (YYYY-MM-DD) of the tokenized credit card
(Optional; only required for First Data/Payeezy) A credit card type (one of "visa", "mast", "disc", or "amex")
The token value
(Optional; only required if providing tokens for multiple gateways) A hint for which gateway this is a token for
Date/time the tokenized payment method was stored
Date/time the tokenized payment method was edited
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": [
{
"tokenized_id": 0,
"customer_id": 0,
"name": "string",
"type": "string",
"paymethod_hint": "string",
"expdate": "2024-07-29",
"type_hint": "string",
"token": "string",
"gateway": "string",
"write_datetime": "string",
"mod_datetime": "string"
}
]
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": [
{
"tokenized_id": 1,
"type": "customer",
"name": null,
"token": "cus_5tSkoQ6mDrXOMQ",
"expdate": null,
"type_hint": null,
"paymethod_hint": null,
"customer_id": 2
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}