inventory_models
Create an inventory model
Changed onCreate an inventory model
post/inventory_models
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/inventory_models
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "EU Inventory Model",
"strategy": "no_split",
"stock_locations_cutoff": 3,
"stock_reservation_cutoff": 3600,
"put_stock_transfers_on_hold": true,
"manual_stock_decrement": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The created inventory model object
Changes
- breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the request property
//became optional - info
the
request property default valueinventory_modelswas removed - info
added the new
inventory_modelsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking