API Documentation

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 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 Timestamp of when this card was added (YYYMMDD)

Status Code

CODE COMMENT
200 Request OK.
401 User not authorized.