Swagger Petstore - OpenAPI 3.0
SSwagger Petstore - OpenAPI 3.0
API Reference
GETLiveness, database readiness, and which build is running/api/healthGETThe signed-in user and their departments/api/me
POSTSign in with email and password/api/auth/sign-in/email
POSTSign out and clear the session cookie/api/auth/sign-out
GETList orderable products/api/catalog/products
GETWhich option values are still selectable/api/catalog/products/{id}/valid-values
GETThe ordering dashboard's stat tiles/api/ordering/dashboardGETEvery standing order/api/ordering/recurringPOSTCreate a standing order/api/ordering/recurring
GETThe same day, grouped by customer/api/ordering/production/customersGETWhat one item row expands into — the real order lines behind it/api/ordering/production/item-customersGETThe same day, broken down by production section/api/ordering/production/sectionsGETWhat is still not packed/api/ordering/production/still-to-completeGETDay totals — baked vs raw/api/ordering/production/totalsGETThe production worksheet as a PDF/api/ordering/production/worksheet.pdf
GETGet a standing order/api/ordering/recurring/{id}PATCHUpdate a standing order/api/ordering/recurring/{id}GETThe day's scheduled fires/api/ordering/recurring/occurrencesPOSTTrigger standing-order generation/api/ordering/recurring/run
PATCHPause or resume a standing order/api/ordering/recurring/{id}/activeGETOne standing order's ledger/api/ordering/recurring/{id}/occurrences
PATCHSkip a recurring order occurrence/api/ordering/recurring/occurrences/{id}
GETList orders/api/ordersPOSTCreate a draft order/api/orders
GETGet an order with its lines/api/orders/{id}PATCHReplace an order and its lines/api/orders/{id}
PATCHRecord the packed quantity for an order line/api/orders/{id}/lines/{lineId}/packPATCHShip an order line/api/orders/{id}/lines/{lineId}/ship
POSTReorder — copy a past order into a new draft [Ordering]/api/orders/{id}/reorderGETOrder sheet (PDF)/api/orders/{id}/sheetPATCHAdvance an order's status/api/orders/{id}/status
GETThe day's bake log/api/packing/bakesPOSTK6 — log a bake (Packaging)/api/packing/bakesGETK1 — the day board/api/packing/dayGETK5 — what is on the shelves for the day/api/packing/inventoryGETK2 — pack by item/api/packing/itemsGETK3 — the night's orders to confirm/api/packing/ordersGETThe packing worksheet (PDF)/api/packing/worksheet
PATCHPack one item across the day's orders in one write [Packaging]/api/packing/items/{itemId}/pick
GETK4 — one order, as the packer confirms it/api/packing/orders/{id}
GETBox labels (PDF)/api/packing/orders/{id}/box-labelsPOSTConfirm the order — the gate [Packaging]/api/packing/orders/{id}/confirmPOSTAdd an un-ordered line to a packing order/api/packing/orders/{id}/linesPOSTTake the order [Packaging]/api/packing/orders/{id}/lockDELETEGive the order back [Packaging]/api/packing/orders/{id}/lockGETPacking slip (PDF)/api/packing/orders/{id}/packing-slip
GETWhat is still owed (PK-6)/api/packing/reports/missingGETPer-customer packing lists for the day (PDF, §10)/api/packing/reports/packing-listsGETThe day's packing lists as JSON/api/packing/reports/packing-lists.json
GETThe missing report as a PDF (§10)/api/packing/reports/missing/print
llms.txtPowered by Octri
POST/api/packing/orders/{id}/lines

Add an un-ordered line to a packing order

Adds a line for an item the customer did not order but that the packer placed in the box. Supply itemId and a positive qty; the line is recorded as both ordered and packed, and only the new line is priced. The returned order includes the added line, which arrives complete and does not block the packing confirmation gate.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 8 body fields
idstringrequired

The unique identifier of the order to add the packing line to.

The item and quantity for a line the packer placed in the box.

itemIdstringrequired

The SKU.

qtynumberrequired

What went in the box. Recorded as BOTH the ordered and the packed quantity, so the line arrives done.

rawBakedstringoptional

Whether the item is raw or baked. Defaults to baked when omitted.

