Error codes
This page lists all the possible errors associated with the HTTP 400 status code while creating Charges and Connected Account Transfers via our API endpoints.
For 400 errors, the response you receive will contain a code
specifying the error encountered, message
about the error, and source
providing additional context about the error.
General errors with example response
A general error provides an error response with code
, message
, source
. Like in the example below, the response contains an errors object with:
code
: Unique numeric identifier of the specific validation error encountered.message
: A message about the specific error encountered.source
: The specific field or object within the request that has failed.
Example:
See below for all potential error codes and descriptions.
Errors
Error codes and detailed descriptions for Create a charge API and Create a new connected account transfer API.
Code | Description | Next steps |
---|---|---|
insufficient_fund | The account has insufficient funds. Please try again when more funds become available. | Top up the source account in the payment currency. |
validation_failed | Target account is not connected to the platform or not fully operational. | Try another account or contact customer support to get more information. |
method_not_allowed | Request method POST not supported. | Refer to the API Reference API and use the correct method. |
invalid_argument | The amount cannot be 0 (zero). | Retry the request with a positive amount. |
request_id_duplicate | The request_id provided in the request has already been used. | Retry the request with a new request_id . |
not_found | Charge or CA transfer could not be found. | Please retry with a valid Charge or CA Transfer ID. You can check if the charge or CA transfer exists using Get list of charges API or Get list of connected account transfers API. |
Please note that the Charges and Connected Account Transfers API can return the details
object within the error response when applicable. For example, if you attempt to retry Create a Charge API operation after the previous operation has been successfully processed, it may result in the following error.
The source_id
field will contain the unique identifier of the Charge/CA Transfer object, which was returned in the previous successful operation.