Lay out a location into zones and bins
Name the areas inside a facility and the exact shelves and slots stock lives in, then move stock between them — the totals hold, only where it sits changes.
Warehouse · a play in 3 steps.
In the office
Where it starts: the office’s Zones page.
Step 1. Name the area inside the facility. Open Zones.
Step 2. Name the exact shelf or slot. Open Bins.
Step 3. Move stock between bins or zones — the totals hold. Open Inventory items.
For developers — the calls
The steps
- Name the area inside the facility. — createZone
- Name the exact shelf or slot. — createBin
- Move stock between bins or zones — the totals hold. — relocateStock
The calls
Every operation this use case runs, in the order it first appears, with the request and the response its reference page shows.
createZone
createZone — mutation · Create a new zone — a named area inside a facility at your organization.
Example request
mutation ExampleCreateZone($input: NewZoneInput!) {
createZone(input: $input) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
coordinates
code
}
}Variables:
{
"input": {
"caption": "Blue jeans",
"logicalFacilityId": "01900000-0000-7000-8000-10c08c590000"
}
}Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"createZone": {
"id": "01900000-0000-7000-8000-863791670000",
"sysId": "ZN-EXMP-0000-000F",
"type": "Zone",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-10c08c590000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 0,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"coordinates": "<coordinates>",
"code": "BJ-001"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}createBin
createBin — mutation · Create a new bin — an exact shelf/slot stock lives in at your organization.
Example request
mutation ExampleCreateBin($input: NewBinInput!) {
createBin(input: $input) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
coordinates
code
}
}Variables:
{
"input": {
"caption": "Blue jeans",
"zoneId": "01900000-0000-7000-8000-863791670000",
"coordinates": "<coordinates>"
}
}Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"createBin": {
"id": "01900000-0000-7000-8000-bfd16c5e0000",
"sysId": "BN-EXMP-0000-000F",
"type": "Bin",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-863791670000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 0,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"coordinates": "<coordinates>",
"code": "BJ-001"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}relocateStock
relocateStock — mutation · Move stock between bins or zones inside a facility.
Example request
mutation ExampleRelocateStock($input: RelocateStockInput!) {
relocateStock(input: $input) {
inventoryItem {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
logicalFacilityId
styleType
controlClass
onHandQty
reservedQty
inTransitQty
damagedQty
heldQty
onOrderQty
availableQty
}
}
}Variables:
{
"input": {
"inventoryItemId": "01900000-0000-7000-8000-ab0d13b80000",
"quantity": "2",
"bucket": "on_hand"
}
}Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"relocateStock": {
"inventoryItem": {
"id": "01900000-0000-7000-8000-ab0d13b80000",
"sysId": "IV-EXMP-0000-000F",
"type": "InventoryItem",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-8433b0260000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
"styleType": "<style type>",
"controlClass": "<control class>",
"onHandQty": "<on hand qty>",
"reservedQty": "<reserved qty>",
"inTransitQty": "<in transit qty>",
"damagedQty": "<damaged qty>",
"heldQty": "<held qty>",
"onOrderQty": "<on order qty>",
"availableQty": "<available qty>"
}
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}