stock_locations
Create a stock location
Changed onCreate a stock location
post/stock_locations
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/stock_locations
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "Primary warehouse",
"code": "europe1",
"label_format": "PDF",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"address": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created stock location object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
// - info
the
request property default valuestock_locationswas removed - info
added the new
stock_locationsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking