API errors overview
Ripple Payments Direct 2.0 returns standardized error responses for all API requests.
Errors are consistent across services, making it easier to log, monitor, and troubleshoot integration issues.
Error response body schema
All error responses share the same structure:
Array of objects Array of objects. Each object contains the following fields: | |||||||||||||||||||||||||
Array
|
Example Error Response
{
"code": "USR_067",
"type": "USER_ERROR",
"title": "Insufficient balance",
"description": "Payment failed due to insufficient balance. Add funds before retrying.",
"status": 402,
"timestamp": "2025-08-21T10:15:30Z"
}
Handling API errors
When building your integration:
- Always log and monitor code and status.
- Check the error code first when deciding how to handle errors.
- Treat description as guidance for humans, not programmatic logic.
- Use status for general categorization, not for recovery logic.
For the complete list of error codes and troubleshooting steps, see the API Error Codes reference.
Note
This is the initial release of Payments Direct 2.0 error handling. The schema and error codes are stable for integration, but descriptions will be expanded with more actionable troubleshooting guidance in future updates.