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
GET/api/health

Liveness, database readiness, and which build is running

Doubles as a readiness probe: it pings the database and returns 503 when the DB is unreachable, rather than a cheerful 200 that hides a dead database. The only endpoint here that needs no session.

It also reports the running build (version.commit / version.branch / version.startedAt), so "is my change live?" is one unauthenticated curl instead of an SSH session — which matters for anyone who deploys but has no shell on the box.

startedAt is the PROCESS start, not the deploy. A current commit with an old startedAt means the code was updated on disk and nothing restarted — the exact failure that once made a deployed route look like a 404.

The block rides on the 503 too: a failing server is when you most want to know which build is failing. It is absent entirely when the commit cannot be resolved, never sent as null — a null would let a monitor match null against null and call it a successful deploy.

2 status codes
200The service is up and the database answered.
okbooleanoptional
servicestringoptional
dbstringoptional

down returns 503, not 200.

Allowed:updown
versionobjectoptional

Which build is running. Absent — never null — when the commit cannot be resolved, so a monitor cannot match null against null and read it as a successful deploy.

503The database did not answer.
okbooleanoptional
servicestringoptional
dbstringoptional

down returns 503, not 200.

Allowed:updown
versionobjectoptional

Which build is running. Absent — never null — when the commit cannot be resolved, so a monitor cannot match null against null and read it as a successful deploy.

Error handling

A 503 is returned: The database did not answer.

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.authHealth.getHealth();
Response
{
  "ok": true,
  "service": "example_value",
  "db": "up",
  "version": {
    "commit": "e257821",
    "branch": "main",
    "startedAt": "2026-01-15T09:00:00Z"
  }
}
PreviousWhich option values are still se…NextThe signed-in user and their dep…