Resources
Response Codes
Orvix pay API responses include standard HTTP status codes to indicate the success or failure of a request. Successful responses will have a status code of 200 OK, while various error conditions will be represented by different status codes along with error messages in the response body.
| Code | Meaning | Example message |
|---|---|---|
| 200 | OK The request succeeded. |
SUCCESS, CREATED |
| 400 | Bad Request Validation failed or credentials are invalid. |
Requested credentials is invalid |
| 401 | Unauthorized The access token has expired. Request a new one. |
Request token is expired |
| 403 | Forbidden The access token is missing or invalid. |
Requested with invalid token! |
| 404 | Not Found The merchant for these credentials was not found. |
Merchant doesn't exists or credentials is invalid |
| 500 | Server Error Something went wrong on our side. Try again. |
Failed to create payment! Please try again |
Response format
Every response has the same shape. Check type first, then read data or message.error.
Response format
Success
{
"message": {
"code": 200,
"success": [
"SUCCESS"
]
},
"data": {
"...": "..."
},
"type": "success"
}
Error
{
"message": {
"code": 400,
"error": [
"Error message"
]
},
"data": [],
"type": "error"
}