Skip to main content

Acknowledgements

REST Endpoints​

POST /order/:orderId/acknowledge​

Parameters​

NameTypeDescriptionExample
orderId (in url)IDThe ID of the order to which the acknowledgement corresponds"ckmnpybisiy5x08abky4g2d1f"
acknowledgementItemsAcknowledgementItem[]An array of acknowledgementItems to be applied to the order's line itemsSee schema definition below

Acknowledgement Items​

Each item on the acknowledgement should have the structure below.

NameTypeDescriptionExample
backorderLeadTimestring?If an item is backordered, the expected lead time2 days
backorderQuantityinteger?If an item is backordered, the quantity backordered5
descriptionstring?A description of the item12 gauge black THHN
extPriceFloatfloat?The subtotal of the item4.50
itemIdID?The item's kojo idcl70xmen80002oodabq9syjlq
lineNumberinteger?The item's purchase order line number1
manufacturerPartNumberstring?The manufactuter part numnber for the item1
quantityinteger?The quantity of the item3
unitPriceECMstring?Multiplier used to calculate the extended price from the unit price. Must be either E, C, or M. Defaults to E."E"
unitPriceFloatfloat?The unit price of the item1.50
unitsOfMeasurestringThe item's unit of measureFT
universalProductCodestring?The items UPCFT
vendorPartNumberstring?Your company's SKU for the itemFT

Response​

The updated Order.

Example Request​

POST https://api.kojo.tech/seller/order/cl5vad0wh0315m5lgqvsimj3k/acknowledge
{
"acknowledgementItems': [
{
"itemId": "cl70xmen80002oodabq9syjlq",
"lineNumber": 1,
"unitPriceFloat": 100.05,
"quantity": 2,
"extPriceFloat": 200.10,
"description": "6 Strand Copper Wire Soft Drawn 315'",
"unitsOfMeasure": "FT"
},
{
"itemId": "cl70xmen80003ooda4hv3my6j",
"lineNumber": 2,
"unitPriceFloat": 43.33,
"quantity": 1,
"extPriceFloat": 44.33,
"description": "8 AWG THHN Stranded Copper, Green, 500'",
"unitsOfMeasure": "FT"
}
]
}

Example Response​

{
"id": "cl5vad0wh0315m5lgqvsimj3k",
"buyerId": "cl5vad0wh0315m5lgqvsimj37",
"createdAt": "2024-05-03T16:22:32.869Z",
"orderId": "clvphf6dz022c4wu4l15giyw3",
"acknowledgementItems": [
{
"itemId": "cl70xmen80002oodabq9syjlq",
"lineNumber": 1,
"unitPriceFloat": 100.05,
"quantity": 2,
"extPriceFloat": 200.10,
"description": "6 Strand Copper Wire Soft Drawn 315'",
"unitsOfMeasure": "FT"
},
{
"itemId": "cl70xmen80003ooda4hv3my6j",
"lineNumber": 2,
"unitPriceFloat": 43.33,
"quantity": 1,
"extPriceFloat": 44.33,
"description": "8 AWG THHN Stranded Copper, Green, 500'",
"unitsOfMeasure": "FT"
}
]
}