POST
/
card
curl --request POST \
  --url https://api.treasuryprime.com/card \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "account_id": "acct_291u96075mva",
  "card_product_id": "cdpt_w10r2sebv0nl",
  "creation_options": {
    "name_line_two": "VP of cards"
  },
  "person_id": "psn_5vyzn6sveupa"
}'
{
  "account_id": "acct_291u96075mva",
  "card_controls": null,
  "card_product_id": "cdpt_w10r2sebv0nl",
  "created_at": "2021-02-19T20:42:40Z",
  "cvv": null,
  "expiration": "0225",
  "fulfillment": {
    "shipping_method": "USPS Mail (5-7 business days)",
    "status": "issued",
    "tracking_number": null
  },
  "id": "card_zuhqnmz7e085",
  "last4": "3385",
  "pan": null,
  "person_id": "psn_5vyzn6sveupa",
  "pin_is_set": false,
  "status": "unactivated",
  "updated_at": "2021-02-19T20:42:41Z",
  "userdata": null
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The card to create

The body is of type object.

Response

200 - application/json
The card created

The response is of type object.