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
PATCH/api/packing/items/{itemId}/pick

Pack one item across the day's orders in one write [Packaging]

The night's core write. A packer stands at one shelf with one item, fills every order that needs it, and submits the whole grid at once.

One transaction, all-or-nothing. Every line is validated before anything is written, and a single bad line rejects the batch untouched — a half-applied pick would leave the floor with quantities on some orders and no way to tell which.

Each accepted line gets the quantity, the derived status (done when the quantity is met, else short), the location it came from, and who packed it when. Its back-order is then reconciled by the same logic the per-line pack endpoint uses, so a shortfall can never drift between the two paths. The first pick moves the order confirmed or in_production → packing; an order already further along is left alone.

Refused (400): a line for another item, a line on another delivery day, a line on a draft order, an unknown location, or the same line twice. 404: an unknown line.

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

1 parameter · 3 body fields
itemIdstringrequired

The item being picked. Every submitted line must belong to it.

The picked quantities.

datestringrequired

The delivery day being packed. Every line is checked against it — a tab left open overnight must not write yesterday's quantities onto today's board.

locationIdintegeroptional

Where the items were taken from (PK-1). OPTIONAL: the screen makes it a sticky picker, but shelves may not be labelled yet. Omit it and each line keeps the location it already had, rather than being wiped.

linesarray<object>required

One entry per order needing this item. The whole batch applies in ONE transaction — a single bad line rejects all of it.

6 status codes
200Applied. Carries the refreshed board row for this item.
datestringoptional
itemIdstringoptional
itemobjectoptional

The refreshed K2 row — splice it into the board instead of refetching the day.

linesPackedintegeroptional
ordersAdvancedarray<object>optional

Orders this pick moved to packing. Empty when every order was already there or further along.

400Invalid input — the error string says what was wrong.
errorstringrequired
401Not authenticated. Sign in first (see the Auth tag).
errorstringrequired
403Authenticated, but not allowed — this endpoint requires a department membership or a role you do not have.
errorstringrequired
404Not found.
errorstringrequired
500Unexpected server error.
errorstringrequired

Error handling

A 400 is returned: Invalid input — the error string says what was wrong. A 401 is returned: Not authenticated. Sign in first (see the Auth tag). A 403 is returned: Authenticated, but not allowed — this endpoint requires a department membership or a role you do not have. A 404 is returned: Not found. A 500 is returned: Unexpected server error.

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.bulkPick({
  itemId: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  date: "2026-07-20",
  lines: [],
});
Response
{
  "date": "2026-07-20",
  "itemId": "550e8400-e29b-41d4-a716-446655440000",
  "item": {
    "itemId": "550e8400-e29b-41d4-a716-446655440000",
    "itemName": "Example Name",
    "needed": 1,
    "picked": 1,
    "remaining": 1,
    "orderCount": 42,
    "shortLines": 1,
    "lines": [
      {
        "lineId": "550e8400-e29b-41d4-a716-446655440000",
        "orderId": "550e8400-e29b-41d4-a716-446655440000",
        "orderNumber": "example_value",
        "orderStatus": "draft",
        "customerId": "550e8400-e29b-41d4-a716-446655440000",
        "customerName": "Example Name",
        "qty": 1,
        "qtyPacked": 1,
        "packStatus": "pending",
        "caseQty": 1,
        "rawBaked": "raw",
        "loosePacked": "loose",
        "sliced": "sliced",
        "lineNote": "example_value",
        "addedAtPacking": true,
        "packedFromLocationId": "550e8400-e29b-41d4-a716-446655440000",
        "packedAt": "2026-01-15T09:00:00Z"
      }
    ]
  },
  "linesPacked": 1,
  "ordersAdvanced": [
    {
      "orderId": "550e8400-e29b-41d4-a716-446655440000",
      "orderNumber": "example_value",
      "from": "confirmed",
      "to": "packing"
    }
  ]
}
PreviousK2 — pack by itemNextK3 — the night's orders to confi…