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/ordering/recurring/{id}

Update a standing order

Updates a standing order by replacing its full schedule and line set. Supply the complete template on each request, including customerId, name, daysOfWeek, and lines; the ledger is reconciled in the same transaction. Past occurrences and generated or skipped rows remain unchanged, while future scheduled occurrences are reconciled to the updated schedule.

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

1 parameter · 6 body fields
idstringrequired

The identifier of the standing order to replace.

The complete standing-order template. customerId, name, daysOfWeek, and lines are required; server-derived fields and line id values are rejected.

customerIdintegerrequired

The identifier of the customer for this standing order.

namestringrequired

The standing order name. Maximum 120 characters.

daysOfWeekarray<integer>required

Weekdays on which the order recurs, as integers from 0 (Sunday) to 6 (Saturday). Include at least one day.

isActivebooleanoptional

Whether the standing order is active. Defaults to true when omitted.

Default:true
pausedUntilstringoptional

Must be strictly after today. Forced to null when isActive is true.

linesarray<object>required

At least one standing-order line. Each line requires itemId, qty, rawBaked, loosePacked, and sliced; qty must be greater than 0. rawBaked must be raw or baked, loosePacked must be loose or packed, and sliced must be sliced or not_sliced. Each line may also include integer caseQty and a lineNote.

6 status codes
200Returns the updated standing-order object, including its schedule and lines.
idstringoptional
customerIdstringoptional
customerNamestringoptional
namestringoptional
daysOfWeekarray<integer>optional

0 = Sunday … 6 = Saturday, ascending. Always at least one.

isActivebooleanoptional
pausedUntilstringoptional

Suppressed until this day, and it fires again ON it. Null while active, and null while paused indefinitely — an indefinite pause is what "stop" means for v1.

createdByIdstringoptional

Null once the person who created it is retired.

createdAtstringoptional
lastGeneratedAtstringoptional

A true instant, not a day. Null until the first fire.

linesarray<object>optional
warningstringoptional

Present only on a create/update response, and NEVER a block. Says that this customer already has an active standing order sharing a weekday, and/or that today's generation run has already passed so this occurrence will not fire automatically.

400Returned when input is invalid, including when required fields are missing, server-derived fields or line id values are sent, or a value fails validation.
errorstringrequired
401Returned when the authenticated user is not signed in.
errorstringrequired
403Returned when the authenticated user lacks the required department membership or role.
errorstringrequired
404Returned when the standing order is not found.
errorstringrequired
500Returned when an unexpected server error occurs.
errorstringrequired

Error handling

A 400 is returned for invalid input, including omitted required fields, server-derived fields in the request, or values that fail validation; a 401 is returned when the authenticated user is not signed in. A 403 is returned when the authenticated user lacks the required department membership or role, a 404 is returned when the standing order is not found, and a 500 is returned for an unexpected server error. The id path parameter must identify an existing standing order. customerId, name, daysOfWeek, and lines are required; daysOfWeek must contain at least one integer from 0 to 6, each line must include itemId, qty, rawBaked, loosePacked, and sliced, and qty must be greater than 0. pausedUntil, when supplied, must be a date strictly after today; do not send server-derived fields or line id values.

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.standingOrders.updateRecurringOrder({
  id: "9b2f1c10-7a3e-4d54-8c2a-1f6b9e0d4a21",
  customerId: 2615,
  name: "Untitled",
  daysOfWeek: [],
  lines: [],
});
Response
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "customerName": "Example Name",
  "name": "Example Name",
  "daysOfWeek": [
    1
  ],
  "isActive": true,
  "pausedUntil": "2026-07-20",
  "createdById": "550e8400-e29b-41d4-a716-446655440000",
  "createdAt": "2026-01-15T09:00:00Z",
  "lastGeneratedAt": "2026-01-15T09:00:00Z",
  "lines": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "recurringOrderId": "550e8400-e29b-41d4-a716-446655440000",
      "itemId": "550e8400-e29b-41d4-a716-446655440000",
      "itemName": "Example Name",
      "qty": 1,
      "caseQty": 1,
      "rawBaked": "raw",
      "loosePacked": "loose",
      "sliced": "sliced",
      "lineNote": "example_value"
    }
  ],
  "warning": "example_value"
}
PreviousGet a standing orderNextPause or resume a standing order