---
updatedAt: 2026-03-24T12:11:04.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Ecommerce API error codes

[block:html]
{
  "html": "<!--JIRA DS-3008; Region pill icon added to topic on 2.27.2023-->\n<div class=\"container\">\n<!--US-->\n  <div class=\"pill\">\n    <div class=\"label\">United States</div>\n   \n  </div>\n<!--Canada-->\n  <div class=\"pill\">\n    <div class=\"label\">Canada</div>\n</div>\n  \n</div>\n\n<style>\nbody {\n  font-family: \"Segoe UI\", \"Roboto\",\n    \"Segoe UI Symbol\";\n}\n.container {\n  align-items: center;\n  min-width: 10%;\n  text-align: left;\n   overflow: auto;\n}\n/*Pill format*/\n.pill {\n  background: #44BB44;\n  border: .5px solid #44BB44;\n  margin-left: 5px;\n  overflow: auto;\n\n}\n/*Text positioning inside the pill*/\n.pill,\n.pill__addon {\n  display: inline-block;\n  box-sizing: border-box;\n  padding: 0px 10px;\n  border-radius: 10px;\n  position: relative;\n  height: 1.5rem;\n}\n/*Text format inside the pill*/\n.pill .label,\n.pill__addon .label {\n  font-style: normal;\n  font-weight: normal;\n  font-size: 0.70rem;\n  color: #fff;\n  display: inline-block;\n  vertical-align: middle;\n \n}\n</style>"
}
[/block]

The Ecommerce API returns error codes and messages when a request contains invalid or incomplete data and Clover cannot process the request. These issues can be divided into two general categories:

* Errors that should be addressed by your app's logic (if you are integrating with the API only)
* Errors that should be handled at runtime (iframe and API integrations)

Errors you may encounter are explained the in the following sections.

## API only errors

You can prevent these errors by checking for the described issues in your application before submitting the API request.

[block:parameters]
{
  "data": {
    "h-0": "Error code",
    "0-0": "`incorrect_cvc`",
    "0-1": "The `card.cvv` provided  is not a three- or four-digit value",
    "0-2": "Create token",
    "0-3": "Verify that the CVV value is a three- or four-digit number",
    "1-0": "`invalid_cvc`",
    "1-1": "The `card.cvv` provided  is not a three- or four-digit value",
    "1-2": "Create token, create or update customer",
    "2-0": "`invalid_expiry_month`",
    "2-1": "The `card.exp_month` provided is not a one- or two-digit value",
    "2-2": "Create token",
    "3-0": "`invalid_expiry_year`",
    "3-1": "The `card.exp_month` provided is not a two- or four-digit value",
    "3-2": "Create token",
    "4-0": "`invalid_number`",
    "4-1": "The PAN provided in `card.number` is invalid",
    "4-2": "Create token",
    "h-1": "Description",
    "h-2": "Request type(s)",
    "h-3": "Prevention",
    "1-3": "Verify that the CVV value is a three- or four-digit number",
    "2-3": "Verify that the month value is a one- or two-digit number",
    "3-3": "Verify that the year value is a two- or four-digit number",
    "4-3": "Verify that the PAN is valid",
    "5-0": "`invalid_tax_amount`",
    "5-1": "The `tax_amount` provided is not valid",
    "5-2": "Create charge",
    "5-3": "Verify that the amount is a positive number"
  },
  "cols": 4,
  "rows": 6
}
[/block]

## API and iframe errors

These errors can be handled at runtime and may be encountered by any Ecommerce app.

