HTTP header status codes
The API returns standardized HTTP status codes in its headers with every call. The most common ones are:payload content: rule of thumb
Generally speaking, the API is designed around the principe “don’t send what you don’t have and you won’t get what is not there”. This is mainly to avoid receiving and sending unnecessary information and to keep the content as much as light and readable as possible.Don’t send what you don’t have
- don’t send fields you don’t have any value for (unless it is required in the request body)
example: do not send a price update with a value of “0” - don’t send data that did not change since last update
example: do not constantly send the same stock value on a SKU if not required
You won’t get what is not there
The API doesn’t return data which isnull, blank or 0. Therefore if a field is not included within the response body, you can assume that it is either empty or none existant for that specific resource. You can then implement default values based on said field data type. Check the API Reference for schemas.example: when retrieving items stock, you won’t see any warehouse on a given item that does not have stock in said warehouses.
example: when retrieving orders, you will not see in the response a price field such as ‘ecotax’ if its value is
0.

