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"
locationIdIdUnique identifier for the locationcltoj9nzw0lh2sxdoblehy78s
jobIdIdUnique identifier for the jobcltoj9nzw0lh3sxdoj03mp76n
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 parent 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
requisitionIdIDUnique identifier of the linked 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

REST Endpoints​

GET /warehouseRequests/:id​

Read a single Warehouse Request by ID.

Parameters​

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

Response​

A single Warehouse Request.

Example Request​

GET https://api.kojo.tech/warehouse-requests/ckmnpybisiy5x08abky4g2d1f

Example Response​

{
"id": "ckmnpybisiy5x08abky4g2d1f",
"identifier": "WHREQ-12345",
"jobId": "cltoj9jhz01basxdo7ixqdzba",
"locationId": "cltoj9jh101assxdoutgzkf28",
"state": "DRAFT",
"createdAt": "2021-03-24 17:26:46.983Z",
"createdById": "cltoj9nzx0lhbsxdopxjinxuh",
"updatedAt": "2021-03-24 17:26:46.983Z"
}

GET /warehouseRequests/:warehouseRequestId/items​

Read a Warehouse Request's items, with pagination.

Parameters​

NameDescriptionExample
warehouseRequestIdThe ID of the warehouse request to fetch"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.

Limit has a max of 100.

Response​

A list of Warehouse Request Items belonging to the specified Warehouse Request.

Example Request​

GET https://api.kojo.tech/warehouse-requests/ckmnpybisiy5x08abky4g2d1f/items

Example Response​

[
{
"id": "cltoj9o2q0lmusxdoh8symyyf",
"warehouseRequestId": "cltoj9o1i0lkfsxdonp069jxk",
"description": "SOLID-CORE, 0-5VDC, SENSOR",
"notes": "This is a note",
"quantity": "EA",
"pickedQuantity": "5",
"uom": "Units",
"upc": "123456789012",
"sku": "SKU12345",
"mpn": "MPN12345",
"lineNumber": "10",
"state": "SHIPPED",
"createdAt": "2022-01-01T00:00:00Z",
"createdById": "user123",
"updatedAt": "2022-01-02T00:00:00Z"
}
]

GET /warehouse-requests​

Read all warehouse requests, with pagination.

Parameters​

Accepts all standard pagination parameters.

Supported orderBy fields: createdAt,needByDateDay, id, state, identifier, updatedAt, createdById.

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

Limit has a max of 100.

Response​

A list of WarehouseRequest objects.

Example Request​

GET https://api.kojo.tech/warehouse-requests

Example Response​

[
{
"id": "cldccucy400kxlgkxq2v5u8ha",
"identifier": "WHREQ-REQ-0001",
"jobId": "cldccucy400kwlgkxnd1cfo0y",
"locationId": "cltoj9nzw0lh3sxdoj03mp76n",
"needByDateDay": "2024-03-12T15:34:45.690Z",
"state": "DRAFT",
"createdAt": "2023-12-13T16:43:14.376Z",
"createdById": "cltoj9nzx0lhbsxdopxjinxuh",
"updatedAt": "2024-01-05T22:01:25.180Z"
}
]

Example Request With Filtering and Sorting​

GET https://api.kojo.tech/warehouse-requests?filter.identifier_starts_with=WHREQ-REQ-01&orderBy=createdAt&direction=DESC

Example Response​

[
{
"id": "whreq1",
"identifier": "WHREQ-REQ-0101",
"jobId": "cldccucy400kwlgkxnd1cfo0y",
"locationId": "cltoj9nzw0lh3sxdoj03mp76n",
"needByDateDay": "2024-03-12T15:34:45.690Z",
"state": "DRAFT",
"createdAt": "2023-12-13T16:43:14.376Z",
"createdById": "User1",
"updatedAt": "2024-01-05T22:01:25.180Z"
}
]