---
title: "Obtain a card token"
method: POST
path: "/cards/generic"
tags: ["Card Tokenization"]
---

# Obtain a card token

`POST /cards/generic`

Obtain a PCI DSS Compliant card token. This token must be used in order to add a card to a user’s DailyPay account.

## Request body

- object
  - `first_name` string, required — The first name or given name of the cardholder.
  - `last_name` string, required — The last name or surname of the cardholder.
  - `card_number` string, required — The full card number without spaces or hyphenation.
  - `expiration_year` string, required — The four-digit year of expiration for the card.
  - `expiration_month` string, required — The two-digit month of the expiration date for the card.
  - `cvv` string, nullable — The CVV card code.
  - `address_line_one` string, required — The first line of the address associated with the card.
  - `address_line_two` string, nullable — The second line of the address associated with the card.
  - `address_city` string, required — The city component of the address associated with the card.
  - `address_state` string, required — The two-letter state component of the address associated with the card.
  - `address_zip_code` string, required — The 5 digit zip-code component of the address associated with the card.
  - `address_country` string, required — The two-letter ISO 3166 country code component of the address associated with the card.

## Response `200`

Returns an opaque string representing the card details.

- object
  - `token` string, required — This token should be supplied in the `generic_token` field when creating a TransferAccount with `transfer_account_type` of DebitCard using the Extend API "Create a transfer account" endpoint.

## Other responses

- `500` — A server error has occurred.

---

[API](https://skmtc.net/dailypay/apis/dailypay-rest-api.md) · [All operations](https://skmtc.net/dailypay/apis/dailypay-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dailypay/dailypay-rest-api/revisions/24f4c159e842/schema)
