Skip to main content

Delivery Receipts

Delivery Receipts track the arrival of materials at Job sites. Deliveries can be associated or not with a Purchase Order.

Schema​

DeliveryReceipt​

NameTypeDescriptionExample
idIDunique Kojo internal identifier"clr8adymd000112nocbtsetzx"
identifierString?Receipt identifier"DLV-A0001"
purchaseOrderID?Purchase Order ID"clrrtqmy60007zay5y3kbb6x0"
notesString?Delivery notes"Any kind of description"
stateDeliveryReceiptStateTracks the state of a delivery receiptSUBMITTED
issuesString[]A list of issues with the deliverySUBMITTED
warehouseRequestIDwarehouse request Id"clr8adymd000112nocbtsetzx"
notifiedContactsString[]List of notified contacts["Logan Norton <demo+field128@usekojo.com>"]
deletedBooleanIf true the delivery receipt has been deletedfalse
createdAtDateTimeTimestamp of a delivery receipt creation"2024-01-10T21:22:26.053Z"
updatedAtDateTimeTimestamp of a delivery receipt last update"2024-01-10T21:22:26.053Z"
archivedAtDateTime?Timestamp of when a receipt is archived/deleted"2024-01-10T21:22:26.053Z"
integrationMessagestring?A message about the status of the integration's sync"PO number already exists"
integrationStateIntegrationState?The status of the Delivery sync to another integrated systemNOT_LINKED

DeliveryReceiptItem​

NameTypeDescriptionExample
idIDunique item identifier"clrrttruv000kzay5bj6gyf5u"
deliveryReceiptIdIDdelivery receipt unique identifier"clrrttruv000kzay5bj6gyf5u"
descriptionStringitem description"3/4 EMT"
notesString?delivery receipt item notes"No issues"
quantityNumberoverall quantity"No issues"
quantityReceivedThisReceiptNumberquanitity received in this receipt"No issues"
unitsOfMeasureStringUnit of Measure"EA"
itemIdIDPurchase Order Item Id"clrrttruv000kzay5bj6gyfff"
issuesReceiptItemIssuesUnit of Measure"EA"
createdAtDateTimeCreation timestamp"2024-01-10T21:22:26.053Z"
updatedAtDateTimeLast updated timestamp"2024-01-10T21:22:26.053Z"

ReceiptItemIssues​

NameTypeDescription
MISSINGNumberAmount of items missing
DAMAGEDNumberAmount of damaged items
NO_ISSUESNumberAmount of items without issues
WRONG_ITEMNumberAmount of wrong items received
BACKORDEREDNumberAmount of items backordered

Enums​

DeliveryReceiptState​

ValueDescription
SUBMITTEDWhen the receipt has been submitted
DRAFTWhen the receipt submition is pending

Queries​

GET /deliveries/:id​

Fetches a single Delivery Receipt by id.

Parameters​

NameDescriptionExample
idThe Kojo ID of the delivery receipt to fetch"ckmnpybisiy5x08abky4g2d1f"

Accepts all standard pagination parameters.

Allowed orderBy fields: identifier, createdAt, archivedAt, id, notes, updatedAt, state.

Allowed filter fields: identifier, createdAt, archivedAt, id, notes, updatedAt, state.

Response​

A single Delivery Receipt.

Example Query​

GET https://api.kojo.tech/deliveries/clrru95cj0000nxfh8rd80syo

Example Response​

{
"id": "clrru95cj0000nxfh8rd80syo",
"identifier": "DLV-A0002",
"notes": null,
"createdAt": "2024-01-24T13:46:11.155Z",
"archivedAt": null,
"updatedAt": "2024-01-24T13:46:17.640Z",
"state": "SUBMITTED",
"purchaseOrder": "clrrtqmy60007zay5y3kbb6x0",
"issues": ["DAMAGED"],
"warehouseRequest": null,
"deleted": false,
"notifiedContacts": [],
"createdBy": "clr6fkyru0002q3dwbwh2t6j8",
"release": null
}

GET /deliveries​

Fetches multiple delivery receipts. According to filters.

Parameters​

Accepts all standard pagination parameters.

