Skip to main content
All API errors return a JSON body with an error code and a human-readable description. Some errors include additional context fields.
{
  "error": "insufficient_balance",
  "description": "The card does not have sufficient balance for this transaction."
}

Card Creation Errors

These errors may be returned when calling POST /cards.
CodeStatusDescription
invalid_amount400The requested card amount is invalid or out of range.
amount_exceeds_limit400The requested amount exceeds the maximum allowed card limit.
beta_capacity_reached403The beta program has reached its current capacity.
cardholder_not_found404No cardholder record was found for this user.
cardholder_incomplete400The cardholder profile is missing required information.
payment_method_required422A valid payment method must be attached before creating a card.
card_declined402The payment method was declined by the issuer.
payment_authorization_failed402The payment authorization could not be completed.
no_shortcut_cards_available503No shortcut cards are currently available for provisioning.
card_creation_failed500An unexpected error occurred while creating the card.

Transaction Errors

These errors may be returned when recording a card transaction.
CodeStatusDescription
invalid_card_id400The provided card ID is malformed or invalid.
invalid_transaction_amount400The transaction amount is invalid or out of range.
invalid_merchant400The specified merchant is invalid or not recognized.
card_not_found404No card was found with the given ID.
not_shortcut_card400The specified card is not a shortcut card.
card_status_invalid409The card is not in a valid status for this operation. Returns currentStatus.
insufficient_balance400The card does not have sufficient balance for this transaction.
amount_exceeds_card_limit400The transaction amount exceeds the card’s spending limit.
pi_capture_failed402The payment intent capture failed. Returns reason.
pi_capture_timeout402The payment intent capture timed out. Returns reason.
payment_not_found404No payment was found with the given ID.
payment_not_refundable409The payment is not in a refundable state.
refund_failed402The refund could not be processed.

General Errors

CodeStatusDescription
internal_error500An internal server error occurred.

Error Response Format

All error responses follow this structure:
{
  "error": "error_code",
  "description": "Human-readable description of what went wrong."
}
Some errors include additional context fields:
409 (card_status_invalid)
{
  "error": "card_status_invalid",
  "description": "The card is not in a valid status for this operation.",
  "currentStatus": "CLOSED"
}
402 (pi_capture_failed)
{
  "error": "pi_capture_failed",
  "description": "The payment intent capture failed.",
  "reason": "card_declined"
}