Endpoints
The Card object
Card status. One of
active, blocked, deactivated, or fraud. A frozen card is blocked, and a disposable card that has been used is deactivated.Cardholder’s first name. Present on Get card details.
Cardholder’s last name. Present on Get card details.
A placeholder value in the smallest currency unit. Present on Get card details. Not the card’s spending limit: the amount a card can actually transact is the available balance on its linked account.
ISO 4217 currency code for the card. Present on Get card details.
Example card
Create a disposable card
POST /disposable-cards
Issues a single-use virtual card funded from the specified account. After its first transaction the card is no longer usable and its status is deactivated. Returns 201 Created.
Creating a card debits a card creation fee from the funding account. The call is not idempotent: sending the same request twice issues two cards, each with its own fee, so don’t retry a request that may have succeeded. Retrieve the card with Get card details to read its number and cvv.
Card creation fee
The fee is taken from the funding account in the card’s currency. If the account can’t cover it, the request fails with400 error_card_creation_fee_required. To check the fee before you create a card, call GET /card-creation-fee/{account_id} with the card currency. The fee is in the smallest currency unit.
currency is required; omitting it returns 422 error_validation_required_field_missing.
Request parameters
The ID of the account to fund the card from. The account’s currency must match the card’s
currency: a card in a different currency returns 400 error_operation_invalid_for_state. An account that doesn’t exist, or belongs to another entity, returns 404 error_resource_not_found.Display name for the card. Used in listings and the dashboard. Returned as
name in the response.Identity details for the cardholder. Omitting it returns
400 error_validation_required_field_missing.ISO 4217 currency code for the card, 3 letters. See Supported currencies. An unsupported currency returns
400 error_operation_invalid_for_state.Card expiration month in
MM format. e.g. "12". Optional. A date the card provider rejects returns 503 error_system_dependency_unavailable.Card expiration year in
YY format. e.g. "27". Optional. A year in the past or far in the future is rejected by the card provider and returns 503 error_system_dependency_unavailable.The ID of the entity to issue this card for. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns
404 error_resource_not_found. See Managing child entities for details.Request
Response
Returns the new card’sid, name, status and created time. The response doesn’t include the card credentials; retrieve them with Get card details.
201 Created
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:
Create a virtual card
POST /virtual-cards
Issues a reusable virtual card. Unlike disposable cards, virtual cards aren’t deactivated after a single transaction. Returns 201 Created.
Creating a card debits a card creation fee from the funding account. The call is not idempotent: sending the same request twice issues two cards, each with its own fee, so don’t retry a request that may have succeeded. Retrieve the card with Get card details to read its number and cvv. To check the fee first, see Card creation fee under Create a disposable card.
Request parameters
The ID of the account to fund the card from. The account’s currency must match the card’s
currency: a card in a different currency returns 400 error_operation_invalid_for_state. An account that doesn’t exist, or belongs to another entity, returns 404 error_resource_not_found.ISO 4217 currency code for the card, 3 letters. See Supported currencies. An unsupported currency returns
400 error_operation_invalid_for_state.Identity details for the cardholder. Same shape as disposable card
cardholder. Omitting it returns 400 error_validation_required_field_missing. An invalid email is rejected by the card provider with 503 error_system_dependency_unavailable. phone_number is optional; if omitted, a default number is used. A non-US number returns 400 error_card_us_phone_required.Card expiration year in
YY format. e.g. "27". Optional. A year far in the future or in the past is rejected by the card provider and returns 503 error_system_dependency_unavailable.The ID of the entity to issue this card for. Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns
404 error_resource_not_found. See Managing child entities for details.Request
Response
Returns the new card’sid, name, status and created time. The response doesn’t include the card credentials; retrieve them with Get card details.
201 Created
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:
List cards
GET /cards
Returns a paginated list of cards, newest first. Soft-deleted cards are excluded. Cards with status blocked are included, which covers frozen cards. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid. The entity must be approved.
Query parameters
Filter by funding account. If omitted, returns all cards for the entity. An ID that matches no cards, including an unknown ID, returns an empty list, not a
404. An empty value returns 422 error_validation_invalid_length. The list only contains cards owned by the entity you act for, so to list the cards of a child entity’s account, send the child’s entity_id too.Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns
404 error_resource_not_found, and an entity with no cards returns an empty list. See Managing child entities for details.Number of results per page. Between 1 and 100. Defaults to
20. A value of 0 or a non-numeric value uses the default, and a value above 100 is capped at 100. The request isn’t rejected.Pagination cursor for the next page. Use
next_cursor from the previous response. The value isn’t validated, so an unrecognised cursor returns an empty list.Pagination cursor for the previous page. Use
previous_cursor from the previous response. Passing previous_cursor as cursor pages forward instead. If you send both, prev_cursor takes precedence. See Pagination.Request
Response
Pagination metadata. This endpoint returns it at
data.pagination with the records under data.payments, not data.meta.pagination and data.data as other list endpoints do. It doesn’t return filters_applied.Errors
The request can also return the shared
429 rate-limit error. See Errors for the standard error object.
Get card details
GET /card-details/{card_id}
Returns the details of a single card, including sensitive credentials. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid.
Path parameters
The ID of the card, an opaque string issued when the card is created. A card that doesn’t exist, belongs to a different entity than the one you act for, or has been deleted returns
404 error_resource_not_found. A malformed ID returns the same 404.Query parameters
Defaults to the authenticating entity when omitted. Required when acting on a child entity. An unknown ID returns
404 error_resource_not_found for the entity, and a card that belongs to another entity returns 404 for the card. See Managing child entities for details.Request
Response
Returns the fields below underdata. This response doesn’t include created, account_id, or nuvion_account_name, and it omits shipping and the spending controls unless the card has them. It adds retrieved and the cardholder fields to the Card object.
A placeholder value in the smallest currency unit. Not the card’s spending limit: the amount a card can actually transact is the available balance on its linked account.
Spending controls on the card, defined by the card issuer. Omitted when none are set. See The Card object.
200 OK
Errors
The request can also return
403 error_auth_permission_denied when the key’s role can’t access cards or the entity isn’t approved, 503 error_system_dependency_unavailable when the card issuer doesn’t respond, and the shared 429 rate-limit error. See Errors for the standard error object.
Example error responses:
Get card transactions
GET /card-transactions/{card_id}
Returns a paginated list of transactions made with a specific card, newest first. The list includes declined and in-flight transactions as well as successful ones, and there is no sort parameter. Returns 200 OK. Authenticate with a secret API key; a publishable key or no key returns 401 error_auth_credentials_invalid.
If the card was reassigned to another funding account, the list includes the transactions from every account the card has been linked to, each with its own account_id. A deleted card returns 404, so its history can’t be read.
Path parameters
The card ID. An ID that doesn’t exist, belongs to another entity, or belongs to a deleted card returns
404 error_resource_not_found with the message Card not accessible by this entity. A malformed ID returns the same 404.Query parameters
Number of results per page. Between
1 and 100. Defaults to 20. A value of 0 or a non-numeric value uses the default, and a value above 100 is capped at 100. The request isn’t rejected.Cursor for the next page: pass
next_cursor from the previous response. The value isn’t validated.Cursor for the previous page: pass
previous_cursor from the previous response. Passing previous_cursor as cursor pages forward instead. See Pagination.Defaults to the authenticating entity when omitted. Required when acting on a child entity. A card that belongs to another entity returns
404, and an unknown ID returns 404 error_resource_not_found for the entity. See Managing child entities for details.Request
Response
Array of card transaction objects, newest first. An empty array when the card has no transactions.
Pagination metadata. This endpoint returns the records under
data.cards and the pagination state under data.pagination, with no message, meta or filters_applied, unlike the other list endpoints.Fetch the previous page
Sendprevious_cursor from a response as prev_cursor, not as cursor.
Errors
The request can also return the shared
429 rate-limit error. See Errors for the standard error object.
Example error responses:
Freeze a card
PATCH /card-details/{card_id}/freeze
Sets the card status to blocked. All authorization requests are declined while the card is frozen. The card record and spending history are preserved. Use Unfreeze to restore the card. Returns 200 OK.
A frozen card has the status blocked, the same status as a deleted card, so status alone doesn’t tell you why a card is blocked. Freezing a card that is already blocked succeeds and sends the cards.frozen webhook again, so treat that event as a statement of the card’s state rather than a count of freezes.
Path parameters
The card ID. An ID that doesn’t exist, belongs to another entity, or belongs to a deleted card returns
404 error_resource_not_found, as does a malformed ID.Request parameters
Defaults to the authenticating entity when omitted. Required when acting on a child entity. Send it in a JSON request body with
Content-Type: application/json; an entity_id query parameter is ignored, so a child entity’s card isn’t found without the body. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.Request
Response
200 OK
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:
Unfreeze a card
PATCH /card-details/{card_id}/unfreeze
Restores a frozen card to active status. Subsequent authorization requests are processed normally. Returns 200 OK.
The API doesn’t check that the card is frozen first. Unfreezing a card that is already active succeeds and sends the cards.unfrozen webhook again, so treat that event as a statement of the card’s state rather than a count of unfreezes.
Path parameters
The card ID. An ID that doesn’t exist, belongs to another entity, or belongs to a deleted card returns
404 error_resource_not_found, as does a malformed ID. A deleted card can’t be restored.Request parameters
Defaults to the authenticating entity when omitted. Required when acting on a child entity. Send it in a JSON request body with
Content-Type: application/json; an entity_id query parameter is ignored, so a child entity’s card isn’t found without the body. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.Request
Response
200 OK
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:
Reassign a card
PATCH /cards/{card_id}/account
Moves the card to a different account owned by the same entity. Any card that isn’t deleted can be reassigned, including a frozen (blocked) card. The card keeps its status. FX conversion is applied automatically at the prevailing rate as the card is used, so an account in a different currency from the card’s currency needs no extra step. Returns 200 OK.
No webhook fires when a card is reassigned. The nuvion_account_name in later cards.* webhooks is the account name stored when the card was created, so it can show the previous account’s name after a reassign; use account_id to identify the account.
Path parameters
The card ID. A card that doesn’t exist, belongs to another entity, or has been deleted returns
404 error_resource_not_found.Request parameters
The ID of the account to reassign the card to. The account must belong to the same entity as the card. An account that doesn’t exist, or belongs to a different entity, returns
404 error_resource_not_found.Defaults to the authenticating entity when omitted. Required when acting on a child entity, and both the card and the account must belong to that entity: a parent can’t move a card to an account of a different entity. Send it in the JSON request body. An unknown ID returns
404 error_resource_not_found. See Managing child entities for details.Request
Response
200 OK
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:
Delete a card
DELETE /card-details/{card_id}
Soft-deletes the card. The card is immediately blocked and removed from all listings. Nuvion keeps the underlying record internally, but the API no longer returns it: Get card details, Freeze and Unfreeze all return 404 error_resource_not_found for a deleted card. Returns 200 OK.
Deleting is not idempotent. Deleting a card that is already deleted returns 404.
Path parameters
The card ID. A malformed ID, or one that doesn’t exist, belongs to another entity, or is already deleted, returns
404 error_resource_not_found.Request parameters
Defaults to the authenticating entity when omitted. Required when acting on a child entity. Send it in a JSON request body with
Content-Type: application/json. An unknown ID returns 404 error_resource_not_found. See Managing child entities for details.Request
Response
200 OK
Errors
The request can also return the shared
403 and 429 errors. See Errors for the standard error object.
Example error responses:

