Error Code Reference
A comprehensive list of all the errors that can be thrown by the Cash App Pay API
Overview
This reference describes every error that can occur within the Cash App Pay APIs, why it happened, and how to resolve it.
Error Schema
Errors in the Cash App Pay API are returned in every endpoint with the same format: an array of error objects at the top level of the response. Here’s an example:
Example Error
Each error has the following fields:
Retry Behaviors
All requests to the Cash App Pay API are idempotent, but you should only retry requests in certain cases. There are 3 types of retry behaviors documented below:
For more information about handling errors in your code, see error handling.
Authentication Errors
The following errors occur before a request is processed by the Cash App API, during authentication and authorization. They are typically related to issues with the credentials passed to the API.
All validation errors have a category of AUTHENTICATION_ERROR
.
Validation Errors
The Cash App Pay API validates all requests sent by API clients to ensure they match the documented schemas. If a request does not match the schema, a validation error will be returned.
All validation errors have a category of INVALID_REQUEST_ERROR
.
Do not automatically retry validation errors
Validation errors will continue to return the same error code if the API client continues to make requests with the same payload. Retrying the request will not change the responseGeneral Validation Errors
The following errors may occur when the request is unable to be parsed due to invalid data being passed by the API client. These errors may occur on any request or field, regardless of the field’s data type.
String Validation Errors
The following errors may occur when a request fails validation due to invalid data being passed to a field that accepts string values.
Integer Validation Errors
The following errors may occur when a request fails validation due to invalid data being passed to a field that accepts integer values.
Boolean Validation Errors
The following errors may occur when a request fails validation due to invalid data being passed to a field that accepts boolean values.
Array Validation Errors
The following errors may occur when a request fails validation due to invalid data being passed to a field that accepts array values.
Object Validation Errors
The following errors may occur when a request fails validation due to invalid data being passed to a field that accepts nested objects.
Map Validation Errors
The following errors may occur when a request fails validation due to invalid data being passed to a field that accepts maps.
Common Runtime Errors
The following error codes are re-used throughout the Cash App Pay API and handle common errors, such as missing resources, pagination problems, and idempotency key reuse.
All of the following errors have a category of INVALID_REQUEST_ERROR
.
Rate Limit Errors
The Cash App Pay API rate limits OLAP (online analytical processing) requests to guarantee that the Cash App Pay service stays fast and stable. These include operations such as:
- Listing payments for an API client by reference ID
- Retrieving a list of active grants approved by a given customer
- …and any other “list” or “search” endpoints in the API
Reach out to Cash App Pay support at any time to request rate limit increases on these endpoints, and we will be happy to adjust them for you.
Payment processing requests are never rate-limited
OLTP (online transaction processing) requests related to payment acceptance are never rate-limited. This includes, but is not limited to:
- Creating, reading, voiding, and capturing individual Payments
- Creating, reading, voiding, and capturing individual Refunds
- Creating, upserting, reading, and updating individual Bbrands
- Creating, upserting, reading, and updating individual Merchants
- Creating, reading, and updating Customer Requests
- Reading and revoking Individual Grants
Refer to the API reference pages for any endpoint to see if it’s rate limited.
Payment Processing Errors
The following error codes may occur in payment processing flows. In addition to these errors, grant errors may occur during payment processing, while using grants to create a payment.
All payment processing errors have a category of PAYMENT_PROCESSING_ERROR
.
Merchant & Brand Registration Errors
The following error codes may occur while managing merchants and brands on Cash App Pay.
All merchant registration errors have a category of MERCHANT_ERROR
or BRAND_ERROR
.
Grant Errors
The following error codes may occur while using any endpoint that interacts with grants, including ones used to create payments or refunds.
All grant errors have a category of GRANT_ERROR
.
Dispute Errors
The following error codes may occur while using any endpoint that responds to disputes.
All dispute errors have a category of DISPUTE_ERROR
.
Webhook Errors
The following error codes may occur while using any webhook related endpoints.
All webhook errors have a category of WEBHOOK_ERROR
.
Customer Errors
The following error codes may occur while using any customer-related endpoints.
All customer errors have a category of CUSTOMER_ERROR
.
API Errors
In the rare event that the Cash App Pay APIs experience issues, the error codes below will be returned.
All server errors (ones not caused by the API client) have a category of API_ERROR
.