Allowed orderBy fields: id, identifier, notes, createdAt, updatedAt, archivedAt, state.

Allowed filter fields: id, identifier, notes, createdAt, updatedAt, archivedAt, state.

Response​

A list of Deliveries.

Example Query​

GET https://api.kojo.tech/deliveries

Example Response​

[
{
"id": "clrru95cj0000nxfh8rd80syo",
"identifier": "DLV-A0002",
"notes": null,
"createdAt": "2024-01-24T13:46:11.155Z",
"archivedAt": null,
"updatedAt": "2024-01-24T13:46:17.640Z",
"state": "SUBMITTED",
"purchaseOrder": "clrrtqmy60007zay5y3kbb6x0",
"issues": ["DAMAGED"],
"warehouseRequest": null,
"deleted": false,
"notifiedContacts": [],
"createdBy": "clr6fkyru0002q3dwbwh2t6j8",
"release": null
}
]

GET /orders/:orderId/deliveries​

Fetches all delivery receipts associated with an Order.

Parameters​

NameTypeDescriptionExample
orderIdIDPurchase Order unique ID"ckmnpybisiy5x08abky4g2d1f"

Accepts the same filtering and ordering parameters from [GET /deliveries] endpoint.

Response​

A list of Deliveries.

Example Query​

GET https://api.kojo.tech/orders/ckmnpybisiy5x08abky4g2d1f/deliveries

Example Response​

[
{
"id": "clrru95cj0000nxfh8rd80syo",
"identifier": "DLV-A0002",
"notes": null,
"createdAt": "2024-01-24T13:46:11.155Z",
"archivedAt": null,
"updatedAt": "2024-01-24T13:46:17.640Z",
"state": "SUBMITTED",
"purchaseOrder": "clrrtqmy60007zay5y3kbb6x0",
"issues": ["DAMAGED"],
"warehouseRequest": null,
"deleted": false,
"notifiedContacts": [],
"createdBy": "clr6fkyru0002q3dwbwh2t6j8",
"release": null
}
]

GET /deliveries/:id/items​

Fetches all items associated with a delivery

Parameters​

Accepts all standard pagination parameters.

Response​

A list of Deliveries Items.

Example Query​

GET https://api.kojo.tech/deliveries/clrrttruv000kzay5bj6gyf5u/items

Example Response​

[
{
"id": "clrrttruw000mzay5lpuy36bu",
"deliveryReceiptId": "clrrttruv000kzay5bj6gyf5u",
"createdAt": "2024-01-24T13:34:13.832Z",
"updatedAt": "2024-01-24T13:34:23.446Z",
"description": "3/4 EMT",
"notes": "test note",
"quantity": 1,
"quantityReceivedThisReceipt": 1,
"unitsOfMeasure": "EA",
"issues": {
"NO_ISSUES": 1
}
}
]

POST /deliveries/:id/updateIntegrationState​

Updates the Delivery Receipt integration status.

Parameters​

NameTypeDescriptionExample
idIDUnique identifier for orders"ckmnpybisiy5x08abky4g2d1f"
integrationMessagestring?A message about the status of the integration's sync. Required if the status is being set to ERROR"Delivery Receipt already exists"
integrationStateIntegrationStateThe new status of the order's sync to your integrated systemNOT_LINKED

Example Query​

POST https://api.kojo.tech/deliveries/ckmnpybisiy5x08abky4g2d1f/updateIntegrationState
{
"integrationState": "ERROR",
"integrationMessage": "System Error"
}

Example Response​

{
"id": "ckmnpybisiy5x08abky4g2d1f",
"identifier": "DLV-A0001",
"notes": "test",
"createdAt": "2024-02-20T16:53:05.168Z",
"archivedAt": null,
"updatedAt": "2024-02-20T18:22:55.236Z",
"state": "SUBMITTED",
"purchaseOrder": null,
"issues": [
"NO_ISSUES"
],
"warehouseRequest": null,
"deleted": false,
"notifiedContacts": [],
"createdBy": "clsj5mbvh0002vtjozgobx3ct",
"release": null,
"integrationLastSync": null,
"integrationMessage": "System Error",
"integrationState": "ERROR"
}