Your storage sites. Production lines and equipment belong to one.
idintegerThe warehouse's location id.
codestringnullabledescriptionstringnullableis_activebooleannamestringnullable/warehousesinventory:readYour storage sites. Floor plans are not published.
namestringnullablePartial match on the name.
searchstringnullableFree-text match.
sortstringnullableComma-separated field:direction pairs, e.g. id:desc. Sortable: code, id, name. id is always added last, so paging is stable.
limitintegerRows to return. Maximum 200.
offsetintegerRows to skip. Maximum 10000: to read further, narrow the filters or page with updated_since.
data, with pagination.curl "https://public-api.nutrasoft.ca/v1/warehouses?limit=50" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"code": "SAMPLE-01",
"description": "string",
"is_active": true,
"name": "Sample name"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/warehouses/{warehouse_id}inventory:readwarehouse_idintegerrequiredThe warehouse's id.
data.curl "https://public-api.nutrasoft.ca/v1/warehouses/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"description": "string",
"is_active": true,
"name": "Sample name"
}
}/warehousesinventory:writeCreates an active storage site with the default floor plan, ready to use in NutraSoft. code is unique among your warehouses; a duplicate is a 409.
codestringrequiredShort code, unique among your warehouses.
namestringrequireddescriptionstringnullabledata.curl -X POST "https://public-api.nutrasoft.ca/v1/warehouses" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "SAMPLE-01",
"name": "Sample name"
}'{
"data": {
"id": 123,
"code": "SAMPLE-01",
"description": "string",
"is_active": true,
"name": "Sample name"
}
}/warehouses/{warehouse_id}inventory:writeOmitted fields are left unchanged, and a null is ignored rather than clearing the field. Changing code also moves the site's location path.
warehouse_idintegerrequiredThe warehouse's id.
codestringnullabledescriptionstringnullablenamestringnullabledata.curl -X PATCH "https://public-api.nutrasoft.ca/v1/warehouses/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "SAMPLE-01"
}'{
"data": {
"id": 123,
"code": "SAMPLE-01",
"description": "string",
"is_active": true,
"name": "Sample name"
}
}/warehouses/{warehouse_id}inventory:writeDeletes the site and every location under it. Refused with 409 while an inventory count is running there or any of its locations is still used by stock, movements, productions or counts.
warehouse_idintegerrequiredThe warehouse's id.
data.curl -X DELETE "https://public-api.nutrasoft.ca/v1/warehouses/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"description": "string",
"is_active": true,
"name": "Sample name"
}
}