Payments Direct returns standardized error responses across its API operations, making it easier to log, monitor, and troubleshoot integration issues.
The OAuth token endpoints are the exception. They follow the OAuth 2.0 error format instead, described in Authentication errors.
A few other responses don't use the standard format either. A request without an Authorization header gets a plain-text 403, and a request with a malformed token gets a plain-text 401 (see Handling authentication errors). A POST /v3/identities request with an unsupported Content-Type header gets a 415 in the RFC 7807 problem details format.
Apart from these exceptions, error responses share the same structure: a top-level status, and an errors array containing one or more error objects.
| Field | Type | Description |
|---|---|---|
status | integer | The HTTP status code for the response. |
errors | array | One or more error objects describing what went wrong. A single request can fail for more than one reason. |
Each object in the errors array contains the following fields:
| Field | Type | Description |
|---|---|---|
code | string | A unique identifier for the error (for example, USR_205). |
type | string | The error category. One of: AUTH_ERROR, USER_ERROR, NOT_FOUND, CONFIGURATION_ERROR, SYSTEM_ERROR. |
title | string | A short, human-readable summary of the error. |
description | string | A concise explanation of the error. May include recovery instructions. |
timestamp | string (ISO 8601) | The time at which the error occurred. |
status appears once, at the top level of the response. It is not a field of the individual error objects. Always iterate errors as an array, even when it contains a single entry.
POST /v3/payments returns this 400 response when your available balance doesn't cover the payment. The payment isn't created.
{
"status": 400,
"errors": [
{
"code": "USR_205",
"type": "USER_ERROR",
"title": "Insufficient balance",
"description": "Payment failed due to insufficient balance. Add funds to your account and try again.",
"timestamp": "2025-08-21T10:15:30.000Z"
}
]
}USR_067 has the same title but reports a different failure: the payment exists, but reserving its funds failed afterward. It appears in the errors of the failed payment. See API payment failures.
When building your integration:
- Always log and monitor the
codeandstatusfields in every error response. - Check the error code first when deciding how to handle errors. Do not rely solely on the HTTP status code.
- Treat the
descriptionfield as guidance for humans, not programmatic logic. Its wording may change between releases.
Some errors are transient and can be retried; others indicate a condition that must be resolved before resubmitting.
| Error type | HTTP status | Retry? | Recommended action |
|---|---|---|---|
USER_ERROR | 400, 404, 415 | No | Fix the request and resubmit. |
USER_ERROR | 402 | No (until resolved) | Resolve the underlying condition (balance, limits, or identity details) before retrying. |
USER_ERROR | 403 | No | The operation isn't permitted for your account, or the resource isn't available to your organization. Contact Ripple technical support if you need access. |
USER_ERROR | 405 | No | The operation isn't supported for this resource. Check the API reference for supported operations. |
USER_ERROR | 409 | Only for USR_117 | For USR_117 (concurrent update), retry after a short delay. For other codes, resolve the conflict, for example by reusing the existing resource or choosing a unique value. |
USER_ERROR | 422 | No | Resolve the resource's state first, for example by deactivating the existing financial instrument before you add another. |
USER_ERROR | 429 | Yes, with backoff | Too many requests. Wait, then retry with exponential backoff. |
NOT_FOUND | 404 | No | Verify the resource ID and resubmit. |
AUTH_ERROR | 401 | After token refresh | Regenerate your access token and retry. |
AUTH_ERROR | 403 | No | Verify that your token has the required scopes for this action. On payment operations, a 403 can also mean the payment exists but belongs to a different tenant. |
SYSTEM_ERROR | 500 | Yes, with backoff | Retry with exponential backoff. Contact Ripple technical support if the issue persists. |
SYSTEM_ERROR | 503 | Yes, after the stated time | A maintenance window is in force. The error description states when service is expected to resume. Retry after that time rather than immediately. |
CONFIGURATION_ERROR | 500 | No | Contact Ripple technical support. |
For the complete list of error codes, see the API error codes reference.
For guidance on retry strategy, exponential backoff, and monitoring, see Error handling and retry strategy.