Create a new card for an existing customer on an account

POST /accounts/{account_id}/customers/{customer_id}/cards

Path parameters

Body

Create a card directly with the configured issuer processor for a customer on an account

  • 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
    Hide lithic attributes Show lithic attributes object
    • memo string

      Friendly name to identify the card

    • type string

      The type of card created by Lithic

      Values are SINGLE_USE, MERCHANT_LOCKED, or UNLOCKED.

    • state string

      The state of the new card

      Values are OPEN or PAUSED.

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

Responses

  • Successfully created a new card for the customer.

    Hide response attributes Show response attributes array[object] | null
    • 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
      Hide lithic attributes Show lithic attributes object
      • 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.

      • token string(uuid)

        Unique external identifier for the card

      • Last four digits of the card

      • memo string

        Friendly name to identify the card

  • Unauthorized.

  • Forbidden.

  • Invalid input

  • Too many requests.

  • Unexpected Error.

POST /accounts/{account_id}/customers/{customer_id}/cards
curl \
 -X POST https://sandbox-api.canopyservicing.com/accounts/31mNprzLd2bKl6koVna68ARM/customers/jNxDp2ybR5M72LaBA83e06md/cards \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"spend_limit":8000000,"lithic":{"memo":"Primary College Card","type":"MERCHANT_LOCKED","state":"OPEN","card_program_token":"a5e38341-cc95-4a9b-a21c-751aeca67e9c"}}'
Request example
{
  "spend_limit": 8000000,
  "lithic": {
    "memo": "Primary College Card",
    "type": "MERCHANT_LOCKED",
    "state": "OPEN",
    "card_program_token": "a5e38341-cc95-4a9b-a21c-751aeca67e9c"
  }
}
Request examples
{
  "spend_limit": 8000000,
  "lithic": {
    "memo": "Primary College Card",
    "type": "MERCHANT_LOCKED",
    "state": "OPEN",
    "card_program_token": "a5e38341-cc95-4a9b-a21c-751aeca67e9c"
  }
}
Response examples (200)
[
  {
    "spend_limit": 8000000,
    "lithic": {
      "type": "UNLOCKED",
      "state": "OPEN",
      "token": "adccd28d-532e-480b-a063-a46a77a15570",
      "last_four": "0690",
      "memo": "Conference Event Card"
    }
  }
]
Response examples (200)
[
  {
    "spend_limit": 8000000,
    "lithic": {
      "type": "UNLOCKED",
      "state": "OPEN",
      "token": "adccd28d-532e-480b-a063-a46a77a15570",
      "last_four": "0690",
      "memo": "Conference Event Card"
    }
  }
]