1. Home
  2. Docs
  3. Data Subscriber API Documentation
  4. Endpoints – Persons
  5. GET /persons/:id/cards

GET /persons/:id/cards

List all Card objects for any individual Person.

Headers

 

Name Value
Authorization Bearer {token}

 

URL parameters

 

Name Value
id int. The ID of a consumer (person) you added via POST /persons.

Response

 

Name Value
cards List of JSON objects.
cards[].last_four string. Last four digits of this card.
cards[].exp_year int
cards[].exp_month int
cards[].card_id int.
cards[].postal_code string
cards[].last_opt_in string. Timestamp of when this card was added (YYYMMDD)

Status Code

Code Comment
200 Request OK.
401 User not authorized

How can we help?