{
"data": [
{
"id": "xYZkjABcde",
"type": "stock_locations",
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde"
},
"attributes": {
"code": "europe1",
"created_at": "2018-01-01T12:00:00.000Z",
"label_format": "PDF",
"metadata": {
"foo": "bar"
},
"name": "Primary warehouse",
"number": 1234,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"suppress_etd": false,
"updated_at": "2018-01-01T12:00:00.000Z"
},
"relationships": {
"address": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/address",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/address"
}
},
"attachments": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/attachments",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/attachments"
}
},
"inventory_return_locations": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/inventory_return_locations",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/inventory_return_locations"
}
},
"inventory_stock_locations": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/inventory_stock_locations",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/inventory_stock_locations"
}
},
"stock_items": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/stock_items",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/stock_items"
}
},
"stock_transfers": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/stock_transfers",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/stock_transfers"
}
},
"versions": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/relationships/versions",
"related": "https://yourdomain.commercelayer.io/api/stock_locations/xYZkjABcde/versions"
}
}
},
"meta": {
"mode": "test"
}
},
{
"other": "... 9 stock_locations (first page)"
}
],
"meta": {
"record_count": 140,
"page_count": 14
},
"links": {
"first": "https://yourdomain.commercelayer.io/api/stock_locations?page[number]=1&page[size]=10",
"next": "https://yourdomain.commercelayer.io/api/stock_locations?page[number]=2&page[size]=10",
"last": "https://yourdomain.commercelayer.io/api/stock_locations?page[number]=14&page[size]=10"
}
}