Inventory transfers
Stock moving between locations, or arriving from a supplier. Stock leaves the origin when a transfer is marked as shipped, and is added at the destination as it's received.
Endpoints#
- GET
/inventory_transfers.jsonList transfers - GET
/inventory_transfers/count.jsonCount transfers - GET
/inventory_transfers/{id}.jsonGet a transfer - POST
/inventory_transfers.jsonCreate a transfer - POST
/inventory_transfers/{id}/ship.jsonMark a transfer as shipped - POST
/inventory_transfers/{id}/receive.jsonReceive a transfer - POST
/inventory_transfers/{id}/cancel.jsonCancel a transfer
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
The inventory transfer object#
What the endpoints below return for one inventory transfer.
{
"id": "cm2transfer02",
"name": "T2",
"number": 2,
"status": "in_transit",
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"reference": "Truck run, Thursday",
"note": null,
"expected_at": "2026-10-25T17:00:00.000Z",
"shipped_at": "2026-10-23T15:10:00.000Z",
"received_at": null,
"created_by": "Sam Rivera",
"total_quantity": 14,
"received_quantity": 0,
"rejected_quantity": 0,
"line_items": [
{
"id": "cm2titem01",
"variant_id": "cm2variant01",
"product_id": "cm2product01",
"sku": "STONEWARE-01",
"title": "Stoneware mug",
"variant_title": "Oat",
"quantity": 6,
"received_quantity": 0,
"rejected_quantity": 0
}
],
"created_at": "2026-10-22T10:00:00.000Z",
"updated_at": "2026-10-23T15:10:00.000Z"
}List transfers#
/inventory_transfers.jsonread_inventory| Parameter | Description |
|---|---|
limit | Results per page, 1–250 (default 50). |
page_info | Cursor from the Link header for the next or previous page. |
since_id | Only results after this id. |
ids | Comma-separated ids. |
created_at_min / created_at_max | ISO 8601 bounds on creation time. |
updated_at_min / updated_at_max | ISO 8601 bounds on last change. |
status | draft, in_transit, received or cancelled. |
origin_location_id | A location id, or supplier for stock coming from a supplier. |
destination_location_id | A location id. |
curl "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "inventory_transfers": [ … ] }Count transfers#
/inventory_transfers/count.jsonread_inventory| Parameter | Description |
|---|---|
status, origin_location_id, destination_location_id, created_at_*, updated_at_* | Same filters as the list. |
curl "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 3 }Get a transfer#
/inventory_transfers/{id}.jsonread_inventorycurl "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers/$INVENTORY_TRANSFER_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"inventory_transfer": {
"id": "cm2transfer02",
"name": "T2",
"number": 2,
"status": "in_transit",
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"reference": "Truck run, Thursday",
"note": null,
"expected_at": "2026-10-25T17:00:00.000Z",
"shipped_at": "2026-10-23T15:10:00.000Z",
"received_at": null,
"created_by": "Sam Rivera",
"total_quantity": 14,
"received_quantity": 0,
"rejected_quantity": 0,
"line_items": [
{ "id": "cm2titem01", "variant_id": "cm2variant01", "product_id": "cm2product01", "sku": "STONEWARE-01", "title": "Stoneware mug", "variant_title": "Oat", "quantity": 6, "received_quantity": 0, "rejected_quantity": 0 }
],
"created_at": "2026-10-22T10:00:00.000Z",
"updated_at": "2026-10-23T15:10:00.000Z"
}
}Create a transfer#
/inventory_transfers.jsonwrite_inventoryCreates a draft transfer, numbered T1, T2… Leave origin_location_id out (or null) for stock arriving from a supplier. Variants must track their quantity; a variant listed twice is added up. Nothing moves until the transfer is shipped.
{
"inventory_transfer": {
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"expected_at": "2026-10-30",
"reference": "Truck run, Thursday",
"line_items": [{ "variant_id": "cm2variant01", "quantity": 6 }]
}
}curl -X POST "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"inventory_transfer": {
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"expected_at": "2026-10-30",
"reference": "Truck run, Thursday",
"line_items": [{ "variant_id": "cm2variant01", "quantity": 6 }]
}
}'Example responseShowHide
{
"inventory_transfer": {
"id": "cm2transfer02",
"name": "T2",
"number": 2,
"status": "in_transit",
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"reference": "Truck run, Thursday",
"note": null,
"expected_at": "2026-10-25T17:00:00.000Z",
"shipped_at": "2026-10-23T15:10:00.000Z",
"received_at": null,
"created_by": "Sam Rivera",
"total_quantity": 14,
"received_quantity": 0,
"rejected_quantity": 0,
"line_items": [
{ "id": "cm2titem01", "variant_id": "cm2variant01", "product_id": "cm2product01", "sku": "STONEWARE-01", "title": "Stoneware mug", "variant_title": "Oat", "quantity": 6, "received_quantity": 0, "rejected_quantity": 0 }
],
"created_at": "2026-10-22T10:00:00.000Z",
"updated_at": "2026-10-23T15:10:00.000Z"
}
}Mark a transfer as shipped#
/inventory_transfers/{id}/ship.jsonwrite_inventoryDraft → in_transit. The stock leaves the origin now (recorded as transfer_out); from a supplier nothing leaves. Refused when the origin doesn't have enough of a line.
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers/$INVENTORY_TRANSFER_ID/ship.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"inventory_transfer": {
"id": "cm2transfer02",
"name": "T2",
"number": 2,
"status": "in_transit",
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"reference": "Truck run, Thursday",
"note": null,
"expected_at": "2026-10-25T17:00:00.000Z",
"shipped_at": "2026-10-23T15:10:00.000Z",
"received_at": null,
"created_by": "Sam Rivera",
"total_quantity": 14,
"received_quantity": 0,
"rejected_quantity": 0,
"line_items": [
{ "id": "cm2titem01", "variant_id": "cm2variant01", "product_id": "cm2product01", "sku": "STONEWARE-01", "title": "Stoneware mug", "variant_title": "Oat", "quantity": 6, "received_quantity": 0, "rejected_quantity": 0 }
],
"created_at": "2026-10-22T10:00:00.000Z",
"updated_at": "2026-10-23T15:10:00.000Z"
}
}Receive a transfer#
/inventory_transfers/{id}/receive.jsonwrite_inventoryAccepts units into stock at the destination (transfer_in) and records rejected ones (damaged or wrong items, not added to stock). Partial receiving is fine: the transfer becomes received once every unit is accepted or rejected.
{ "line_items": [{ "id": "cm2titem01", "accepted": 5, "rejected": 1 }] }curl -X POST "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers/$INVENTORY_TRANSFER_ID/receive.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "line_items": [{ "id": "cm2titem01", "accepted": 5, "rejected": 1 }] }'Example responseShowHide
{
"inventory_transfer": {
"id": "cm2transfer02",
"name": "T2",
"number": 2,
"status": "in_transit",
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"reference": "Truck run, Thursday",
"note": null,
"expected_at": "2026-10-25T17:00:00.000Z",
"shipped_at": "2026-10-23T15:10:00.000Z",
"received_at": null,
"created_by": "Sam Rivera",
"total_quantity": 14,
"received_quantity": 0,
"rejected_quantity": 0,
"line_items": [
{ "id": "cm2titem01", "variant_id": "cm2variant01", "product_id": "cm2product01", "sku": "STONEWARE-01", "title": "Stoneware mug", "variant_title": "Oat", "quantity": 6, "received_quantity": 0, "rejected_quantity": 0 }
],
"created_at": "2026-10-22T10:00:00.000Z",
"updated_at": "2026-10-23T15:10:00.000Z"
}
}Cancel a transfer#
/inventory_transfers/{id}/cancel.jsonwrite_inventoryCancels a draft or in-transit transfer. Units of a shipped transfer that weren't received or rejected go back to the origin (transfer_cancelled); units already received stay at the destination.
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/inventory_transfers/$INVENTORY_TRANSFER_ID/cancel.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"inventory_transfer": {
"id": "cm2transfer02",
"name": "T2",
"number": 2,
"status": "in_transit",
"origin_location_id": "cm2location01",
"destination_location_id": "cm2location02",
"reference": "Truck run, Thursday",
"note": null,
"expected_at": "2026-10-25T17:00:00.000Z",
"shipped_at": "2026-10-23T15:10:00.000Z",
"received_at": null,
"created_by": "Sam Rivera",
"total_quantity": 14,
"received_quantity": 0,
"rejected_quantity": 0,
"line_items": [
{ "id": "cm2titem01", "variant_id": "cm2variant01", "product_id": "cm2product01", "sku": "STONEWARE-01", "title": "Stoneware mug", "variant_title": "Oat", "quantity": 6, "received_quantity": 0, "rejected_quantity": 0 }
],
"created_at": "2026-10-22T10:00:00.000Z",
"updated_at": "2026-10-23T15:10:00.000Z"
}
}