Turuq Onboarding

Response Status Codes

Even with careful requests, errors can occur. The Turuq API returns HTTP status codes to indicate success or the type of failure.

CodeMeaningDescription
200SuccessThe request was successful. Relevant data is returned in the JSON response body.
201CreatedThe request was successful. Relevant data is returned in the JSON response body.
400Bad RequestMissing or malformed parameter. Check the documentation and your request, then try again.
401UnauthorizedNo or invalid API key provided, or the account does not have access to this resource.
403ForbiddenAuthentication valid but server refuses to fulfill the request (e.g., lack of permissions).
404Not FoundThe endpoint or resource does not exist.
409ConflictThe request conflicts with an existing resource, for example an integratorId already used by one of your integration orders.
429Too Many RequestsRate limit exceeded. See the Rate Limits section for details.
500Internal Server ErrorAn unexpected error occurred on Turuq’s side. You may retry, but if it persists, contact support.

Note: Errors are returned in an error string at the root of the JSON response. Schema validation failures also include an issues array. Rate limit responses use a message field instead, as shown on the Rate Limits page.