Get all cards

GET /accounts/{account_id}/cards

Path parameters

Responses

  • 200 object

    Array of cards

    • results array[object]

      Card data. Field names match the ones in Lithic's card schema

      • spend_limit integer | null

        Spending limit of card (in cents). If not provided, spending is still subject to the spend limit set at the issuer processor account (if any).

        Minimum value is 1.

      • lithic object
        • token string(uuid)

          Unique external identifier for the card

        • Token belonging to the card program under which to create the card.

        • Last four digits of the card

        • type string

          The type of card being returned

          Values are UNLOCKED, MERCHANT_LOCKED, or SINGLE_USE.

        • state string

          The current state of the card

          Values are OPEN, PAUSED, or CLOSED.

        • memo string

          Friendly name to identify the card

  • 404

    Could not find account.

  • Unexpected Error.

GET /accounts/{account_id}/cards
curl \
 -X GET https://<your_environment_name>-uat-api.canopyservicing.com/accounts/can_52322/cards \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response example (200)
{
  "results": [
    {
      "spend_limit": 8000000,
      "lithic": {
        "token": "adccd28d-532e-480b-a063-a46a77a15570",
        "card_program_token": "a5e38341-cc95-4a9b-a21c-751aeca67e9c",
        "last_four": "0339",
        "type": "UNLOCKED",
        "state": "OPEN",
        "memo": "Conference Event Card"
      }
    }
  ]
}