Get started
Introduction
Welcome to the iglooX API documentation. This portal is intended to accurately document the current state of the iglooX APIs.
Using the API
All iglooX APIs are "RESTful" (or as close as practically possible) and generally expect and return JSON. All endpoints return a status code that reflect the outcome of the request.
API Versioning
iglooX guarantees the consistency of API behaviour for a given API version. When a new API version is released this documentation is "branched" and we focus our documentation efforts on the latest release. The documentation for previous API versions can be found using the version selection at the top of the navigation bar.
When interacting with the iglooX API you must send the X-API-VERSION header to instruct the API how it should parse requests and respond. As new API versions are released we maintain backwards compatability for existing API versions. We consider the following to be backwards-compatible changes:
- Adding new endpoints and resources (schemas)
- Adding new optional properties to existing endpoints and resources (schemas)
- This includes adding new enumerated values to existing properties
- Changing the order of properties in existing endpoints and resources (schemas)
- Changing the contents or length of dynamic strings, such as order numbers, error messages and human-readable strings
- If you persist these strings, store them as a
VARCHAR(255)compatible type
- If you persist these strings, store them as a
With the exception of error messages, if a string-based property was previously limited to 255 characters and we need to extend it past 255 characters, a new API version will be introduced instead.
Error Responses
If a request fails we'll do our best to return a response that provides both the end user and developer the necessary information to rectify the issue. Below is an example error response for a request that failed validation:
{
"error": "bad_request",
"description": "We were unable to process your request. Please check the supplied information and try again.",
"fields": [
{
"name": "name",
"description": "The user name must have a length of at least one character."
},
{
"name": "mobile_number",
"description": "The mobile number must be a valid mobile number."
}
]
}
For malformed requests, fields identifies the request inputs that need correction. Domain refusal responses leave fields empty because they describe an application outcome rather than a malformed input. Integrations must branch on the stable error identifier rather than parsing description. See the Error responses guide for status selection, retry guidance, and the common and domain error catalogs.