Error Handling
We use the following status code in the response depending on the success or failure:
Status Code | Description |
200 - β Success/OK | Request success and the response will return with the requested data. |
400 - β Bad Request | The request returned an error. |
401 - β Unauthorized | The credentials are not valid. |
403 - β Forbidden | You don't have permission to perform the request. |
404 - β Not Found | The requested resource can't be found. |
Here is our recommendation in terms of handling errors:
ο»ΏCause You sent a request without a required field. For example, you must provide a key and secret when requesting an access token.
ο»ΏSolution Check the error message to see which field you need to provide and ensure it has followed the requirements. If unsure what information to provide or the format, check the required parameters in our API Endpoints section.
ο»ΏCause The request you sent already exists.
ο»ΏSolution Try to add another value. You may create a request on the Container Tracking endpoint to check whether the record exists.
ο»ΏCause You input the wrong credentials.
ο»ΏSolution Re-check the key and secret you input. Make sure no parts are missing or added manually.
ο»ΏCause You haven't input the access token inside the Authorization headers and the Headers value.
ο»ΏSolution After acquiring the access token, ensure that you have already input all the required authorization values every time you play around with our endpoints.
ο»ΏCause The access token you have is expired.
ο»ΏSolution Please Re-authenticate to get the new API key.
Remember, the API key only lasts for 30 minutes. If longer than that, you should acquire it again.
ο»ΏCause This error occurs when you're not allowed to access the requested page.
ο»ΏSolution Double-check the URL and make sure you input an actual value name. If you are still facing an error, don't hesitate to contact our support, it might be an ownership issue.
ο»ΏCause This error occurs because you provided the wrong URL, or the ID you requested is not associated with any transactions.
ο»ΏSolution Ensure you use the correct URL (check for typos and our API documentation carefully). Also, make sure that the ID or the required value exists.
βοΈ Need some help?ο»Ώο»Ώ
If you encounter a problem or require assistance, please contact our support team with details regarding your request at support@rpalabs.com. A representative will connect with you soon. π
ο»Ώ
ο»Ώ