When you send an API request to the Affise server, you can get a response with a code other than 200
. If you get an API error, it means the request was not sent successfully and your action wasn't performed. Follow the guide below to resolve your issue.
Error responses
Before you start looking for a solution, try the most general steps to avoid an API error:
Make sure you use the right API method. For example, not
GET
instead ofPOST
.If you use the browser to make requests, clear the browser cache and cookies. Also, disable browser extensions and try an incognito mode.
Error message | Description | How to fix |
| The request you sent to the website server couldn’t be understood, usually, because the JSON or XML body contains an error. |
|
| The current request requires user authentication. Your API key can be invalid, or you attempted to access the wrong data center. | Use some other API key, and make sure your API belongs to a General manager or the user with enough permissions. |
| You are not permitted to access this resource. | Check whether a user has the necessary permissions for the request. |
| The system couldn't find the webpage you tried to reach on the server. It is a client-side error, which means that either the page was removed or you typed in the URL incorrectly. | Recheck your URL if you are sure that a resource exists.
|
| Something has gone wrong on the website server. | Try the general steps, recheck your URL or address the Customer Support Team. |
| The server received an invalid response from an inbound server. | Try the general steps, recheck your URL or address the Customer Support Team. |
Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].