1. Home
  2. Docs
  3. Data Subscriber API Documentation
  4. Endpoints Reference
  5. POST /cards

POST /cards

This endpoint enrolls a card with your account, giving access to transactions and auth.

Headers

Name Value
Content-Type application/json
Authorization Bearer {token}

Request

 

Key Required Comment
pan Yes String. The card number (“primary account number”).
first_name Yes String
last_name Yes String
exp_month Yes Int. Valid are 1, 6, 12. Non valid: 01, 04.
exp_year Yes Int (4-digits)
cvv Yes String
person_id Yes Int. The ID of a person you created via POST /persons.
consent Yes String. URL to the card holder consent. In the sandbox, pass any non-empty string.
postal_code Yes String

Response

 

Name Value
card_id The id to refer this card.

Status Code

 

Code Comment
201 OK, card enrolled
400 Input data not correct
401 User not authorized

How can we help?