Skip to main content

Warehouse Requests

Warehouse Requests specify the need for inventory from a warehouse.

Schema​

Warehouse Request​

NameTypeDescriptionExample
idIDUnique identifier for the warehouse requestcltoj9o1i0lkfsxdonp069jxk
identifierstringIdentifier of the warehouse request"WHREQ-A0005"
stateWarehouseRequestStateCurrent status of the warehouse request"DRAFT"
needByDateDayDateTimeDate by which the items are needed"2021-03-24 17:26:46.983Z"
itemsWarehouseRequestItemList of items in the warehouse request
locationLocationLocation related to the warehouse request
jobJobJob related to the warehouse request
createdByIdIDUnique identifier of the user who created the warehouse requestckmnpybisiy5x08abky4g2d1f
createdAtDateTimeDate when the warehouse request was created"2021-03-24 17:26:46.983Z"
updatedAtDateTimeDate when the warehouse request was last updated"2021-03-24 17:26:46.983Z"

Warehouse Request Item​

NameTypeDescriptionExample
idIDUnique identifier for the warehouse request itemcltoj9o2q0lmusxdoh8symyyf
warehouseRequestIdIDUnique identifier for the warehouse requestcltoj9o1i0lkfsxdonp069jxk
lineNumberintLine number2
stateWarehouseRequestItemStateCurrent state of the warehouse request item"SHIPPED"
descriptionstringItem description"SOLID-CORE, 0-5VDC, SENSOR"
quantityfloat?Quantity requested9
pickedQuantityfloat?Quantity picked7
uomstringUnit Of Measure"EA"
notesstring?Any manually added notes
upcstring?Universal Product Code
skustring?Stock Keeping Unit
mpnstring?Manufaturer Part Number
requisitionRequisitionLinked requisition
createdByIdIDUnique identifier of the user who created the warehouse request itemckmnpybisiy5x08abky4g2d1f
createdAtDateTimeDate when the warehouse request item was created"2021-03-24 17:26:46.983Z"
updatedAtDateTimeDate when the warehouse request item was last updated"2021-03-24 17:26:46.983Z"

Enums​

WarehouseRequestState​

NameDescription
ACKNOWLEDGED
DRAFT
SENT

WarehouseRequestItemState​

NameDescription
CANCELLED
DRAFT
PARTIAL_PICK
PICKED
REQUESTED
SHIPPED
UNAVAILABLE

Queries​

warehouseRequest​

Read a single Warehouse Request by ID or identifier.

Parameters​

NameDescriptionExample
idThe ID of the warehouse request to fetch"ckmnpybisiy5x08abky4g2d1f"

Response​

A single Warehouse Request.

Example Query​

query {
warehouseRequest(id: "ckmnpybisiy5x08abky4g2d1f") {
id
identifier
state
job {
id
name
}
items {
id
requisition {
id
state
identifier
}
state
description
quantity
uom
notes
upc
mpn
}
createdAt
createdById
updatedAt
}
}

Example Response​

{
"id": "ckmnpybisiy5x08abky4g2d1f",
"identifier": "WHREQ-12345",
"state": "SENT",
"job": {
"id": "cltoj9jh101assxdoutgzkf28",
"name": "Oceanwide Center"
},
"items": [
{
"id": "ckmnpybisiy5x08aasdf13242",
"requisition": {
"id": "clxattx5g001iu2qpcbdk035r",
"state": "PARTIALLY_FULFILLED",
"identifier": "REQ-A12783"
},
"state": "PICKED",
"description": "Chain, 10ft",
"quantity": 7,
"uom": "EA",
"notes": "",
"upc": "00123456789012",
"mpn": "HSC0424PP"
},
{
"id": "ckva1id7hgm0a0845jqaypur8",
"requisition": {
"id": "clxattx5g001iu2qp23dnj22",
"state": "PARTIALLY_FULFILLED",
"identifier": "REQ-A12784"
},
"state": "REQUESTED",
"description": "1/4 SHANK MANDREL",
"quantity": 7,
"uom": "EA",
"notes": "",
"upc": "00123456784561",
"mpn": "DMC0423LK"
}
],
"createdAt": "2021-03-24 17:26:46.983Z",
"createdById": "chjkpybisiy5x08abky4g2d1f",
"updatedAt": "2021-03-24 17:26:46.983Z"
}

warehouseRequests​

Read all warehouse requests, with pagination.

Parameters​

Accepts all standard pagination parameters.

Allowed orderBy fields: createdAt, id, needByDateDay, identifier, updatedAt, state, createdById, jobId, locationId.

Allowed filter fields: createdAt, id, needByDateDay, identifier, updatedAt, state, createdById, jobId, locationId.

Max page limit of 100.

Response​

A list of Warehouse Request objects.

Example Query​

query {
warehouseRequests(
orderBy: identifier
direction: ASC
filter: { createdAt_lt: "2024-01-01T15:10:10" }
) {
id
identifier
createdAt
}
}

Example Response​

[
{
"id": "ckmnpybisiy5x08aasdf13242",
"identifier": "WHREQ_0001",
"createdAt": "2023-01-26T16:18:35.931Z"
},
{
"id": "ckmnpybisiy5x08abky4g2d1f",
"identifier": "WHREQ_0002",
"createdAt": "2023-01-26T16:49:04.773Z"
}
]

warehouseRequestItems​

Read all items for a warehouse request, with pagination.

Parameters​

NameDescriptionExample
idThe ID of the warehouse request of which to fetch its items"ckmnpybisiy5x08abky4g2d1f"

Accepts all standard pagination parameters.

Allowed orderBy fields: createdAt, createdById, id, state, updatedAt, lineNumber, sku, upc, mpn, quantity, pickedQuantity.

Allowed filter fields: createdAt, createdById, id, state, updatedAt, lineNumber, sku, upc, mpn, quantity, pickedQuantity.

Max page limit of 100.

Response​

A list of Warehouse Request Items objects.

Example Query​

query {
warehouseRequestItems(warehouseRequestId: "ckmnpybisiy5x08aasdf13242") {
id
requisition {
id
state
identifier
}
state
description
quantity
uom
notes
upc
mpn
}
}

Example Response​

[
{
"id": "ckva1id7hgm0a0845jqaypur8",
"requisition": {
"id": "clxattx5g001iu2qp23dnj22",
"state": "PARTIALLY_FULFILLED",
"identifier": "REQ-A12784"
},
"state": "REQUESTED",
"description": "1/4 SHANK MANDREL",
"quantity": 7,
"uom": "EA",
"notes": "",
"upc": "00123456784561",
"mpn": "DMC0423LK"
}
]