Allowed:rawbakedDefault:baked
loosePackedstringoptional

Whether the item is loose or packed. Defaults to packed when omitted.

Allowed:loosepackedDefault:packed
slicedstringoptional

Whether the item is sliced or not sliced. Defaults to not_sliced when omitted.

Allowed:slicednot_slicedDefault:not_sliced
caseQtyintegeroptional

The number of units per case.

locationIdintegeroptional

Which shelf it came off (PK-1). Optional.

lineNotestringoptional

A note for the packing line.

7 status codes
201Returns the order with the new packing line included.
idstringoptional

Order id.

orderNumberstringoptional

Human-facing, ORD-YYMM-NNN.

customerIdstringoptional

Customer id.

customerNamestringoptional
customerTypeSnapshotstringoptional

The customer's type AT ORDER TIME — it may change later, and the order keeps what it was sold under.

orderDatestringoptional

The day the order was taken.

requestedDeliveryDatestringoptional

The day it ships — what production and packing group by (D-14).

statusstringoptional
Allowed:draftconfirmedin_productionpackingshippingshippedclosed
sourcestringoptional
Allowed:phonewalk_inemail_importself_service
specialInstructionsstringoptional

Order-level note.

createdByIdstringoptional
createdByNamestringoptional
createdAtstringoptional
fromRecurringIdstringoptional

The standing order that generated this one (R6). Null for every hand-taken order. Note the source does NOT distinguish one: a generated order says phone, because the OrderSource enum was deliberately left untouched.

linesarray<object>optional
400Returned when the input is invalid; the response includes an error string describing the problem.
errorstringrequired
401Returned when the request is unauthenticated; sign in before calling this operation.
errorstringrequired
403Returned when the authenticated user lacks the required department membership or role.
errorstringrequired
404Returned when a requested resource is not found.
errorstringrequired
409Returned when the request conflicts with the current state.
errorstringrequired
500Returned when an unexpected server error occurs.
errorstringrequired

Error handling

A 400 is returned for invalid input; a 401 when the request is unauthenticated; a 403 when the authenticated user lacks the required department membership or role; a 404 when a requested resource is not found; a 409 for a conflict; and a 500 for an unexpected server error. The id path parameter must identify an order. itemId and qty are required, qty must be greater than zero, and rawBaked, loosePacked, and sliced must use their listed enum values when supplied.

import { MontrealKosherOrderingPackaging } from "swagger-petstore---openapi-3-0-sdk";

const client = new MontrealKosherOrderingPackaging({
  baseUrl: "https://demo-mk.solveitsolutions.ca",
  auth: { sessionCookie: process.env.MONTREAL_KOSHER_API_KEY! },
});

const result = await client.packaging.addPackingLine({
  id: "9b2f1c10-7a3e-4d54-8c2a-1f6b9e0d4a21",
  itemId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  qty: 9.99,
});
Response
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "orderNumber": "ORD-2608-101",
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "customerName": "Example Name",
  "customerTypeSnapshot": "example_value",
  "orderDate": "2026-07-20",
  "requestedDeliveryDate": "2026-07-20",
  "status": "draft",
  "source": "phone",
  "specialInstructions": "example_value",
  "createdById": "550e8400-e29b-41d4-a716-446655440000",
  "createdByName": "Example Name",
  "createdAt": "2026-01-15T09:00:00Z",
  "fromRecurringId": "550e8400-e29b-41d4-a716-446655440000",
  "lines": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "orderId": "550e8400-e29b-41d4-a716-446655440000",
      "itemId": "550e8400-e29b-41d4-a716-446655440000",
      "itemName": "Example Name",
      "qty": 1,
      "caseQty": 1,
      "rawBaked": "raw",
      "loosePacked": "loose",
      "sliced": "sliced",
      "unitPrice": 1,
      "priceSource": "example_value",
      "lineInstructions": "example_value",
      "packStatus": "pending",
      "qtyPacked": 1,
      "shipStatus": "pending",
      "qtyShipped": 1,
      "backorderId": "550e8400-e29b-41d4-a716-446655440000"
    }
  ]
}
PreviousConfirm the order — the gate [P…NextTake the order [Packaging]