Client errors
In case of a badly formatted API request, the API returns an error with an HTTP status code in the 400 to 499 range. Based on the type of client error made, the response is one of the following.400Bad request - Returned when the request passed authentication and authorization checks, but the request did not have the data it expected. In most situations, this is because of missing request properties, or incorrect values for properties.401Unauthorized - Returned when the bearer token was not valid and could not be used to authorize the API call. In this case please check the List 4XX errors API to inspect the cause of the issue.403Forbidden - Returned when the bearer token is valid but the authenticating client does not have permission to access or manipulate the resource. This may be due to insufficient scopes in the JWT, a restricted API key used to sign the JWT, or a resource being locked.404Not found - The resource could not be found. In a small number of cases, the resource may indeed exist, but due to permissions it is not accessible to the authenticated client and returning a403would provide information that should not be available to the caller.405Method not allowed - The HTTP method used was not recognized for the path of the request.409Duplicate record - A record already exists that matches one of the unique constrain for this resource. Check the API documentation for the call made to check what fields have a unique constraint.429Too many requests - The request exceeded a rate limit. Wait for the number of seconds in theRetry-Afterheader, if present, before you retry.
No active payment service
A transaction request can fail with a400 response and the message There is no active payment service for this transaction.
This means no active connection can process the transaction as requested. Common causes are the following.
- No connection supports the payment method for the transaction’s currency and country.
- The connection doesn’t support the transaction’s
intent. For example, a payment method that only supports direct capture needsintentset tocapture. - The matched Flow rule leaves no connection to route the transaction to.
Server errors
In case of a server-side error in the system, the API returns an error with an HTTP status code in the 500 to 599 range. None of these errors can be resolved client side. Please contact support to raise any5XX errors.
A 504 Gateway timeout means the request took too long to process. The operation may still complete, so
treat the outcome as unknown and follow the guidance on handling timeouts before you retry.