Response
When a request is successful, a response body will typically be sent back in the form of a JSON object.
Another exception is when a request is processed asynchronously, it will result in a successful
HTTP 202 status and an empty response body.
#Collection
A collection of resources will be displayed within the data object.
{
"data": [
{
"id": 1,
"handle": "herren-hosen-eu",
"name": "Herren Hosen EU",
"product_sizes": [
1,
2,
3,
4,
5,
6
],
"created_at": "2023-01-10T10:11:11+00:00",
"updated_at": "2023-01-10T10:11:11+00:00"
}
],
......
}
#Resource
A resource are presented directly.
{
"id": 1,
"handle": "herren-hosen-eu",
"name": "Herren Hosen EU",
"product_sizes": [
1,
2,
3,
4,
5,
6
],
"created_at": "2023-01-10T10:11:11+00:00",
"updated_at": "2023-01-10T10:11:11+00:00"
}
#Attribute
If an attribute has no value it is presented as null.
If an attribute is some kind of list and it is represented by an array, an array will be returned, even if empty.
{
...
"scale_factors": [],
"discontinue_at": null,
...
}
#Timestamp
All time values presented in ISO8601 format: YYYYY-MM-DDTHH:MM:SSZ.