Create card
/cardsIssue a virtual card to a person in your organization. You must have permission to issue cards for that organization. The account you provide determines the card type.
For public API access, requires cards:write in that organization. See
Authentication for permissions and
Idempotency for retrying writes.
Headers
flex-versionstring
pattern ^\d{4}-\d{2}-\d{2}$
Request body
The person, account, and optional spending limit for a new virtual card.
cardholderIdstring (uuid)
The ID of an active person in the account's organization.
financialAccountIdstring (uuid)
The account to issue against. For a Flex Reward Card, use its linked banking account ID from the Accounts API. For a business credit card, use the financial account ID linked to an open Lead Net-60 credit line; these credit accounts are not currently returned by the Accounts API. The account and cardholder must belong to the same organization.
namestring
An optional display name for the card, from 1 to 100 characters.
min length 1
max length 100
spendLimitWritableCardSpendLimit
spendLimitWritableCardSpendLimit
An optional per-card spending limit. Omit for no per-card limit; account restrictions still apply.
amountCardAmount
amountCardAmount
The spending limit. Must be positive unless interval is unlimited, in which case it is
ignored.
amountinteger (int64)
The integer monetary amount, interpreted using scale.
scaleinteger
The number of decimal places in amount.
currencystring
The ISO 4217 currency code. Defaults to USD.
default "USD"
intervalstring
The period the limit applies to: daily, weekly, monthly, quarterly, or annually.
lifetime applies across the life of the card. Use unlimited to remove the per-card limit.
annuallydailylifetimemonthlyquarterlyunlimitedweeklyidempotencyKeystring
An idempotency key of 1 to 255 characters for this issuance request. For public API requests, a
successful replay returns the same card in its current state without issuing another card.
Reusing the idempotency key with different request fields returns 409. See
Idempotency.
min length 1
max length 255
Responses
The created card. For public API requests, a successful idempotency replay returns the same card in its current state.
application/jsonAn instrument for spending money, assigned to an account and a person.
idstring (uuid)
The unique identifier for the card.
organizationIdstring (uuid)
The identifier of the organization that owns the card.
financialAccountIdstring (uuid)
The identifier of the account the card spends against. For a Flex Reward Card, this is its linked banking account. A business credit card can reference an account that is not available through the Accounts API. Omitted when the account linkage cannot be resolved.
cardholderIdstring (uuid)
The identifier of the person the card was issued to, called its cardholder. See Persons.
cardholderNamestring
The cardholder's full name. Omitted when no name is available.
namestring
The display name assigned to the card. Omitted when no name is set.
typestring
rewardCard identifies a Flex Reward Card; businessCreditCard identifies a business credit
card with net-60 payment terms.
businessCreditCardrewardCardstatusstring
pending means the card has not been activated, active means it is activated and not frozen
or closed, inactive means it is frozen, and closed means it has been permanently cancelled.
activeclosedinactivependingformstring
physical is a physical card; virtual is a card issued for use without a physical card.
physicalvirtualnetworkstring
The payment network: mastercard or visa.
mastercardvisalastFourstring
The last four digits of the card number. Omitted until the card has been activated.
expirationMonthinteger
The expiration month, from 1 (January) through 12 (December).
min 1
max 12
expirationYearinteger
The four-digit expiration year.
spendLimitCardSpendLimit
spendLimitCardSpendLimit
The configured per-card spending limit. Omitted when no per-card limit is configured. Other account restrictions can still apply.
amountCardAmount
required
amountCardAmount
The maximum amount the card can spend during the configured interval.
amountinteger (int64)
The integer monetary amount, interpreted using scale.
scaleinteger
The number of decimal places in amount.
currencystring
The ISO 4217 currency code. Defaults to USD.
default "USD"
intervalstring
The period the limit applies to: daily, weekly, monthly, quarterly, or annually.
lifetime applies across the life of the card.
annuallydailylifetimemonthlyquarterlyweeklyactivatedAtstring (date-time)
When the card was activated. Omitted if it has not been activated.
closedAtstring (date-time)
When the card was permanently cancelled. Omitted when no closure date is recorded.
createdAtstring (date-time)
When the card was created.
lastModifiedAtstring (date-time)
When the card was last modified.
panstring
Full card number. Only available in a Reveal Session.
cvvstring
Card security code. Only available in a Reveal Session.
Invalid request, incompatible account and cardholder, inactive cardholder, unavailable virtual card type, or an account restriction that prevents issuance. See the response fields for details.
application/jsonAn error response. See Errors.
statusCodeinteger
The HTTP status code.
messagestring
A description of the error.
errorsmap of string
Additional details keyed by the affected field, or by message for request-level errors.
flexErrorCodestring
A machine-readable error code, when available. CARD_ISSUANCE_CARDHOLDER_CARD_LIMIT means the
cardholder has reached the active-card limit; CARD_ISSUANCE_CARDHOLDER_BIRTH_DATE_REQUIRED
means a date of birth is needed before the first card can be issued.
CARD_ISSUANCE_DENIED_BY_ACCESS_RESTRICTION means an account restriction prevents issuance, and
CARD_ISSUANCE_ACCESS_GATE_UNAVAILABLE means that restriction check could not complete.
CARD_ISSUANCE_TOKENIZATION_UNAVAILABLE means secure card data could not be prepared;
CARD_ISSUANCE_TOKENIZATION_GATE_UNAVAILABLE means the security eligibility check could not
complete; CARD_ISSUANCE_TOKENIZATION_REJECTED means a card-data security check failed;
CARD_ISSUANCE_TOKENIZATION_SUSPENDED means issuance is suspended after such a failure.
CARD_ISSUANCE_TOKENIZATION_ATTEMPT_IN_PROGRESS means another issuance attempt is running;
CARD_ISSUANCE_TOKENIZATION_ATTEMPTS_EXHAUSTED means the idempotency key reached its attempt
limit;
CARD_ISSUANCE_IDEMPOTENCY_KEY_IN_USE means a card is already associated with that idempotency
key; CARD_ISSUANCE_TOKEN_PAYLOAD_CONFLICT means the card processor already holds this card under
a different request; CARD_ISSUANCE_CARDHOLDER_TOKEN_CONFLICT means it holds this cardholder under
another account, or cannot read it back.
The request lacks the permissions required for this operation.
application/jsonAn error response. See Errors.
statusCodeinteger
The HTTP status code.
messagestring
A description of the error.
errorsmap of string
Additional details keyed by the affected field, or by message for request-level errors.
flexErrorCodestring
A machine-readable error code, when available. CARD_ISSUANCE_CARDHOLDER_CARD_LIMIT means the
cardholder has reached the active-card limit; CARD_ISSUANCE_CARDHOLDER_BIRTH_DATE_REQUIRED
means a date of birth is needed before the first card can be issued.
CARD_ISSUANCE_DENIED_BY_ACCESS_RESTRICTION means an account restriction prevents issuance, and
CARD_ISSUANCE_ACCESS_GATE_UNAVAILABLE means that restriction check could not complete.
CARD_ISSUANCE_TOKENIZATION_UNAVAILABLE means secure card data could not be prepared;
CARD_ISSUANCE_TOKENIZATION_GATE_UNAVAILABLE means the security eligibility check could not
complete; CARD_ISSUANCE_TOKENIZATION_REJECTED means a card-data security check failed;
CARD_ISSUANCE_TOKENIZATION_SUSPENDED means issuance is suspended after such a failure.
CARD_ISSUANCE_TOKENIZATION_ATTEMPT_IN_PROGRESS means another issuance attempt is running;
CARD_ISSUANCE_TOKENIZATION_ATTEMPTS_EXHAUSTED means the idempotency key reached its attempt
limit;
CARD_ISSUANCE_IDEMPOTENCY_KEY_IN_USE means a card is already associated with that idempotency
key; CARD_ISSUANCE_TOKEN_PAYLOAD_CONFLICT means the card processor already holds this card under
a different request; CARD_ISSUANCE_CARDHOLDER_TOKEN_CONFLICT means it holds this cardholder under
another account, or cannot read it back.
The cardholder is not accessible for this operation, the account cannot be used to issue cards, or the card from a prior request is no longer accessible during a replay.
application/jsonAn error response. See Errors.
statusCodeinteger
The HTTP status code.
messagestring
A description of the error.
errorsmap of string
Additional details keyed by the affected field, or by message for request-level errors.
flexErrorCodestring
A machine-readable error code, when available. CARD_ISSUANCE_CARDHOLDER_CARD_LIMIT means the
cardholder has reached the active-card limit; CARD_ISSUANCE_CARDHOLDER_BIRTH_DATE_REQUIRED
means a date of birth is needed before the first card can be issued.
CARD_ISSUANCE_DENIED_BY_ACCESS_RESTRICTION means an account restriction prevents issuance, and
CARD_ISSUANCE_ACCESS_GATE_UNAVAILABLE means that restriction check could not complete.
CARD_ISSUANCE_TOKENIZATION_UNAVAILABLE means secure card data could not be prepared;
CARD_ISSUANCE_TOKENIZATION_GATE_UNAVAILABLE means the security eligibility check could not
complete; CARD_ISSUANCE_TOKENIZATION_REJECTED means a card-data security check failed;
CARD_ISSUANCE_TOKENIZATION_SUSPENDED means issuance is suspended after such a failure.
CARD_ISSUANCE_TOKENIZATION_ATTEMPT_IN_PROGRESS means another issuance attempt is running;
CARD_ISSUANCE_TOKENIZATION_ATTEMPTS_EXHAUSTED means the idempotency key reached its attempt
limit;
CARD_ISSUANCE_IDEMPOTENCY_KEY_IN_USE means a card is already associated with that idempotency
key; CARD_ISSUANCE_TOKEN_PAYLOAD_CONFLICT means the card processor already holds this card under
a different request; CARD_ISSUANCE_CARDHOLDER_TOKEN_CONFLICT means it holds this cardholder under
another account, or cannot read it back.
The idempotency key was used for a different request, another attempt is in progress, or
issuance cannot continue with this idempotency key. See flexErrorCode when present.
application/jsonAn error response. See Errors.
statusCodeinteger
The HTTP status code.
messagestring
A description of the error.
errorsmap of string
Additional details keyed by the affected field, or by message for request-level errors.
flexErrorCodestring
A machine-readable error code, when available. CARD_ISSUANCE_CARDHOLDER_CARD_LIMIT means the
cardholder has reached the active-card limit; CARD_ISSUANCE_CARDHOLDER_BIRTH_DATE_REQUIRED
means a date of birth is needed before the first card can be issued.
CARD_ISSUANCE_DENIED_BY_ACCESS_RESTRICTION means an account restriction prevents issuance, and
CARD_ISSUANCE_ACCESS_GATE_UNAVAILABLE means that restriction check could not complete.
CARD_ISSUANCE_TOKENIZATION_UNAVAILABLE means secure card data could not be prepared;
CARD_ISSUANCE_TOKENIZATION_GATE_UNAVAILABLE means the security eligibility check could not
complete; CARD_ISSUANCE_TOKENIZATION_REJECTED means a card-data security check failed;
CARD_ISSUANCE_TOKENIZATION_SUSPENDED means issuance is suspended after such a failure.
CARD_ISSUANCE_TOKENIZATION_ATTEMPT_IN_PROGRESS means another issuance attempt is running;
CARD_ISSUANCE_TOKENIZATION_ATTEMPTS_EXHAUSTED means the idempotency key reached its attempt
limit;
CARD_ISSUANCE_IDEMPOTENCY_KEY_IN_USE means a card is already associated with that idempotency
key; CARD_ISSUANCE_TOKEN_PAYLOAD_CONFLICT means the card processor already holds this card under
a different request; CARD_ISSUANCE_CARDHOLDER_TOKEN_CONFLICT means it holds this cardholder under
another account, or cannot read it back.
Too Many Requests, the rate limit was exceeded. Carries a Retry-After header in whole seconds.
application/jsonAn error response. See Errors.
statusCodeinteger
The HTTP status code.
messagestring
A description of the error.
errorsmap of string
Additional details keyed by the affected field, or by message for request-level errors.
flexErrorCodestring
A machine-readable error code, when available. CARD_ISSUANCE_CARDHOLDER_CARD_LIMIT means the
cardholder has reached the active-card limit; CARD_ISSUANCE_CARDHOLDER_BIRTH_DATE_REQUIRED
means a date of birth is needed before the first card can be issued.
CARD_ISSUANCE_DENIED_BY_ACCESS_RESTRICTION means an account restriction prevents issuance, and
CARD_ISSUANCE_ACCESS_GATE_UNAVAILABLE means that restriction check could not complete.
CARD_ISSUANCE_TOKENIZATION_UNAVAILABLE means secure card data could not be prepared;
CARD_ISSUANCE_TOKENIZATION_GATE_UNAVAILABLE means the security eligibility check could not
complete; CARD_ISSUANCE_TOKENIZATION_REJECTED means a card-data security check failed;
CARD_ISSUANCE_TOKENIZATION_SUSPENDED means issuance is suspended after such a failure.
CARD_ISSUANCE_TOKENIZATION_ATTEMPT_IN_PROGRESS means another issuance attempt is running;
CARD_ISSUANCE_TOKENIZATION_ATTEMPTS_EXHAUSTED means the idempotency key reached its attempt
limit;
CARD_ISSUANCE_IDEMPOTENCY_KEY_IN_USE means a card is already associated with that idempotency
key; CARD_ISSUANCE_TOKEN_PAYLOAD_CONFLICT means the card processor already holds this card under
a different request; CARD_ISSUANCE_CARDHOLDER_TOKEN_CONFLICT means it holds this cardholder under
another account, or cannot read it back.
Issuance could not complete because a required service or card-data security check was unavailable. See the response fields for details.
application/jsonAn error response. See Errors.
statusCodeinteger
The HTTP status code.
messagestring
A description of the error.
errorsmap of string
Additional details keyed by the affected field, or by message for request-level errors.
flexErrorCodestring
A machine-readable error code, when available. CARD_ISSUANCE_CARDHOLDER_CARD_LIMIT means the
cardholder has reached the active-card limit; CARD_ISSUANCE_CARDHOLDER_BIRTH_DATE_REQUIRED
means a date of birth is needed before the first card can be issued.
CARD_ISSUANCE_DENIED_BY_ACCESS_RESTRICTION means an account restriction prevents issuance, and
CARD_ISSUANCE_ACCESS_GATE_UNAVAILABLE means that restriction check could not complete.
CARD_ISSUANCE_TOKENIZATION_UNAVAILABLE means secure card data could not be prepared;
CARD_ISSUANCE_TOKENIZATION_GATE_UNAVAILABLE means the security eligibility check could not
complete; CARD_ISSUANCE_TOKENIZATION_REJECTED means a card-data security check failed;
CARD_ISSUANCE_TOKENIZATION_SUSPENDED means issuance is suspended after such a failure.
CARD_ISSUANCE_TOKENIZATION_ATTEMPT_IN_PROGRESS means another issuance attempt is running;
CARD_ISSUANCE_TOKENIZATION_ATTEMPTS_EXHAUSTED means the idempotency key reached its attempt
limit;
CARD_ISSUANCE_IDEMPOTENCY_KEY_IN_USE means a card is already associated with that idempotency
key; CARD_ISSUANCE_TOKEN_PAYLOAD_CONFLICT means the card processor already holds this card under
a different request; CARD_ISSUANCE_CARDHOLDER_TOKEN_CONFLICT means it holds this cardholder under
another account, or cannot read it back.
Request template
curl -X POST 'https://api.flex.one/cards' \
-H "Authorization: Bearer $FLEX_API_KEY" \
-H 'flex-version: 2026-10-23' \
-H 'Content-Type: application/json' \
-d '{
"cardholderId": "92608f75-a040-4341-a49d-f0de8daacdf1",
"financialAccountId": "470195c7-4cf3-4df3-9f92-80848be0a3ad",
"name": "Software subscriptions",
"spendLimit": {
"amount": {
"amount": 100000,
"scale": 2,
"currency": "USD"
},
"interval": "monthly"
},
"idempotencyKey": "create-software-subscriptions-001"
}'Response 201
{
"id": "8c5146d7-8229-4ef4-96c0-55ddbd6d587b",
"organizationId": "3f8bbfa2-9257-4a7e-86d3-df1797b8e143",
"financialAccountId": "470195c7-4cf3-4df3-9f92-80848be0a3ad",
"cardholderId": "92608f75-a040-4341-a49d-f0de8daacdf1",
"cardholderName": "Alex Morgan",
"name": "Software subscriptions",
"type": "rewardCard",
"status": "active",
"form": "virtual",
"network": "visa",
"lastFour": "4242",
"expirationMonth": 11,
"expirationYear": 2029,
"spendLimit": {
"amount": {
"amount": 100000,
"scale": 2,
"currency": "USD"
},
"interval": "monthly"
},
"activatedAt": "2026-11-16T14:00:00.000Z",
"createdAt": "2026-11-16T14:00:00.000Z",
"lastModifiedAt": "2026-11-16T14:00:00.000Z"
}