[block:parameters]
{
  "data": {
    "0-0": "`amount_too_large`",
    "1-0": "`card_declined`",
    "3-0": "`charge_already_captured`",
    "4-0": "`charge_already_refunded`",
    "5-0": "`email_invalid`",
    "6-0": "`expired_card`",
    "7-0": "`incorrect_cvc`",
    "8-0": "`incorrect_number`",
    "9-0": "`invalid_card_type`",
    "10-0": "`invalid_charge_amount`",
    "12-0": "`invalid_tip_amount`",
    "13-0": "`invalid_tax_amount`",
    "14-0": "`missing`",
    "16-0": "`processing_error`",
    "17-0": "`rate_limit`",
    "18-0": "`resource_missing`",
    "19-0": "`token_already_used`",
    "11-0": "`invalid_request`",
    "2-0": "`card_on_file_missing`",
    "15-0": "`order_already_paid`",
    "h-0": "Error code",
    "h-2": "Request type",
    "h-1": "Description",
    "6-1": "The expiration date (the combination of `card.exp_month` and `card.exp_year`) provided is in the past",
    "7-1": "The `card.cvv` provided  is not a three- or four-digit value",
    "6-2": "Token",
    "7-2": "Token",
    "11-2": "Token",
    "11-1": "The value provided in `card.number` is not a valid raw or encrypted PAN",
    "2-1": "The customer attempting to pay does not have a `source` on file to complete the payment",
    "2-2": "Charge",
    "19-1": "The `source` value is not a multipay token and was already used for a different payment",
    "19-2": "Charge",
    "17-1": "Your application has made too many requests and additional requests will not be processed until the rate limit expires",
    "17-2": "Any",
    "4-1": "The `charge` provided has already been refunded",
    "4-2": "Refund",
    "3-2": "Capture charge",
    "3-1": "The `charge` provided has already been captured",
    "10-1": "The `amount` provided exceeds the amount allowed by Clover",
    "10-2": "Charge",
    "1-2": "Create charge and pay for order",
    "1-1": "The `source` provided was declined by the payment gateway",
    "5-2": "Create charge, create or update customer, pay for order",
    "5-1": "The `email` provided is not valid",
    "0-1": "The `amount` provided exceeds the amount allowed by Clover ($999, 999.99)",
    "0-2": "Create charge and pay for order",
    "8-1": "The value provided in `card.number` is not valid",
    "8-2": "Token",
    "9-1": "The `card.brand` provided is not a recognized value",
    "9-2": "Token",
    "12-2": "Create charge and pay for order",
    "12-1": "The `tip_amount` provided is not a valid amount",
    "13-2": "Create charge",
    "13-1": "The `tax_amount` provided is not a valid amount",
    "14-2": "Token",
    "14-1": "The token request failed upstream and the upstream message could not be processed",
    "15-2": "Pay order",
    "15-1": "The order identified by the ID in the request URL has already been paid",
    "16-2": "Any",
    "16-1": "A generic error indicating that the request could not be processed as submitted",
    "18-2": "Any",
    "18-1": "The data item (charge, order, or refund) provided in the request does not exist",
    "h-3": "Next steps",
    "1-3": "Allow the customer to enter a different card and retry the request with the new `source`",
    "2-3": "Direct the customer to enter their card information and update the customer's record with the new `source`. Then, retry the original charge request.",
    "5-3": "Notify the customer of the issue and allow them to retry or enter a new email address",
    "3-3": "Do not retry the request",
    "4-3": "Do not retry the request",
    "0-3": "If possible, split the charge or order into smaller amounts and retry as two transactions. If the customer's `source` token is single-use, the card will need to be tokenized again before attempting a second request when the first succeeds.",
    "6-3": "Notify the customer of the issue and allow them to retry by entering a new card",
    "7-3": "Notify the customer of the issue and allow them to retry by entering a new card",
    "8-3": "Notify the customer of the issue and allow them to retry by entering a new card",
    "9-3": "Before sending the request, verify that the `brand` is one of the enumerated values",
    "10-3": "If possible, split the charge or order into smaller amounts and retry as two transactions. If the customer's `source` token is single-use, the card will need to be tokenized again before attempting a second request when the first succeeds.",
    "11-3": "Notify the customer of the issue and allow them to retry by entering a new card",
    "12-3": "Notify the customer of the issue and allow them to retry by entering a new tip amount",
    "14-3": "Allow the user to retry the transaction",
    "15-3": "Notify the user that the order has already been paid",
    "16-3": "Notify the user that an error occurred and, if warranted, allow them to retry the request",
    "17-3": "Follow the best practices described in [API usage & rate limits](https://docs.clover.com/dev/docs/api-usage-rate-limits)",
    "18-3": "Notify the user that the data item could not be found. Allow the user to adjust the request and retry.",
    "19-3": "Notify the user of the issue and have them reenter their card details. Then, use the iframe to generate a new token.",
    "13-3": "Check that the amount is a positive number and, if the value has changed after the check, retry the request"
  },
  "cols": 4,
  "rows": 20
}
[/block]