Consumer object
{
"id": "consumer_Aa1ABb2BCc3CDd4DEe5EFf6FGg7GHh8H",
"company_name": "ACME Inc.",
"date_of_birth": "1970-01-01",
"email_address": "jane.doe@example.com",
"email_address_is_verified": true,
"external_customer_id": "example",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "5555551234",
"phone_number_is_verified": false
}
Data | Data type | Description |
---|---|---|
id |
string | Permanent unique identifier of the consumer. |
company_name |
string | Optional field for company name. |
date_of_birth |
string | Consumer’s date of birth in format YYYY-MM-DD . |
email_address |
string | An email address belonging to the consumer. |
email_address_is_verified |
boolean | A boolean (false, true) indicating whether email_address has been verified. |
external_customer_id |
string | A string representation of the consumer’s id in your system. |
first_name |
string | Consumer’s first name. |
last_name |
string | Consumer’s last name. |
phone_number |
string | A phone number belonging to the consumer. |
phone_number_is_verified |
boolean | A boolean (false, true) indicating whether phone_number has been verified. |
Consumer field restrictions
Field | Restrictions | Min Size | Max Size |
---|---|---|---|
company_name |
Alphanumeric and special characters. Must contain only uppercase letters ( |
– | 40 |
date_of_birth |
Must be format – |
– | 10 |
email_address |
Alphanumeric. Must contain |
– | 50 |
external_customer_id |
Alphanumeric and special characters, except percent signs. |
– | 30 |
first_name |
Alphanumeric and special characters. Must contain only uppercase letters ( |
– | 25 |
last_name |
Alphanumeric and special characters. Must contain only uppercase letters ( |
– | 25 |
phone_number |
|
10 | 10 |
Read Consumer
Success
Request
GET /api/consumers/{consumer_id}
Authorization: Bearer {SECRET_KEY}
Example curl
request
curl https://bankpay.certegy.com/api/consumers/consumer_Aa1ABb2BCc3CDd4DEe5EFf6FGg7GHhH \
-H 'Accept: application/json' \
-H 'Authorization: Bearer secret_Aa1ABb2BCc3CDd4DEe5EFf6FGg7GHhH'
Response The data
property is a Consumer object.
HTTP/1.1 200 OK
{
"data": {
"date_of_birth": "1970-01-01",
"email_address": "john.doe@example.com",
"email_address_is_verified": true,
"external_customer_id": "example",
"first_name": "John",
"full_name": "John Doe",
"id": "consumer_Aa1ABb2BCc3CDd4DEe5EFf6FGg7GHhH",
"last_name": "Doe",
"phone_number": "8135551234",
"phone_number_is_verified": true
},
"meta": {
"type": "consumer"
}
}
Example Errors
Consumer not found
Request
GET /api/consumers/{consumer_id}
Authorization: Bearer {SECRET_KEY}
Response
HTTP/1.1 200 OK
{
"message": "not_found"
}