---
updatedAt: 2025-03-18T12:48:58.000Z
agentTools:
  projectIndex: https://ramp-docs.transfi.com/llms.txt
---

# Error codes

Whenever a request fails (the HTTP status code is 4xx or 5xx), the API returns a JSON object with below fields:

1. message - Contains a human-readable error message
2. code - Contains a machine-readable error code

Below are some of most common errors across all our endpoints.

Error Codes and Messages:

| Error Code             | HTTP Code | Error Message                                     |
| :--------------------- | :-------- | :------------------------------------------------ |
| MISSING\_ARGUMENTS     | 400       | Mandatory request params are empty                |
| INVALID\_ARGUMENTS     | 400       | Invalid data types                                |
| UNAUTHORIZED\_CUSTOMER | 401       | Invalid merchant\_id or merchant\_secret provided |
| UNAUTHORIZED\_USER     | 401       | Order id is not belongs to your user profile      |
| RESTRICTED\_ACCESS     | 403       | Not authorized to use the API                     |
| LIVE\_MODE\_DISABLED   | 403       | Not authorized to use live environment            |
| ORDER\_NOT\_FOUND      | 404       | Order with the id is not found                    |
| CUSTOMER\_NOT\_FOUND   | 404       | Unable to identify the customer                   |