# Actions

Everything the Meykt AI access can do is also available to your own system with an API key: hundreds of actions across orders, production, warehouse, products, processes, shipping and settings. Actions use the same rules as the AI access: the switches the owner set in Meykt, the same previews, the same approvals for anything that reaches another business or cannot be undone, the same log and undo.

Use the fixed endpoints (orders, files, fulfillment, warehouse) where they exist — they are stable contracts. Use actions for everything else.

## Open a result in Meykt

Supported records returned by `search_data`, `query_data`, `get_record` and domain actions
such as `read_product_inventory` include an optional `recordUrl`. Use that URL as the link
on the corresponding product name, order number or production reference. For an order
line, the link opens its order. Treat the URL as opaque. Render plain text when the field
is absent. Following a link requires a Meykt session with access to the destination.

## List stock at a storage place

Call `get_warehouse_workspace` with `{"place_code":"EG-F01","limit":25,"offset":0}`.
The full printed code selects one physical place. An optional `warehouse_id`
restricts the lookup to that warehouse. Each article or material with positive
physical stock appears once, including fully reserved goods. Separate lots of an
article share one result. The response contains `place` (name and code), `items`,
`total`, `limit`, `offset` and `has_more`. An empty place has zero items. An
unknown or out-of-scope code returns `place: null` and zero items. The row fields
`physical`, `reserved` and `available` are exact decimal strings in its base
unit across its places, as in Stock. A missing observation yields null. Open
demand without an assigned warehouse leaves availability unknown. Read its balances for
quantities at the individual place. Use `search`, `sort` and `direction` with
the ordinary workspace search. The place lookup accepts `place_code`,
`warehouse_id`, `limit` (1–100, default 100) and `offset` (default 0).
It requires the same warehouse viewing and customer data permissions.

## WooCommerce access and shipping reports

`get_woocommerce_connection_state` takes `connection_id`, the UUID of an existing
WooCommerce connection discovered in your authorized workspace. It requires Read
data and current shop editing rights. The response contains only `access`:
`read_write`, `read_only` or `unknown`. `read_only` means a successful read probe
with a denied write probe; it is not proof of a literal consumer-key scope.
Retry unknown checks. Credentials, shop URLs and provider responses are never
returned. Humans rotate credentials in Meykt. The same service checks both
connected AI and Meyki; native access remains bound to the original user and
organization, with effective rights checked again before the private probe.

WooCommerce supports a human-enabled `status_only` reporting target: native
`completed` status after fully proven shipping, without tracking, plugin,
fulfillment, note or custom-field writes. No tracking number is required for
this mode. Partial shipping, cancellation, returns or a completion without
explicit shipped proof do not qualify. Other tracking modes and Billbee retain
their tracking requirements. Enabling never reports history automatically;
the human selects earlier shipments after a versioned preview. The preview's
additive `status_only` flag defaults to false for older responses. AI reads
shipping state and previews and may pause reports; activation, configuration
and historical selection remain human actions because shop emails may follow.
No customer key gains permission to administer other shop connections.

## Printing order and shipping documents

`print_documents` supports existing shipping labels, return PDFs or QR images,
and manual shipping labels. It reuses the stored original and never buys a label
or completes dispatch. Preview and approval bind the selected printer and profile;
`target.print_kind` can select the station's routing slot. Order documents remain
subject to the same order access and current work ownership as Central. When the
order has active work ownership, pass your unchanged own `work_session` from
`manage_central_work_session`. This proof is bound to the reviewed request and
checked again before printing; after takeover, resolve ownership and prepare a
new request. Printer tests and standalone documents need no order session.
A conflict of this proof answers with its code and the next step, in every action that takes
`work_session` (for example `record_warehouse_pick_execution`):
`central_work_claim_required` (claim with `manage_central_work_session`, or ask the person
before taking over someone else's work), `central_work_claim_lost` (never repeat physical
work; ask the person before claiming again), `central_work_claim_busy` (someone else works on
it; ask whether to take over explicitly) and `central_work_claim_changed` (read again and use
the current revision). `get_central_work_session` names the current holder. Item results of
executed shipping-label and package-preparation actions, and `get_pending_action_status`,
carry the code only.
Order-filled print templates use the same order checks and produce a saved
document without starting production. A successful
queue result confirms submission, not physical paper output. After an uncertain
response, inspect the printer and original request before deliberately printing again.

## WMS commissions and manual automation runs

`get_warehouse_order_fulfillment` includes the WMS order's current `admission`
reasons and `last_execution`. A commission is additional warehouse work linked
to an order; it is not a second customer order or proof of completed production.
Its completion mode distinguishes shipping, pickup, handover and allocated storage.

After resolving issues, `manage_warehouse_order_fulfillment` supports
`operation.kind: "recheck"` with the order, request and current request version.
Use the normal preview and approval flow. Recheck does not rerun the automation,
create production, send messages or confirm physical handling. The current order
and issues are checked again before execution; changed proposals need a new approval.
It does not support `recovery: true`; after an uncertain response read the current
WMS order and prepare a new reviewed recheck. Internal comparison values remain hidden.

Manual automation runs can preserve matching production while adding missing
work. Conflicting production changes require review instead of silently producing
twice. This does not make other automation actions idempotent: messages and other
steps may run again. Existing callers retain their previous skip policy unless
they explicitly select the new behavior. No external order API scope grants a
new right to bypass warehouse issues or workflow approvals.

## Clarification and address corrections

For an address-check finding, read `get_address_clarifications` first. Keep its
opaque `version_token` and `revision`; pass them as `version_token` and
`expected_revision` to `manage_address_clarifications` with up to 200 `items`.
Each item names an `order_id` and one operation: `hide`, `show`, `resolve`,
`set_note` or `delete_note`. Only `set_note` takes `note` (at most 1,000 UTF-16
units). Each business has one editable note per order and current address;
partner notes are read-only. Notes, authors and times require Read customer data;
read all note pages when `has_more_notes` is true.

Hide/show affect only your business's display and require the corresponding
order-reading permission. They confirm no address and release no work. Resolve
and notes require the order's editing permission. Resolve always needs exact
owner approval and may release waiting automations or labels for directly
connected fulfillment orders with the same current address. Other addresses,
indirect copies and old-label warnings are unaffected. Re-read after any stale
version; never retry an uncertain write blindly. `dismiss_attention` no longer
handles address-check findings; use the explicit operations above.


`get_organization_settings` with `sections: ["clarification"]` reads the organisation's
start rule and revision. `update_organization_settings` accepts
`clarification: {"mode": "hold" | "notify", "expected_revision": 0}` (use the current
revision). Both changes of mode require explicit owner approval. The default,
`hold`, keeps clarification-gated receiving automations waiting; `notify` releases
them even while business clarification points remain open, including orders
already waiting. Explicit on-receipt automations retain their own start rule.
Unfinished preparation and individual payment, stock and required-data checks
remain enforced. Restoring the hold does not reverse work already started.

`release_order_automations` accepts either one `order_id` or up to 200 selected
`order_ids`. Preview and approval bind each order's current state and matching
workflows. Results remain per order; already started workflows are not repeated,
and clarification points are never dismissed by a release.

A shipping-address correction through `POST /v1/orders/{id}/shipping-address` or
the existing address actions preserves
warehouse goods, picking and production instructions. Labels and shipping context
still bind the actual address: cancel and recreate a label that contains an old
address. Confirmed dispatch prevents changing that executing order's address.
The stable order change command retains its existing broader revision and
started-work contract; use the shipping-address endpoint or address action schemas
for address-only corrections.
No new HTTP scope or implicit permission is granted.

## Progressive warehouse setup

Use `create_storage_setup` for a single place, numbered places or a regular rack. The required
`idempotency_key` is a UUID retained with the exact `input` after an uncertain reply. Every input
requires the existing structure `parent_id`, a nonempty name up to 100 characters and `kind`:

- `single` creates one bookable place.
- `multiple` takes `count` (1–2000) and optional `start_number` (1–999999, default 1).
- `rack` takes `levels` and `places_per_level` (each 1–100), with at most 2000 total structure/place
  entries. Optional `exterior_dimensions` uses `width_mm`, `depth_mm`, `height_mm`, each null or a
  positive value up to 1000000 millimetres. Omitted or null means no exterior description.

Five levels with four places create twenty bookable places and six structure entries. The existing
location allowance still counts all twenty-six entries. Exterior dimensions never establish usable
place dimensions, article capacity or load limits. Creation also works under authorized structure
in a warehouse with a layout; new places start outside the layout. A destination that is already a
bookable place requires an explicit split action, not implicit conversion into structure.

Read the saved exterior description from the structure’s location details or its visible
`metadata.storage_setup.exterior_dimensions`. Existing `update_storage_locations` accepts
`items[].set.exterior_dimensions` with the same millimetre fields; null removes only this
exterior description and omission leaves it unchanged. The common preview binds the current
location version automatically. The interface uses the same service and its displayed
`expected_updated_at`; a stale version is rejected. Other metadata, usable place measurements,
limits, identities, codes and stock are preserved. This descriptive change does not require
warehouse layout permission and does not establish a bookable capacity.

Preview with `dry_run: true`, then use the existing approval flow. The write compares its current
parent and allowance context with the preview. `get_storage_setup_receipt` reads the historical
receipt using the original key; `limit` (1–50, default 25) and `offset` (default 0) page its locations.
A missing receipt means unknown. Confirmed receipts describe the original setup, not current stock.
The same services serve the interface, connected AI and Meyki; creation needs the person's effective
location creation permission and the Edit warehouse capability. No automatic undo is offered.

`get_storage_capabilities` accepts `location_id`, optional `product_id` with `owner_organization_id`,
and optional `package_id`. Omitted/null article context reads general location assistance; article
and owner must be supplied together for quantity advice. It returns labels, stock, dimensions,
capacity, remaining quantity and optional layout assistance, each with a status, evidence basis,
missing-data codes and nullable quantity. Zero is known zero; null is unknown or not applicable.
Calculated quantity remains an estimate of uniform cuboids in six orientations. Upright-only storage, stacking restrictions, irregular shapes and mixed packing are not validated. Confirmed practice can provide capacity without dimensions.
Manual storage has no blanket measurement prerequisite; existing limits and stock rules still apply.

`manage_warehouse_design` supports `operation.kind: "detach_locations"` with the design `id`,
`expectedRevision`, current `changesToken`, original `idempotencyKey` and a nonempty `locationIds`
selection containing complete linked subtrees. The warehouse root is excluded. Detachment removes
only planning links and representation; real location identifiers, codes, stock and rules remain.
Use the same exact arguments to recover the original detach result. Existing reconciliation can
include the locations again. A parent change affecting unplanned children is rejected until its
complete affected scope has been reviewed.

Existing explicit split and merge actions check active layout links in their affected subtree.
After detachment they can operate without a warehouse-wide layout lock, while their stock,
reservation and removal checks remain effective. Split recovery checks the exact original receipt
before allocating new codes or testing a new location allowance. A changed request under the same
key is rejected; replay does not create more child locations.

### Read the current warehouse separately from a draft

`get_warehouse_designs` accepts `section: "current"` with a required `warehouseId`
(UUID). It reads actual fixed locations without creating or saving a draft.
`id` and `templateId` are forbidden in this mode. The default remains saved-draft
reading (`view: "draft"`, `section: "designs"`).

The current response carries `warehouseId`, `view: "current"`, `readOnly: true`,
`source`, `structureToken`, `revision`, `existingDraft` and `units: "mm"`.
`source: "applied"` preserves proven applied geometry with current real names,
settings and unbound additions. `source: "structure"` is a schematic projection
when that geometry cannot be established; its positions do not prove measured
distances. Pending draft geometry is never the current source. `existingDraft`
is null or `{id, revision, hasUnappliedChanges}` and describes a separate saved
working draft. Revision is zero when no draft exists.

The initial current response contains overview counts. Initial reads may omit
`structureToken` and `expectedRevision`; supplying either checks it. Read the
complete document with `section: "document"`, `view: "current"`, the same
`warehouseId`, and the exact returned `structureToken` (32 lowercase hexadecimal
characters) and `expectedRevision` (integer 0–2147483647). Null is invalid.
If the complete document exceeds the response budget, read all its document
sections and pages at that same context. The existing geometry targets still
require their respective floor, area, rack or field IDs. Pagination retains
`limit` 1–50 (default 20), `offset` 0–1000000 (default 0), and replies with
`items`, `total`, `offset`, `limit`, `has_more`. A changed context fails visibly.
Current mode does not support draft lists, templates, import inspections or
change inspections. Foreign and missing warehouses return the same not-found
error under unchanged read permissions and customer-data access.

The interface, MCP, Meyki and Actions API share this current-view reader. Saving
or reconciling a working document changes planning only. To restart a schematic
plan, explicitly approve `delete_draft` at its exact revision, freshly read
`import_summary`, then `import`. Archiving keeps actual place identities, codes
and stock, but discards unapplied drawing changes. Stop after an uncertain
deletion and resolve the outcome before continuing. Only a separately reviewed
and approved `apply` changes actual warehouse structure. Existing write
permissions and confirmations remain required.

## Before you start

1. **The owner creates the key.** Only keys created by the organization owner can use actions. If the person stops being the owner, the key stops working for actions.
2. **AI access is switched on** in Meykt (AI access → Setup), its current notices are confirmed, and your plan includes it. The switches under AI access → Permissions decide which actions exist and whether they ask or apply.
3. **Scopes:** `actions:read` to discover actions; `actions:run` additionally for actions that change data. Running any action needs a live key.

On the first call, the key appears in Meykt under AI access → Connected apps as **API** with the name of the key. Ending that connection stops the key's actions; create a new key to use them again. Revoking the key ends the connection too.

## Discover

```bash
curl -s "https://api.meykt.com/v1/actions" -H "Authorization: Bearer $MEYKT_API_KEY"
```

GET /v1/actions lists every action whose switch is not off, with `mode`: `allow` applies changes directly, `ask` turns a real call into a request the owner approves. Add `include=input_schema` for the argument schemas, or read one action with GET /v1/actions/{name}.

Start with `get_guide` (no arguments) and `meykt_overview` — they describe the areas and the order of steps, exactly as for an AI.

## Run

```bash
curl -s -X POST "https://api.meykt.com/v1/actions/cancel_orders" \
  -H "Authorization: Bearer $MEYKT_API_KEY" -H "Content-Type: application/json" \
  -d '{"arguments": {"items": [{"order_id": "…"}], "dry_run": true}}'
```

POST /v1/actions/{name} takes `{"arguments": {...}}` exactly as in `input_schema`. Actions that change data accept `"dry_run": true`: the answer shows what would change and changes nothing. Always preview first.

| Answer | Meaning |
|---|---|
| `200`, `status: "preview"` | The preview of a `dry_run` call. Nothing changed. |
| `200`, `status: "done"` | The action ran. `result` is its answer. |
| `202`, `status: "pending_approval"` | The switch asks, or the action always needs approval. The owner approves the request in Meykt. Poll GET /v1/action-requests/{id} with `request_id`. |
| `403` | A precondition is missing (`errors[].message`: `owner_key_required`, `ai_access_off`, `consent_required`, `plan_required`, `connection_ended`, `capability_off`, or a required read switch). |
| `409` / `422` | The action refused (`errors[].message` names its code) or the arguments do not match. |
| `429` | The rate limit of the AI access (`limit_minute`), or the organization's list allowance is used up (`limit_list`, see [Rate limits](/en/developers/rate-limits)). Wait for `Retry-After`. |

## Complete orders outside the warehouse

`POST /v1/actions/complete_orders` accepts 1–50 distinct orders in `arguments.items`.
Each entry carries its own `order_id`, `action`, and, for a new report, a UUID
`idempotency_key`. Keep that key and the exact entry after an uncertain result.
For `mark_shipped`, enter the actual optional `tracking` list for that order (up to
10 numbers); one order's tracking numbers are never applied to the other orders.
`mark_handed_over` requires `handover_kind`: `picked_up`, `on_site` or `in_person`
describe an actual handover; `outside_meykt` means “Just complete”, without claiming
shipment or physical handover. `not_required` means no parcel handover is required
and is also used by the “Hand over after production” setting.

Preview first with `dry_run: true`. The preview lists blockers and effects for each
order. Every real call requires the owner's approval, including with Allow. Each
order is applied separately: read the individual `items` and `counts`; an accepted
request or one successful entry does not mean every order was completed. The action
result can be `completed_with_errors` or `outcome_unknown`. Retain successful
entries and retry only unresolved entries with their unchanged original keys and
content. A missing reply is not proof of failure. Read the saved report before
starting a different completion for that order.

This action uses the same completion rules as “Mark as completed” in Meykt. Own
orders, including shop orders, and received fulfillment orders are supported;
orders handed to a fulfiller are reported by that fulfiller. The existing AI-access
switches and order editing rights apply. Shopify is never notified through this
action, including for a received order at the client's Meykt location. Other
external effects are shown per order. `correct_tracking` replaces a shipped
report's entire tracking list, and `revoke` explicitly withdraws a report; already
delivered messages remain delivered. There is no automatic undo.

The connection-bound fixed endpoints
[`POST /v1/orders/{id}/completion`](/en/developers/fields-create-order-completion)
and
[`POST /v1/fulfillment/orders/{id}/completion`](/en/developers/fields-create-fulfillment-order-completion)
keep their existing per-order scopes and visibility.

## Warehouse pick systems

Every warehouse has exactly one pick walk. It sets the order in which new pick runs visit areas, racks and places; saving makes it valid for new runs at once, and started runs keep their bound order. Place names, codes and labels never change.

Call `get_warehouse_pick_systems` without `warehouse_id` to list the warehouses (`warehouse_id`, `name`, `site` with the location it belongs to, `has_more`; at most 100); with no warehouse yet the answer says how to create one. Use it with `warehouse_id` before changing the walk. The default `section: "walk"` returns `change_basis` (`expected_layout_token`, `expected_revision`, `expected_activation_version`), the pick profiles with `standard` first and their values (`mode` `field`/`level`/`snake`, `fields` and `places` `forward`/`reverse`, `levels` `up`/`down`) and rack counts, `pending` (a saved version that is not active yet), `pruned_rules` (rules for removed areas or racks that new runs already skip), counts and `next_profile_id` (the id the next new profile gets). `section: "kinds"` (no `warehouse_id` needed) returns the fields and effect of every change kind, the allowed values and how to read a preview. `section: "structure"` lists each area and rack in walk order with its effective profile and origin (`own`, `inherited` with `inherited_from`, or `standard`), traversal, whether level traversal is possible, own child order, place count and first/last position; pass `parent_id` (an area or rack) to page through its children. `section: "order"` pages through places in walk order (with `parent_id` only the places inside that group), `moves` lists single moved places, `layout` pages through groups and places (each group lists at most 20 `child_ids` and `place_ids`, with `child_count`, `place_count` and `ids_capped`), `receipt` finds an earlier change by its `idempotency_key`, and `history` lists the saved versions of the walk, newest first (`limit` 1–50, default 20, `offset`): `revision`, `saved_at`, `saved_by` (`name` and `state` `member`, `former`, `support` or `unknown`; never an e-mail address), `valid_now`, `layout_changed` (the warehouse was rebuilt since) and `summary` counts; `valid_revision` is `null` when the walk was never saved. `history` with `revision` shows that version against today: `restore.differences` (the same list the warehouse page shows), `changed_positions`, `not_restored` (rules for areas, racks or places that no longer exist and do not come back) and `same_as_current`. Keep `expected_layout_token` while paging; a changed layout requires a new read. Every section except `walk` needs `warehouse_id`.

`manage_warehouse_pick_system` takes one `operation` with `kind`, or a list `operations` (1–20 items with the same shape), plus the change basis from the read and a new `idempotency_key` (UUID) per intended change. A list is applied in order on one state: one preview, one approval, one save, all or nothing. New profiles in a list get `next_profile_id` and the following ids (`profile-n`), so later items can assign them. All items share `warehouse_id`, the change basis and `idempotency_key`; a refused item is named as `operations[i]` with `detail.operation_index`.

| `kind` | Fields | Effect |
| --- | --- | --- |
| `save_profile` | `name` (new profile, required), `profile_id` (existing own profile; not `standard`), any of `mode`, `fields`, `levels`, `places` | Creates or changes an own profile; a new one starts with the Standard values, omitted values stay. At most 50, names are NFKC-normalised, 1–80 characters without control, invisible or text-direction characters, unique ignoring case and width; "Standard" is reserved and `profile_id: "standard"` returns `standard_profile_fixed`. |
| `set_standard` | at least one of `mode`, `fields`, `levels`, `places`; no `profile_id` or `name` | Changes the rules of the Standard profile; it cannot be renamed or deleted. |
| `delete_profile` | `profile_id` (own profile) | Deletes an own profile and its assignments; its areas and racks inherit again: the profile of their nearest enclosing area, else Standard. |
| `assign_profile` | `location_ids` (1–500 areas or racks), `profile_id` | Gives them one profile; `standard` stops inheritance from the area. |
| `unassign_profile` | `location_ids` (areas or racks of this warehouse) | Removes own assignments; they inherit again ("Like area"). Unknown or foreign ids return `invalid_pick_assignment`. |
| `set_child_order` | `location_id` (warehouse or area), `child_order` | Visiting order of direct children; omitted children follow in natural name order. |
| `set_traversal` | `location_id` (the warehouse or one of its areas), `traversal` `complete` or `level` | Rack by rack, or level by level across the racks of one area. |
| `move_place` | `location_id`, `before_location_id` (same area) | Walks one place directly before another. |
| `remove_move` | `location_id` | Removes that single move; without one it returns `pick_move_not_found`. |
| `apply_cleanup` | — | Saves the walk without pruned rules; the order stays the same. |
| `reset_to_standard` | — | Natural name order; all own profiles, assignments, child orders, traversals and moves are dropped and the Standard values reset. |
| `restore_revision` | `revision` (a saved version from section `history`) | Saves that version again as a new version, cleaned for today's layout (rules for removed areas, racks or places are dropped); the current version stays in the history. Must be the only item when sent in `operations`. An unknown version returns `pick_revision_not_found`; restoring the valid version with the same content changes nothing. |

With `dry_run: true` the call changes nothing and lists only real changes: areas and racks whose effective profile changes (name, path, profile before and after with origin), fallbacks after a delete, what a reset drops, changed child orders (unnamed children follow by name), moved places with path and code, the changed positions, and a page of the new walk with each place's previous position (`preview_limit` 1–100, default 25; `preview_offset`). A real call always needs the owner's argument-bound approval, even when the switch allows changes. The approved apply saves exactly the previewed walk; the result is `active`, or `saved_not_active` when the saved version could not be made valid yet: repeat the identical call with the same `idempotency_key`, which never saves twice. A changed warehouse or walk returns `changed_meanwhile` with the current `change_basis` in `detail`: check the change against it and call again. There is no automatic undo; bring back an earlier version with `restore_revision`.

Reading needs warehouse viewing and customer-data access; changing needs warehouse management and the Manage pick systems switch (initially off). The same actions serve MCP and Meyki.

**Changed 2026-11-24.** The default read section is now `walk`. The former named-system kinds `save` and `activate` and the sections `systems`, `system` and `rules` are no longer accepted; such calls fail with `invalid_arguments` naming the allowed kinds or sections. An open approval request of the former kinds ends without a change when it is approved. Switch to the walk kinds above.

Previews (`dry_run`) of `create_storage_setup`, `create_storage_locations` and `split_place` that would create places carry `pick_walk` with a general sentence: the new places join the walk with the profile of their rack or area. After a tool creates places (`create_storage_setup`, `create_storage_locations`, `manage_warehouse_design` apply, `split_place`), its applied result carries `pick_walk`: a sentence saying where the new places run in the walk and with which profile. Use it to ask the owner whether they should run elsewhere, use another profile, or get a pick priority (`book_warehouse_capacity` `configure_place`, -10 to 10, default 0; among the places of one article the higher value is taken first, an earlier best-before date still comes first and equal values keep the order by receipt; it does not change the walk). `configure_place` replaces all place values, so to change only the priority send the place values from `get_warehouse_capacity` unchanged together with the new `pick_priority`.

Legacy `update_picking` patches in `manage_warehouse_design` and new individual `pick_sort` changes return `pick_order_managed_separately`. Use `manage_warehouse_pick_system` instead. Stored designer `picking` data remains readable for compatibility, but saving or applying a drawing does not change the walk.

## Warehouse availability and reservation

`get_warehouse_stock` returns the complete article snapshot, including zero balances
retained for history. Each balance can carry `location_counts_available` and
`location_reservable`. These are independent effective place rules, not permission
to book or a claim that the entire quantity is free. Both usable quantities also
require accessible goods with an eligible condition, minus `reserved_quantity`
and `capacity_held_quantity`.

`get_warehouse_action_sources` exposes the same rules as `place.counts_available`
and `place.reservable`. Its `available_quantity` and `reservable_quantity` are
separate amounts: reserve and transfer places can count towards availability
without being reservable, while a shop place can allow reservation independently
of its availability switch. `place.role` distinguishes structure from real places.
Missing optional rules on an older response do not authorize a non-storage
operation. Keep paging through all source rows; a zero balance represents history,
not another current lot. Counting may deliberately select an empty real place.

The fixed inventory endpoints retain their existing availability meaning and
authorization. These additional read fields do not change stock or expand rights.
Use the existing preview, version and approval rules for every booking.
## Warehouse capacity and direct putaway

Normal manually confirmed receipt and transfer work without a capacity profile,
dimensions or weight. Known location restrictions, confirmed maximum quantities,
reservations and quantities held for explicitly prepared work still apply.
Missing information is returned as unknown; it is never a claim of unlimited space.

Use `get_warehouse_capacity_intelligence` to select an article by its goods owner
and product, even before its first receipt. `view: "targets"` accepts the requested
`quantity` and returns ranked destinations with the assessment and compatible,
dated experience. An observed quantity means that at least this many pieces were
there together at that time. It neither sets a maximum nor states today's free space.
Packaging, mixed occupancy and withdrawn observations affect what can be inferred.
A rule for each separately bookable cell applies to that cell, not the whole rack.
For goods explicitly stored as individual pieces, occupancy follows the current
quantity. Named package positions stay occupied until their actual removal is
confirmed; withdrawing their contents alone does not clear the cartons.

`view: "preferences"` reads the acting person's question settings, optionally for
one owner/product pair. `book_warehouse_capacity_intelligence` with
`operation.kind: "save_preferences"` previews and saves organization, personal or
article settings. Organization defaults need management permission; personal
settings affect only the acting person. Disabling questions keeps automatic
learning active. Preview first and preserve the exact arguments and key on recovery.

Use the normal warehouse booking actions for direct movement. `plan_putaway` is an
optional preparation that holds source quantity and destination space; it moves no
stock. `complete_putaway` records the actual placed quantity and handles the remainder
explicitly. Only claim a physical check when a person actually performed it.
Creating or moving standalone pallets is retired. Existing prepared work and historical
receipts remain accessible, while order boxes, pick containers and physical pallet
storage locations retain their existing workflows.

## Containers and placement

`get_warehouse_containers` reads the common catalog of `order`, `pick` and
`intermediate` containers. Optional `kind` (`all` by default), `warehouse_id`,
`search`, exact `code`, `status` (`all`, `enabled`, `disabled`), `occupancy`
(`all`, `empty`, `occupied`), `sort` (`name`, `code`) and `direction` (`asc`,
`desc`) apply before `offset`/`limit`. Read every required page; a missing row on
one page does not prove absence. Each entry includes current `version`, enabled
state, emptiness, bindings, editability, deletion eligibility and a blocker when
present. Emptiness in this catalog is recorded state, never a physical inspection.
The catalog returns container metadata rather than private order contents.

Use the existing management actions for creation and editing:
`configure_warehouse_box_areas` for order boxes and their positions,
`manage_warehouse_pick_containers` for pick containers, and
`manage_production_intermediate_boxes` for intermediate boxes. Detailed reads
remain available through `resolve_warehouse_box`, `get_warehouse_pick_containers`
and `get_production_placement`. Production placement policy and completed-goods
handling retain their existing actions and permissions.

`delete_warehouse_containers` accepts a required UUID `idempotency_key`,
`containers` (an exact selection of `{kind, id, expected_version}`), and
`physically_empty_confirmed: true`. `kind` selects the container family, `id` is
its UUID and `expected_version` is the version returned by the current catalog.
`dry_run: true` previews without changing the catalog. Execution needs warehouse
management, the **Read data**, **Edit warehouse** and **Delete data** switches,
and approval of the exact selection. A person must actually check the containers
are empty before confirming. Occupancy, active work, reservations, configuration
bindings, a changed revision or unavailable targets block the whole selection;
no subset is deleted. Removed containers leave operative lists, while codes and
historical references stay reserved. There is no undo. The separate box-area
manager retains its explicit order-box code-release choice; this shared deletion
does not release codes.

After a lost response retain the original key and exact selection, including all
versions and physical confirmation, and set `recovery_only: true`. This resolves
only the saved command and cannot perform a first deletion. Read today's catalog
separately after recovery. These catalog actions do not transfer unproduced or remaining stock or start
production. Starting one existing job from exact pick-container contents uses the
separate source-bound production action below. All channels use the same service validation and current permissions.

`get_warehouse_containers` with `view: "states"` reads the state of every container from its
bookings: `free`, `disabled`, `collecting`, `reserved`, `occupied`, `waiting`
(partly shipped, rest inside), `cancelled` (goods of a cancelled order inside) or
`clarify`, with the orders inside and the actions that fit. Optional `kind`,
`warehouse_id`, `search`, exact `code`, `state` (`attention` = `clarify`,
`cancelled` and `waiting`), `sort` (`attention`, `name`, `code`), `offset` and
`limit` (1-200, default 100) apply before paging. `container` (`{kind, id}` or
`{code}`) returns one container with its articles instead of the list.
`order_number` is `null` unless **Read customer data** is on.

Containers free themselves once their bookings show nothing inside.
`release_warehouse_container` frees only a leftover `pick` container or
`intermediate` box that bookings show empty but that is still assigned. It takes
`kind`, `id`, optional `expected_version` (omitted: the version read in the
preview is bound) and `dry_run`; there is no physical-emptiness flag. It needs
the booking right and the **Read data** and **Edit warehouse** switches. Goods
still inside refuse the release (`wms_container_not_empty`); book goods of a
cancelled or parked order back with `record_warehouse_pick_execution` and
`return_order`. Order boxes release themselves (`wms_container_releases_itself`).
Other refusals: `wms_container_not_assigned`, `wms_container_in_use`,
`wms_pick_booking_pending`, `wms_container_changed`, `wms_not_allowed`,
`wms_not_found`. There is no undo.

## Print-template design and images

Use `get_print_template_options` for the complete layout and operation schemas,
fonts and starter designs. `prepare_print_template` returns an unsaved definition
with exact millimetre placements and layout diagnostics. Authorized original
artwork can be supplied through its `image_files` selectors. Inspect
`render_print_template` before saving with `create_print_templates` or
`update_print_templates`.

`render_print_template` returns one actual page image, its definition hash,
example-context hash, physical dimensions and measured clipping. `page_index`
selects a zero-based page. Real order examples require customer and finance
access; artwork requires customer access. A rendered page does not save a
template or start a printer. Check other pages and the longest expected values
separately.

Actions with authorized image output add `data.images`, an array of
`{"mime_type":"image/png","data_base64":"…"}` objects beside `data.result`.
Decode the Base64 to display or inspect the image. The complete encoded response
is limited to 4,000,000 bytes; request one smaller page if a response is too
large. Private review metadata and temporary viewer credentials are not returned.

## Delivery notes in warehouse receiving

For a saved inbound plan, `upload_inbound_delivery_file` attaches a PDF delivery note or
JPEG, PNG or WebP photo up to 5 MiB. Its target is
`{ "kind": "inbound_document", "inbound_id": "…", "perspective": "owner" }`; use
`perspective: "operator"` when acting as the actual warehouse operator. Both authorized
parties can add documents and read the authorized files through `get_inbound_delivery_files`.
Pass `inbound_id` for the paginated list; add `file_id` for a one-minute download link.
Current case access is checked again on upload and download. This document is attached
directly to the saved plan; there is no additional attachment action.

Your agent reads the delivery note and resolves existing article matches, missing articles
and expected quantities with the user. Meykt stores the confirmed selection; attaching a
PDF does not extract its lines, create articles or confirm physical stock.

For a warehouse operator, search `get_warehouse_receiving` by `search` for the delivery-note
number stored in `reference`, and check `get_warehouse_intake` for existing dossiers. After
reviewing matches, `book_warehouse_receiving` with `create_delivery` records expected lines
for own goods or currently released fulfillment-customer goods. It books no stock. A linked
`book_warehouse_intake` dossier uses `source.kind: "wms_delivery"` with that delivery's ID.

`upload_warehouse_intake_file` prepares a PDF delivery note or JPEG, PNG or WebP photo up to
5 MiB. Its target is `{ "kind": "warehouse_intake", "case_id": "…", "evidence_kind": "delivery" }`.
Damage evidence uses `evidence_kind: "damage"` and accepts photos only. Upload directly up
to 128 KiB; larger files use `begin`, authenticated binary parts and `finish`. Keep the
content checksum and transfer identity unchanged when retrying. Preparation returns an
`evidence_id`; attach it with `book_warehouse_intake`. `get_warehouse_intake_file` returns a
one-minute link after checking current access. The existing `_photo` actions remain
image-only. The same warehouse, customer-data and file permissions apply as in Meykt.

The goods owner's separate inbound plan uses `get_inbound_deliveries` with `search` on
its reference and `role: "owner"`; an authorized operator can use `role: "operator"`.
`manage_inbound_delivery` announces goods as their owner. These plans do not automatically
become warehouse delivery dossiers. Their shared documents remain on the plan; fulfillment
customers do not gain access to the operator's separate dossiers or their attachments. See [Inbound deliveries](inbounds) for the fixed
HTTP endpoints and role contract.

References are searchable labels, not unique document keys. Review matching records before
creating another delivery. After an uncertain write response, recover the original action
with its original key; a second new key is not duplicate protection.

## Picking and distribution

`get_warehouse_pick_lists` resolves a saved list or its exact scan code. A list's
visibility is not permission to work it: future schedules, employee assignment,
current claims and warehouse permissions remain authoritative. Empty employee
assignment means all otherwise authorized pickers.

### Large pick lists

A pick list takes up to 1,000 orders. When more orders match than the template allows
(`limits.orders`, at most 1,000), it takes the first ones in the template order; the others
are counted in `counts.not_checked` and wait unchanged for a later list. Creating one is a
two-step flow:

1. Preview with `get_warehouse_pick_lists`, `section: "preview"`, `warehouse_id` and
   `template_id`. Large selections are checked in steps: while `complete` is `false`,
   call again with the returned `preview_id` (and no other arguments) until it is `true`.
   `next_step` says what to do. Page the saved preview with `preview_id`,
   `part: "orders"` or `part: "excluded"` and `after` = the previous `next_after`
   (50 rows); `search` (order number) narrows such a page and is rejected without
   `part`. `reason_meanings` explains every reason that appears. A preview belongs
   to the person who started it, is replaced by a newer preview of the same template
   and warehouse (also one that person has open in Meykt, whose "Create" then asks to
   check again), and closes after one day.
2. Create with `manage_warehouse_pick_lists` and `operation.kind: "create"`, passing
   `preview_id` and the `expected_token` of the complete preview, plus assignees,
   priority, `visible_from` and an `idempotency_key`. Only a complete preview has an
   `expected_token`. If the orders, stock or template changed since the preview,
   nothing is created (`plan_changed`); start a new preview. Creating always needs the
   owner's approval because it reserves stock.

Lists above 100 orders reserve the first orders at once and the rest in the background
(`status: "reserving"`). `section: "list"` with `pick_list_id` returns one page of the
list and its `reservation`: `state` (`reserving`, `cancelling` or `complete`), counts,
`paused`, `stop` (a fixed `reason` key with its `meaning`) and `next_step`. Orders that
could not be reserved are not in the list: they wait unchanged with their other work, and a
later list can take them once their reason is resolved (for example when stock arrives); the
list itself needs nothing. Read them with `part: "dropped"` and `after`
(`search` is rejected there). Each row carries a fixed `reason` key and `reason_text`,
never an internal code; `reason_meanings` explains `preparation_reasons`. Without
`page`, `section: "lists"` returns every list when the answer fits, otherwise page 1 of
the paged view with a `note`. A read that is still too large answers
`response_too_large` and names how to read less at once. A list
can be changed or started only when `reservation.state` is `complete`; before that, the
response reason is `pick_list_reserving`. `pick_list.pick_run_id` is the tour created with the
list, also before anybody starts it: pass it as `pick_run_id` to `get_warehouse_pick_execution`
and `record_warehouse_pick_execution`, including `start`. `section: "counts"` with a
`template_id` that is not offered for pick lists in that warehouse answers `not_found`
instead of an empty count.

A paused reservation keeps its promised boxes. Continue it with `operation.kind:
"resume"` and `pick_list_id`; it runs with the rights of the person who resumes. When
`stop.reason` is `warehouse_not_in_plan`, warehouse management was missing from the
plan: until the owner changes the plan in Meykt, the list can be neither read, resumed
nor cancelled (reason `warehouse_not_in_plan`) and keeps its boxes and reserved goods.
`cancel` of a list that is still reserving or has more than 100 orders is a request:
the list is dissolved in the background (`status: "cancelling"`) and can be resumed the
same way if that pauses. Resume and cancel need the owner's approval.

After a lost reply, repeat `create` with the same `idempotency_key` and arguments: an
existing list is returned instead of a second one. The same key with other arguments
(preview, token, assignees, priority or `visible_from`) answers `idempotency_conflict`
and changes nothing; use a new key for a new list. `not_created` confirms that no list
exists yet; `outcome_unknown` means it may exist. Before 2026-11-21, `create` took
`order_ids`; such requests are now rejected as invalid.

Running a large list works like a small one. The `start` operation of
`record_warehouse_pick_execution` and fixed `box_ids` of a pick template accept up to
1,000 boxes (box areas stay at 100). Free boxes page with `boxes_offset` up to 10,000
and `boxes_limit`, or are found with `boxes_search` (name, code or area, applied before
paging, with `boxes_matching`). `get_warehouse_pick_execution` reaches every order
with `orders_offset` up to 1,000, or pages them like the walk: `orders_search` (order
number or box), `orders_filter` (`all`, `attention`, `open`, `done`) and `orders_after` =
the previous `orders_next_after`, 50 per page, with `orders_matching` and
`orders_counts` counted before paging. An unknown `orders_after` starts again at the
first page. Reading or starting a list that is still reserving answers
`wms_pick_list_reserving` with the next step. When one call processes only part of a
saved confirmation group, the status is `partially_applied` and
`recovery.remaining_keys` names the commands that were not confirmed or whose outcome
is unknown; sending exactly those again with the same `recovery_action` and their saved
originals is safe, never the physical work. The old walk
(`record_warehouse_pick_walk`) takes at most 100 orders: a larger list, or one already
run in the execution, answers `pick_walk_unreadable` or `pick_execution_required` with
the way to `get_warehouse_pick_execution` and `record_warehouse_pick_execution` with the
same `pick_run_id`.

`get_warehouse_pick_execution` reads the saved procedure, exact decimal quantities,
collection groups, sources, containers, order boxes and current allowed actions.
Use its paging arguments for large choices. `record_warehouse_pick_execution`
claims work, binds containers, records actual collection or placement, handles
shortages and completes the appropriate work. Read the discovered schema for the
selected operation; claims do not themselves confirm physical work.
`get_warehouse_pick_execution` with `section: "operations"` (no `pick_run_id`) lists, for
each of the 18 operation kinds, the fields new work sends (`required`), the further fields it
may send (`optional`; any other field is refused), the scanned codes only a repeated saved
original carries (`saved_original_only`) and the conditions checked beyond the field types
(`rules`), plus the call-level fields and rules (`call`) and what each confirmation means
(`confirmations`). It is generated from the same validator that accepts the call, contains
no data of the organisation and needs only Read data. Rejections for a missing or unknown
operation field or an unknown kind name this section as the next step. Rejected arguments
answer `invalid_arguments` with one entry per cause in `detail.issues`: `path` names the
field (for example `operation.line_confirmations`) and the message says what is missing or
not allowed there and what a valid value looks like; an unknown field lists the fields that
operation takes (a single unknown field is the `path` itself, for example
`operation.box_ids`), and an unknown kind reads `Unknown kind. Allowed: …`. The call rules
of the section also say when `work_session` is needed: `collect`, `place` and `finish`
always need your own active claim of the list, every other kind once the list has been
claimed by anyone (also after a release). Claim it with `manage_central_work_session`
(`action: "claim"`, `kind: "pick_run"`, `id` = `pick_run_id`, a new own `session_token`)
and send that token as `work_session.session_token`. New AI work never sends scanned codes (`article_code`, `box_code`,
`area_code`); it confirms with `confirmed_without_article_scan` or
`confirmed_without_box_scan` and names the actual `target_container_id` or
`source_container_id` (`null` for loose goods). A new `finish` always sends
`target_container_id` and `line_confirmations` (`[]` when no remaining quantity is
confirmed at the end). The published schema states the upper bound of every page size
(`*_limit` up to 100, `limit` of runs up to 50) and the most entries a list takes
(`line_confirmations` 25,000, `box_ids` 1,000, `recovery_commands` 100). Offsets, lower
bounds and text lengths are left out to keep it small; the server still enforces them and
names field and bound when one is exceeded, for example `bookings_offset` up to 25,000 and a
pick template's `limits.orders` up to 1,000. Open bookings page like the other parts of an
execution: `pending_bookings_total`, `pending_bookings_has_more` and
`pending_bookings_next_offset` (`null` on the last page) reach every open booking of a list
with up to 1,000 orders; read further with `bookings_offset` (offsets start at 0). A page
size over its bound names the offset argument to page with instead.

Use `get_warehouse_pick_lists` with `section: "overview"` for one authorized,
deduplicated overview of prepared lists and begun, reviewable or historical tours.
A list and its tour occupy one entry. A reviewable booking outcome takes precedence
over a completed list state. Reading does not claim or start work.

The overview accepts `warehouse_id`, `search`, `scope`, `template_ids`, `assignee`,
`sort`, `direction`, `page` and `page_size`. Literal search ranks direct list-code/name
matches before contained frozen order-number matches, then template/person matches,
before pagination. This includes orders in unstarted lists. `scope: "all"` reads
current work with an empty query and includes history with a nonempty query;
`scope: "history"` selects completed or cancelled work. Explicit scope and assignee
filters remain effective. To search across every status and assignment, send
`scope: "all"` and `assignee: "all"`, as the Picking page does when a search is submitted.
`counts` applies search, template and assignee filtering before scope and pagination;
`total` counts the final matching entries. The discovered schema documents exact
defaults, enums and page limits. Use `get_pick_template_overview` for rule-only
template eligibility and the existing preview section for actual stock/box checks;
neither overview counts nor searches reserve stock.

Use `section: "runs"` to find tours from pick lists and workflows, including ended
and cancelled tours. `run_scope` accepts `active`, `attention`, `history` or `all`;
`order_id`, `warehouse_id`, `search`, `offset` and `limit` narrow the result on the
server. The business outcome distinguishes cancellation from successful picking.
The execution phase alone does not prove success. An order already assigned to a
tour should be continued through that tour rather than picked a second time.

`section: "intents"` reads received physical confirmations for one `pick_run_id`.
These are declarations of work, not proof of a stock booking. Preserve the exact
original command, including its idempotency key, quantities, versions, source and
destination. With the current `work_session` and human approval,
`record_warehouse_pick_execution` accepts `recovery_action: "continue"` alongside
that original command. It checks the saved result or authorizes continuation;
changing responsibility never silently changes the original goods.
For an ended tour, `recovery_action: "resolve_cancelled"` also requires
`no_unrecorded_goods_confirmed: true` after a person checks the real goods.
When Meykt refused a confirmation with a clear reason and booked nothing
(`rejected_no_booking`, for example `wms_pick_box_taken`), repeating it fails the
same way. `recovery_action: "discard_rejected"` with
`no_unrecorded_goods_confirmed: true` closes only that original without a booking,
so the work can be confirmed anew, for example into another offered box. Other
confirmations from the same input stay open: the preview lists them in
`other_open_confirmations`, the result in `recovery.remaining_open_keys`; continue or
resolve each of them. An original whose outcome is still unclear cannot be discarded.
While distributing, a free box allowed for the tour can replace a missing one; it is
reserved when goods are placed. A free box that a pick list not yet started needs as
its last fitting one is refused with `wms_pick_box_not_reserved`. Shipping, completing
or releasing an order keeps the boxes a running tour still needs, and a tour with open
collected orders is never ended automatically; a tour that finished at least one
order ends as completed. `record_warehouse_pick_walk` with `release_boxes` keeps only
boxes for collected orders not yet distributed and returns `kept_boxes`,
`kept_reason` and `pick_list_id`.
Use `intent_scope: "all"` and `intent_key` to read a confirmed or resolved original
even if warehouse writing is no longer allowed. `intent_plan_id` selects the
original human confirmation group; page its commands with `offset`/`limit`.
Large finish commands page their `line_confirmations` with `lines_offset` and
`lines_limit`. Reassemble the full unchanged command before proposing recovery;
`command_complete: false` is not a writable replacement for the original.
For one group, `recovery_commands` accepts up to 100 exact original commands.
The first must match the top-level original. Approval covers the whole explicit
group; unrelated confirmations cannot be combined. Successful original keys are
returned so a partially completed group is never restarted blindly.

To stop an empty tour without cancelling its customer orders, use operation
`end_empty_run` with a reason and `no_unrecorded_goods_confirmed: true` inside the
operation. Pending confirmations and goods already collected must be resolved
first. A cancelled fulfillment order is never reactivated by ending or recovering
a tour. All these actions retain warehouse/order permissions, customer-data access
and approval bound to the concrete arguments.

The same reader also offers `section: "history"` for the pick run's saved confirmations.
Page entries with `offset`/`limit`; page a large confirmation's articles with
`history_event_id`, `history_items_offset` and `history_items_limit`. Each entry includes
its kind, timestamp, booking state and exact article quantities with sources and
destinations. `pending` means the physical confirmation is saved while its booking
remains open; `resolved` marks that original issue after recovery. A `retried` entry
records a booking retry, not another physical movement. History requires the same
current run, employee, order and customer-data access as the execution reader.

Picking controls are included in the existing
`get_warehouse_workplace_configuration` / `save_warehouse_workplace_configuration` and
`get_my_warehouse_workplace_preferences` / `save_my_warehouse_workplace_preferences`
actions. They cover input mode, automatic focus, camera starts for articles/containers/boxes,
keeping the camera open between unit scans, sound and vibration. The same company and
station settings, personal-edit audience and field locks apply as in the interface.
The new picking fields in company `preferences` remain optional for existing
`save_warehouse_workplace_configuration` callers and have no write defaults.
An omitted picking field keeps its value from the authorized configuration at
`expected_version`, including its otherwise unseen station overrides and editable-field
grants. Preview and execution resolve the same saved values. A stale version is
rejected before saving; a change after that read is rejected by the final version
check. Supplying all eight fields remains a complete replacement without an extra
compatibility read. These controls never skip template-required checks. Keeping the camera open requires
a deliberate next-scan gesture per unit after the preceding confirmation settles;
a barcode held in view is not a second unit.

The interface completes only its current group after required quantities and placements
are confirmed and booking issues and shortage decisions are resolved. Display-only
collection without direct boxes retains an explicit final confirmation. Other groups
and later distribution remain independent. A location path omits the sole warehouse
ancestor, preserving actual parent names and identifiers; multiple warehouses retain
that ancestor. Optional article master data loads only when opened and retains the
existing own-product or active fulfillment-release viewing rights.

Physical confirmations retain their original facts: `collect` and `finish` include
the actual `target_container_id`, `place` the actual `source_container_id`; explicit
`null` denotes loose goods. A display-only finish supplies the originally confirmed
remaining line quantities and versions in `line_confirmations`, not a fresh total
from another person's later work. Other confirmation methods use an empty list.
The service never guesses a physical source from identifier order.

`places` contains optional visual location hints. Booking receipts return the
current source identifiers, codes, quantities and versions without waiting for
location-tree or label-profile enrichment. Read execution for fresh hints; an
empty `places` object never means that a physical source is absent or that its
verification can be skipped. Optional hint reads have a bounded wait and may
return no hints while the authoritative execution remains readable.

Preserve the original key and operation after a lost reply. Read-only recovery
does not first-book work. A `booking_pending` response retains the physical
confirmation but not a successful stock booking: retry the existing booking,
without moving goods again. Finishing a list or marking a container full does not
release its contents; container release needs confirmed actual emptying.

`get_warehouse_pick_policy` / `configure_warehouse_pick_policy` cover priority and
partial-order policy. `get_warehouse_pick_containers` /
`manage_warehouse_pick_containers` cover actual reusable container setup.
Business settings require warehouse management and belong in the Dashboard.
Pick templates and pick lists no longer configure or issue labels. Historical
pick-label settings are inactive. The former `get_warehouse_pick_outputs` and
`manage_warehouse_pick_outputs` actions are no longer offered. Existing packing,
shipping and reusable-container label functions remain separate.

### Starting a list in sections

`start` and `cancel_start` of `record_warehouse_pick_execution` work in sections for every
list size. One approved call keeps beginning new sections for about 15 seconds (at most 40
sections) and answers with `start`: `status` (`running`, `cancelling`, `started`,
`not_started`), `run_status`, `prepared` of `orders` (orders ready to pick), `bound` of
`total` (orders with their box), `percent`, `returned` (orders back in the pool while
undoing), `will_return` and `will_remain` (what undoing now would return to the pool and
leave in the list; optional), `owner` (the person who began the start; `mine`), `sections`,
`stopped` (`finished`, `time_budget`, `no_effect`, `state_changed`, `section_limit` or
`error`), `step`, `next_call` and `meaning`. `step` sums what this call's sections did:
`released`, `bound`, `prepared`, `reopened` and `returned` count orders, `reserved` and
`skipped` count boxes (optional), and after the last undo section `kept` (up to 20 orders
with `order_id` and `order_number`) and `kept_count` name the orders the undo left in the
list. A section counts as without effect only when all of these counts are 0.
While a start or undo is not finished, the status is `partially_applied`: send exactly
`next_call` as the next call (it needs approval again). `next_call` is `null` when nothing
is left or someone else began the start. Every section uses its own key derived from your
`idempotency_key`; repeating the same call with `recovery_only: true` returns the saved
sections and starts nothing twice. Only the first section takes the box choice
(`area_id` or `box_ids`); `partial_allowed` is set by Meykt and rejected from callers.

While a start runs, `get_warehouse_pick_execution` shows `start_progress` with its
`meaning`, and every other operation of that list answers `wms_pick_start_running`, also
releasing boxes in the old walk (`pick_start_running`); cancelling or dissolving the list
with `manage_warehouse_pick_lists` answers `pick_start_running` as well. Only the person
who began the start continues it; anyone else gets `wms_pick_start_other_holder` (the
start may still be running: wait and read again). `cancel_start` undoes the start in
sections; its preview `undo_start` gives `will_return`, `will_remain` and
`list_empty_after` first. Orders that already have a box go back to the pool and leave the
list. Orders whose production has begun, or that are packed or shipped, stay in the list
with their box (`step.kept`, `kept_count`). Orders without a box stay and are open again.
All box reservations of this start become free; staying orders keep the box bound to them.
If none stays, the list is empty and its run ends (`run_status` `cancelled`, or
`completed` if an order of the run was already picked or shipped). If orders stay, the
list can be started again only while its run is still open; the new start reserves boxes
for orders without one. If the run ended from outside while a start was stuck (for example
all orders cancelled in the shop), continuing answers `wms_pick_run_closed`, and
`cancel_start` cleans up in one section and returns nothing. Its holder needs Book warehouse, anyone else Manage warehouse
(`wms_pick_start_manage_required`). Further reasons: `wms_pick_start_cancelling`
(an undo is running; continue it with `cancel_start`), `wms_pick_list_already_started`
(fully started; take single orders out with `remove_order`), `wms_pick_start_not_running`
(nothing to undo), `wms_pick_start_step_timed_out` (that section was rolled back, earlier
sections stay; continue with `next_call`) and `wms_pick_changed` (read the execution
again and continue with its version).

Collecting, checking and finishing in `record_warehouse_pick_execution` name their reason
instead of `wms_read_failed`: `wms_invalid_operation` (read the execution and send the
operation its current step expects), `wms_pick_incomplete` (confirm or record the open
lines as a shortage first), `wms_article_scan_required` (a person scans the article in
Central), `wms_pick_confirm_total_required` (send the line's open quantity),
`wms_pick_container_not_allowed` (collect without `target_container_id`),
`wms_pick_each_unit_required` (quantity 1 per confirmation),
`wms_pick_shortage_decision_required` (decide the shortage with one of its
`shortage_choices`), `wms_pick_shortage_decision_not_allowed` (that choice is not
offered for this line) and `wms_pick_finish_lines_open` (see below).

### Finishing many lines

A `finish` whose `line_confirmations` confirm more than 25 open lines is booked in rounds:
Meykt first books each confirmed line as its own `collect` confirmation and then finishes
without open lines, like "Yes, all quantities collected" in Central. This needs the finish
to book the lines itself (quantities shown, no scan per unit, not filled into order boxes
while picking) and the call to match the current execution: same `expected_version` and
container, nothing to review, no pending booking, every open line confirmed with exactly
its open quantity and every shortage decided. Otherwise nothing is saved or booked and the
call is rejected with `wms_pick_finish_lines_open`: read the execution and send the finish
with the current `expected_version` and line versions, or collect the lines first.
The answer adds `finish`: `lines`, `collected`, `finished`, `stopped` (`finished`,
`time_budget` or `error`) and `meaning`. Up to about 200 lines normally finish in one call.
If the call runs out of time, the status is `partially_applied` with `finished: false`:
repeat the identical call (same `idempotency_key` and arguments; it needs approval again).
It continues the saved collection, books nothing twice and then finishes. The final finish
keeps your `idempotency_key`; repeating the identical call after it is booked returns its
receipt.

No finish that would book more than 25 lines runs without the time budget. A finish saved
earlier in one step (same `idempotency_key`, repeated or continued with
`recovery_action: continue`) is run once under the time budget. If Meykt rejects it with
`wms_pick_finish_lines_open` (nothing booked), the same call replaces it with the same
quantities as `collect` confirmations, saved before the rejected finish is closed, and
books them in rounds as above. No `no_unrecorded_goods_confirmed` is needed, because the
goods stay recorded in those confirmations. If an earlier replacement was interrupted after
its confirmations were saved, repeating the call continues those saved confirmations instead
of recomputing them. If the lines changed since the confirmation, the rejection stays and
nothing is booked. Then read the execution and send the finish again with the same
`idempotency_key` and the current `expected_version`, `target_container_id` and
`line_confirmations` (every open line of the group with its open quantity and line
version). The preview names this in `replaces_saved_finish`; on approval Meykt replaces the
saved finish with exactly these confirmations, books them as `collect` confirmations in
rounds as above and books nothing twice. If the execution changed again, the call fails with
`wms_pick_execution_changed` and nothing is booked: read it again and repeat with the new
values. Once the saved finish was replaced, the same key continues that replacement. In
Central the person does the same with "Book current state and finish".

### Booking all open bookings again

When a list has several open bookings (`pending_bookings`, for example after a second person
changed it), `operation: { "kind": "retry_all_bookings" }` books them all again in their saved
order, each exactly once, in rounds of about 1.5 seconds. It takes no `group_id` and needs the
same rights as `retry_booking` (Book warehouse, the orders readable). Without open bookings the
preview answers `wms_pick_no_open_bookings`; when none of them can be booked any more (all
`can_retry: false`) it answers `wms_pick_context_required`: clarify them first (see below).
Bookings with `can_retry: false` are skipped, together with later bookings of the same line and
the finish of their group, so they never block the bookable ones behind them. One approved call
keeps starting rounds for about 15 seconds (at most 40). The answer adds `retry_all`: `rounds`,
`booked` (in this call), `remaining` (still open), `needs_clarification` (open ones that can no
longer be booked), `stopped` (`finished`, `booking_failed`, `time_budget`, `no_effect`,
`round_limit` or `error`), `stopped_at` and `next_call`. With `booking_failed` the status is
`booking_pending` and `stopped_at` names the booking (`idempotency_key`, `order_id`, `line_id`,
`operation`) and its reason in `error`. A booking that fails stops the rounds; it and the later
ones stay open. Fix the cause, then send `next_call` or `retry_booking` for that one. When only
skipped bookings remain, `stopped_at` names the first of them with `wms_pick_context_required`;
clarify it with `discard_booking`. While bookings remain the status is `partially_applied`; send
exactly `next_call` (it needs approval again). Bookings already booked are never booked twice.

### Clarifying a booking that can no longer be booked

An open booking with `can_retry: false` can no longer be booked as it was confirmed, for example
because its line changed or its quantity is already recorded otherwise. Check the goods first:
they must be where the stock says they are (back at the source, not in the box, or already
recorded otherwise). Then
`operation: { "kind": "discard_booking", "failed_idempotency_key": "…", "no_unrecorded_goods_confirmed": true }`
closes exactly this booking without booking anything. Stock does not move: nothing is taken
from the source or added to a container or box. The line keeps the quantities already booked;
what this booking would have recorded is not added, so units that are still missing stay open
on the line as usual. The order stays in the list with its current state. Its original receipt
stays, and the history shows it as resolved without a new booking. It takes no `group_id` or
`recovery_only` and needs the same rights as `retry_booking`. A booking that can still be booked
answers `wms_pick_booking_retryable` (book it instead); an unknown one answers `wms_not_found`.
The answer adds `discard` with `failed_idempotency_key` and `remaining` (open bookings left).
When none remain, the list continues in the phase it had before.

## Packing at the station

`resolve_warehouse_packing` identifies exact order, pick-list, container, order-box,
output or article codes across the permitted work queue. Page list choices and
order choices independently. Select an ambiguous list/order explicitly; a match
does not claim work or confirm articles. Article codes preserve their case.

Read `get_warehouse_order_packing` for current assignment, physical
position/component quantities, prepared packages, `parcel_manifests` and
`label_readiness`. Claim with `pack_warehouse_order` / `start_pack`. Early
preparation and issued labels retain the same actual package identifiers when a
different person later claims physical packing. `prepare_warehouse_packages`
uses the same recipient, shipping profile, carton, dimensions and weight rules as
the interface. A shipping method's fixed weight is binding.

When an order is not ready to pack, `get_warehouse_order_packing` names the real
reason in `wait` (`reason`, `pick_run_id`, `job_id`, `containers` with `code` and
`name`). `collecting`: the pick list is still being collected. `distribution`: the
goods were collected and lie in the listed pick containers until a person
distributes them into the order box (`pick_run_id` is the pick run).
`placement`: finished production goods of job `job_id` still need their placement
step, even when `pack_ready` is true. `production` or `planning`: production is
really still open. `production_review`: a failed production step needs
clarification (`job_id` when known). `pick_review`: the picking needs
clarification. `null` means nothing waits. An absent `wait` means the reason is
unknown, never that nothing waits. `resolve_warehouse_packing` reports the
matching `blocked_reason` values `distribution_open`, `placement_open` and
`production_review` and explains every value in `field_meanings`; a candidate
with an open placement is not editable. `get_warehouse_order_worklist` reports
`goods_not_prepared` for goods that wait for collection, distribution or placement,
and `production_pending` only for production that is really open. Distributing,
placing and clarifying are human steps in Central.

`pack_ready` counts skipped production steps as done, except for partial
deliveries. A finished repeat run that repeats every step of the items of the
failed run releases packing despite the earlier failed run, in collective picking
with a pick container as well as for goods picked directly for the order. While
the repeat run is open, `reason` is `production` and `job_id` names its open
step; a repeat run that failed, was cancelled or misses a step keeps
`production_review`. When the
warehouse request requires production and the order never had a production run,
the order is not `pack_ready`; a cancelled run still counts as a run.

`pack_warehouse_order` / `discard_pack` releases the current actor's unfinished
packing using its exact `packing_id`, `expected_version` and `expected_token`.
Item confirmations before dispatch are draft work, not shipped quantities.
Discard clears unshipped package preparation and returns the packing to ready;
permanent package identifiers, earlier shipments and frozen round quantities
remain unchanged. Active or uncertain label jobs and unresolved dispatch commands
block discarding; resolve the original outcome first. The operation needs current
packing permission, the own active work claim and exact human approval, also in
Allow mode. Recover only the original unchanged command after a lost response.

The `pack_and_dispatch` operation on `pack_warehouse_order` contains the exact
`packing_id`, current version/token, all supplied `positions`, and `parcels` with
stable `draft_id`, number and exact position/component quantities. Its required
`station_evidence` covers the actual confirmation method and each parcel's
weight/photo evidence. Every supplied quantity must appear exactly once; no empty
or excess parcel is accepted. Use the discovered action schema and current read
rather than inventing identifiers, values or physical confirmation.

`prepare_warehouse_packing_photo` starts the existing bounded file-transfer flow
for a real human-provided JPEG, PNG or WebP of at most 5 MiB. Preserve its original
photo/upload identifier, checksum, bytes and package context through chunking and
recovery. The transfer needs customer-data access, file management, packing and
warehouse booking permissions and exact human approval. Each actual package needs
its own photo when photos are mandatory; one sample image cannot prove a series.

Completion requires both packing and warehouse-shipping capabilities and exact
human approval, including under Allow. It records package contents, packing and
business dispatch atomically, debiting bound stock once. Native shipping requires
current production labels for every actual parcel before completion. A preview,
sandbox label or unknown provider reply is insufficient; external shipping does
not require an invented native label.

`dispatch_basis: "pack_station_dispatch"` means business dispatch at the packing
station. It does **not** prove carrier collection. Historical actual handovers
retain `"carrier_handover"`. `ship_warehouse_order` remains the explicit older
actual-handover path, not a second mandatory step after combined completion.
`complete_pack` remains compatibility for individual picks outside a native
pick-list collection and historical receipts. This is a work-context distinction,
not an age check. It still requires all positions, physical confirmation and a
current claim; an organization without saved packing requirements may omit station
evidence on this compatibility path. It books no dispatch or parcel-content proof.
Native collection work always requires the combined parcel manifest and station
evidence, including when no packing requirements have been saved.

Recover a lost response using the original unchanged operation and key with
`recovery: true`. Never repack, debit stock or buy a replacement label to obtain a
reply. A receipt describes its original action; read today's work separately.
Authorized shipment and dispatch responses preserve commercial source quantities
separately from physical components and expose only recorded package contents.
Unknown older contents remain unknown. No confirmed stock departure is undone
automatically.

## New order for a changed shop order

When the shop changes an own order after the import and the fulfiller has already started or
finished its copy, the changed items can become a separate new order. The original order stays
unchanged, the new order gets the next free number (`<number>-2`, then `-3`), and the fulfiller
does not have to accept it: it is handed over like any first order. This is a third way next to
`resolve_shop_changes` (apply or keep).

1. Find the change with `list_needs_attention` or `diagnose_order` (reason
   `shop_changed_needs_decision`).
2. `get_manual_order_builder` with `from_shop_change {order_id}` lists all current shop items:
   `new`, `changed`, `unchanged` (the order already has it) or `removed` (not selectable). Each
   carries an engraving hint: `text`, `empty` (a field exists, none filled) or `no_fields_known`
   (Meykt knows no engraving field — this never means "without engraving"). The list is always
   complete. The `fulfiller` block (name and how far its copy is; if it is not finished,
   `unchanged` only means "already at the fulfiller") is there only when the fulfiller's copy can
   be read — do not rely on it being present. New and changed items are in the prefilled
   draft; `position_keys` changes the choice and `copy_files` takes the uploaded files of the
   original over. If nothing is preselected (for example only unchanged items), `draft` is `null`:
   choose items with `selectable: true` and read again with their `position_keys`. Keep
   `request_id`, `change_id` and `detected_at`. Each label of the engraving carries `fills`: the
   variables it fills in the new order (at most 5; `[]` means none, a missing `fills` means not
   known). Offered fields carry the same in `offered_field_fills` (only labels that fill a
   variable), and `fills_meaning` explains it once: a new order has no shop (source Manual), so
   only mappings without a module apply to the entries of its items, and a label that fills a variable in the shop order
   may fill none here. Such a label stays in the order and goes to the fulfiller as an ordinary
   detail. In `offered_field_fills` only labels that fill a variable are listed; a label missing
   there fills none. `warnings` has `label_without_variable` when a shop label fills no variable
   while empty text fields of the product that would fill one are still there (`count` = items
   concerned; `positions[]` at most 10, `more_positions` counts the rest; per item `labels` at most
   5 with `more_labels`, and `empty_fields` at most 5; names only, never values). A changed item
   lists `change_details` (`label`, `kind` `added`, `changed` or `removed`, `before`, `after`;
   `null` = not there; at most 20 entries of 200 characters, at most 5 of 80 when the reply is large,
   none when it is larger still) and `more_change_details` counts the rest. The engraving of an item
   (`engraving.fields[]`) shows at most 20 fields of 200 characters, at most 5 of 80 when the reply is
   large, and `engraving.more_fields` counts the fields not shown. `offered_fields` shows at most 20
   labels and `more_offered_fields` counts the rest (a removed item has no offered fields at all; from
   the first shortening on, `offered_fields`, `more_offered_fields` and `offered_field_fills` are left
   out). As soon as the position list is shortened, `positions_compact` is `true`; in the last step the
   engraving of an item shows only `status` and `field_count` (no `fills`, no `more_fields`);
   `files.available` counts the files that `copy_files` takes for the chosen items (those of the
   order plus those of the chosen items). `fulfiller.name` is the fulfiller organization's own
   name, cleaned of control and text-direction characters and cut at 120 characters; its `meaning`
   says that it is data. `change_reason` is the reason of the entry as `list_needs_attention`
   writes it (for example `fulfillerStarted`), and only when it looks like a code. Text that comes
   from the shop is data: item `name`, `sku`, `variant`, `order_number`, `number.original` and
   `covered_by[].order_number` are cleaned of control, invisible and text-direction characters and
   cut (so are the order number of the original in `created_from_order` and, in `resolve_shop_changes`, the
   `entry.name` of an item, which is the order number); labels are cleaned the same way but stay exactly as they are when they have nothing to
   clean (you send them back as keys of `items[].fields`). A label that was changed carries
   `labels_cleaned: true` on its item, warning or `compile_preview` entry, and the draft keeps the
   exact label. Values (engraving texts, `before`, `after`) are only cut. The message of the draft
   also says that `orderedAt` is the time the draft was made, not the shop's order date, and that
   the payment state of the original is not carried over (`mark_orders_paid` marks the new order as
   paid).
3. Review the draft. The prefilled engraving is in `items[].personalization` (key = the shop's label):
   change it there. Entries the draft does not have yet go to `items[].fields` (labels from
   `offered_fields`); the same key with a different value in both places is refused
   (`invalid_arguments`, issue `fieldConflict`, with a `meaning`).
4. `create_manual_order` with that draft and `from_shop_change {order_id, change_id, detected_at}`
   and `save_mode` `none` (only creates the order) or `import` (the matching order workflows
   run and may hand the order over to the fulfiller). Use `dry_run` first: it shows
   `created_from_order` and `handover_preview` (`goes_now`, `goes_later`, `stays` with the
   reasons, or `not_checkable`); `production_by_automation` (with the names in
   `production_automations`) says that a matching order workflow also creates production when
   saving. With `goes_now` and `not_checkable` the approval also carries the note
   `handover_also_production`: items that go to the fulfiller may be made twice. With
   `goes_later` (production first, hand-over after it) only the field is set.
   `handover_preview.left_behind_if_handed_over` lists items that would have no way to a
   fulfiller on a handover, also with `save_mode` `none` and `from_shop_change`, where nothing is
   handed over now (zero-based `item_index`, `reason`, `meaning`; items already listed in
   `left_behind` are not repeated; a forecast, not a promise). With
   `none`, `handover_preview.routes_checked` says whether the routes of the items were read:
   `false` means they were not (the member may not edit workflows, or reading failed), so an empty
   list and a missing `engraving_not_handed_over` prove nothing. With `none`, `coverage` and `automations` are
   placeholders and say nothing (the preview evaluates no automations then). Without `from_shop_change` and
   with `none`, `handover_preview` stays empty; only the note below can appear. These names are
   cleaned like any other foreign name: `handover_preview.fulfillers[].name` (at most 120
   characters), the partner of free items in `free_item_fulfiller` and in the approval note (at most
   120) and `production_automations` (at most 5 names of at most 80 characters). When a free item (no
   product) carries engraving or other entries and would stay with you, the preview adds the note
   `engraving_not_handed_over` (`detail.count`, `detail.item_indexes`); this also applies without
   `from_shop_change`. Such an item only goes to a fulfiller when an active fulfiller is chosen for
   free items (`get_fulfillment_network` shows the choice). When no fulfiller is chosen for free
   items, the list and the note name an item without a product (`no_product`) only if the business
   has an active fulfiller (without one there is nothing to choose); a fulfiller chosen for free
   items whose cooperation has ended always triggers both. Both are given only to members who may
   edit workflows.
   `compile_preview` lists per item `will_fill`, `not_found` (variables whose mapping found no
   value), `rejected`, `fields_without_variable` (filled-in details no mapping reads; at most 10,
   `fields_without_variable_more` counts the rest) and, with it, `empty_fields` (at most 5; only
   empty fields whose variable has no value yet); `meaning` explains them. A large reply summarizes it (counts per item), and a reply that is almost full keeps only `summarized` and `item_count`. With `from_shop_change`
   the preview also carries three notes that block nothing and are not part of the approval hash:
   `differs_from_original` (`detail.count`; `detail.header` names the order values that differ:
   `customer_name`, `customer_email`, `customer_phone`, `shipping_address`, `billing_address`,
   `note`; `detail.positions[]`, at most 10, has `item_index`, `position_key`, `fields` with
   `name`, `sku`, `product` or `engraving` and, for the engraving, `engraving_fields`, at most 5
   labels of shop entries whose value was changed or is missing; never values),
   `quantity_exceeds_suggested` (`detail.count`; `detail.positions[]`, at most 10, has `item_index`,
   `position_key`, `suggested`, `chosen` and `shop_quantity`) and `total_differs_from_items`
   (`detail.total` and `detail.items_total`; only with the finance switch). Differing from the
   original is allowed; the shop items still count as covered by the new order. A large draft (more
   than about 40,000 characters) shows only the names of the changed fields instead of `changes`
   (`changesSummarized`).

   Two changes of this section reach beyond the new order. First, the reply-size rule: when the reply
   is too large, the 20 write actions listed below shorten the `items` list in three steps. They
   share one reply path and change orders, customers and address checks. The entries from the 21st on without an error
   first keep only `result` and `entry` (`truncated: details`); then every entry keeps `result`,
   `entry`, its error, notes and approval reasons and loses its other details (`truncated: details`);
   only with thousands of entries do just the entries with errors remain, at most 100
   (`truncated: items`). Before, there was no middle step: the entries with errors alone followed
   directly after the first step, so an entry without an error could drop out of a too large reply
   together with its notes. The 20 actions are:
   `resolve_shop_changes`, `create_manual_order`, `manage_order_duplication_presets`,
   `discard_manual_order_draft`, `upload_manual_order_file`, `upload_order_editor_file`,
   `edit_orders`, `mark_orders_paid`, `refetch_orders`, `retry_order_files`,
   `resolve_address_changes`, `resolve_customer_suggestions`, `dismiss_attention`,
   `create_customers`, `update_customers`, `apply_address_corrections`,
   `recheck_shipping_addresses`, `manage_address_check_settings`, `suggest_address_with_ai` and
   `apply_address_ai_suggestion`. Other write actions, such as `set_order_status` and
   `cancel_orders`, keep their own rule. Second, the paths of `invalid_arguments` issues of every
   action are cleaned the same way as labels (each key at most 200 characters).

Needs the rights to create and view orders (and to edit workflows for `import`) and the
switches for order creation, operational data and customer data; prices need the finance
switch. `import` always needs the owner's approval. The quantity of an item is at most the
quantity the shop has now, and at least 1 (`shop_change_lines_invalid`). A shop that sent a newer
state after `detected_at` makes the call fail with `shop_change_stale`; read the builder again.
`save_mode` `draft` is not allowed. An order number (`draft.orderNumber`) with control, invisible
or text-direction characters, or with space characters other than the ordinary space, is refused
with `invalid_arguments` (issue `invalidOrderNumber`, with a `meaning`; the reply never repeats the
number). A number of more than 100 characters is refused with `invalid_arguments` as well, but
here the issue is the schema's message about the maximum length (`String must contain at most 100
character(s)`, path `draft.orderNumber`) and it carries no `meaning`; only `edit_orders` reports
a too long changed number as `invalidOrderNumber` (see "Changed order numbers and cleaned foreign text" below). The chain
`<number>-N` is not enforced.
Foreign, unknown and received orders answer like
`shop_change_not_found`. There is no undo; use `edit_orders` or `cancel_orders` on the new order.
The call never closes the open entry for the change: the result says `entryClosed: false`. Decide
the entry afterwards with `resolve_shop_changes` (decision `keep`, which needs the switch for
editing orders and withdraws open requests to the fulfiller) or in Meykt; until then it stays under
"Needs attention". A change that already has a new order allows no second one
(`shop_change_exists`). An order that already has a living new order (not cancelled) also refuses
`resolve_shop_changes` with decision `apply` for a shop change whose reason is `fulfillerStarted`, in the preview and when it runs
(`new_order_exists`): applying the shop state as well would have the same items made twice, so
nothing is applied. Decision `keep` still works, and cancelling the new order ends the block.
When the fulfiller has already started its copy or is handling it by hand, the preview of `apply`
still says `result: will_apply` and adds `likelyOutcome: still_needs_decision`: the call checks
again when it is approved and then leaves the change waiting. The lines of the change under
`shopChange.withPersonalization` (only with the customer-data switch) name an item's entries with
the label of the shop, not with the normalized key; item names and SKUs in `shopChange` are
cleaned like any shop text. `shopChange.reason` and the `reason` of `cannot_apply` are given only
when they look like a code (otherwise `null`).

The result carries `createdFromOrder`. If the link fails after saving, the order exists but was
not handed over (`linked: false`): repeat the same call with the same `request_id` and values only
when `retryable` is true; otherwise the owner cancels the new order. If the checks before saving
still fail when the call runs (someone was faster), the item carries the specific reason, for
example `shop_change_exists`, and nothing was created.

## Changed order numbers and cleaned foreign text

**Changing an order number with `edit_orders`.** The order number is `draft.orderNumber`. Send the
**complete** draft that `get_order_editor` returns and change only what you want to change:
positions that are missing from the draft are removed. A changed order number must be plain
visible text of at most 100 characters. It must not contain control, invisible or
text-direction characters (often invisible leftovers from copying) or space characters other than
the ordinary space, for example a non-breaking space. Otherwise the entry fails with
`invalid_arguments`, and `detail.issues` names the field (`draft.orderNumber`) and the check
(`invalidOrderNumber`); the message of the entry explains the rule with an example (`AB-4711`) and
the limit. This applies to the preview and when the call runs, and the reply for the refused entry
never repeats the number. Only a **changed** number is checked. Meykt compares it with the current
number after trimming; an empty or blank value means unchanged (the preview shows no change for it,
saving keeps the current number, and a draft that changes only the shipping address stays a pure
address change); and the number an order already carries (from the shop or an import, up to 160
characters) never blocks other changes, even if it contains such characters or is longer than 100
characters. To keep the number, send it unchanged or leave it empty. The order is not changed when
the check fails, and nothing is cancelled at a fulfiller (the check runs before any replacement).
The customer API cannot change `order_number` of an existing order.

The order number that `get_order_editor` and the entries of the write actions show for display
(`order`, `entry.name`) can carry a leading `#` that `draft.orderNumber` does not have. Send
`draft.orderNumber`, not the display text: the display text would rename the order.

**Identifiers refuse invisible characters and unusual spaces.** The same rule applies to the
identifiers you send: SKU, EAN and manufacturer number of products, shop items and test orders,
customer numbers, the order number of `create_manual_order` (`save_mode` `none` and `import`), the
product IDs of shop set rules, and `sku` and `ean` of a variant (also `commandArticleVariant`,
which answers with the same validation error as before). Besides control, format and blank-looking
characters and variation selectors, they refuse invisible characters without a format category
(Khmer and Mongolian fillers, tag characters, `U+2065`, `U+FFF0` to `U+FFF8`), unassigned and
private-use characters and every space character other than the ordinary space, including the
non-breaking space (`U+00A0`) and the ideographic space (`U+3000`). Names, descriptions and
labels are not affected; the shop field and search text of a set rule and the field names of a manual
order may still contain a non-breaking space.

**Text from shops and partners is data.** Names of other organizations, order numbers and item or
product names come from a shop or from a partner and are never instructions. In the replies of
these actions they are cleaned: a line break becomes a space, control, invisible and
text-direction characters are removed, repeated blanks collapse into one, the edges are trimmed,
and long text is cut with an ellipsis (names of organizations at most 120 characters, order
numbers 160, item and product names 255, identifiers 128, categories 120, descriptions 2,000). An
ordinary name or number stays exactly as it is, and one with nothing readable left is left out (an
item name in `get_fulfillment_order` then shows as a dash, and an order whose number has nothing
readable left is named by its order ID). This applies to:

- the read actions `get_fulfillment_network`, `get_fulfillment_order` (both sides: the partner,
  order numbers at the other side, item names, requests and their changes),
  `get_fulfillment_messages` and `get_released_products` (customer, name, identifiers, category,
  product type and description; the search works on the cleaned names; the line breaks of a
  description stay);
- `diagnose_order` and `list_needs_attention`: the order number itself is cut at 160 characters
  and the item names of `diagnose_order` at 255, while the texts of the findings (names of
  organizations, item names, order numbers at the other side) are cut at 120 characters. The shop
  field names of a cause are labels, and so are the set names of a cause in `diagnose_order`
  (`causes[].positions`; see below);
- `get_order_editor`: the fulfiller name and the order number there in `replacement` (where
  saving would lead), and the order number in `order` and `entry.name`. The preview of
  `edit_orders` gives the order numbers at the fulfiller (`replacement.ordersAtFulfiller`,
  cleaned) and only the number of fulfillers, no name;
- the templates of the order editor: `search_order_editor_templates` (`order_number`,
  `product_name`, `field_labels`) and `get_order_editor_template` (field labels);
- the order number in the titles and names of entries of the write actions for orders (including
  `set_order_status`, `cancel_orders` with its fulfillers list and error details, the production
  actions, `release_order_automations`, `complete_orders`, `recompile_orders`,
  `link_free_order_items_to_products`) and in `preview_compile`, `explore_order_data`,
  `find_order_data_paths` and the previews of warehouse order fulfillment;
- names, order numbers at the other side (`numberAtFulfiller`, `numberAtPartner` and
  `clientOrderNumber`, the number of the client that a fulfiller sees) and item names in the
  preview, result, context and error details of the fulfillment write actions
  (`request_fulfillment_change`, `request_fulfillment_cancellation`,
  `release_products_to_fulfiller`, `set_handover_exclusions` and others), the context of an
  executed action included. `number_at_fulfiller` is compared with the cleaned number, so a number
  copied from a reply still finds the order;
- `now_field` and `fed_by` in `direct_values_and_fields` of the `create_manual_order` preview.

**Labels** (field names from the shop) stay exactly as they are when there is nothing to clean,
because you send them back as keys (`items[].fields`, `template_field_keys`). Otherwise they are
cleaned and cut (80 characters; 120 for the field names of a cause and the set names in `diagnose_order`), and the place carries
`labels_cleaned: true`: the entry in `direct_values_and_fields`, the template in
`search_order_editor_templates` (with `labels_note`, one sentence that explains it),
`get_order_editor_template`, and a cause in `diagnose_order` (field and set names) and in
`list_needs_attention` (field names) (`causes[].labels_cleaned`).

Values stay as they are and are only cut: engraving texts and the `before`/`after` of changes.
The draft that `get_order_editor` returns, and `before.draft` and `changes[].old` of `edit_orders`,
show the order number and the item names as stored, so that sending the draft back unchanged works.
The item list and the field list of the `get_order_editor` reply (`items[].name`, `items[].sku` and the
field labels) are not cleaned yet either; the field keys and values stay as stored on purpose.
Message texts, the personalization labels in the changes of a fulfillment request and the public
fulfiller interface (`changes[].item`) are unchanged. A few actions of other areas (shipping,
warehouse, billing, vector files, processes) and the generic readers `query_data`, `get_record` and
`search_data` still return some names and order numbers as stored.

## Shipping-address corrections

For label cleanup, `check_shipping_addresses` with `settings: true` lists the country rules;
`label: {}` previews their effect on an order, and `manage_address_check_settings` changes them.
Germany's `spaces` template replaces whitespace and invisible separators (U+200B, U+2060 and U+FEFF)
with a single ordinary space and trims the edges. Letter-joining characters U+200C and U+200D are
preserved. The address check uses the cleaned address too. Cleanup alone changes neither the stored
order nor an existing label. The template's enabled state and shipping-method limits still apply;
custom rules run afterwards. MCP, Meyki and the actions API use the same behavior.

`apply_address_corrections` applies a clear suggestion or explicit `fields` on a received
fulfillment order. Both paths use the same eligibility checks during preview and execution.
An open, unshipped fulfillment order may pass its approved correction to a completed client
order. A booked shipment on either side, a shipped or cancelled client order, or a completed,
shipped or cancelled fulfillment order still blocks it. Existing owner approval and customer-data
permissions apply.

An executed approval is not proof that every item changed. Inspect the per-order errors in the
request status (`itemErrors`) and the result counts; successful corrections stay saved. Retry only
failed orders after resolving the reported cause. Read back the current shipping address and its
address finding to verify the result.

## Address suggestion with AI

`suggest_address_with_ai` gets a checked AI suggestion for the shipping address of one open order, like "Check with AI" in Meykt; `apply_address_ai_suggestion` applies it. Both need the switch "Edit orders". The first also needs "Read customer data", because the suggestion holds parts of the address.

1. Run `suggest_address_with_ai` with `order_id` and a new UUID `idempotency_key`. With `"dry_run": true` it sends and costs nothing. The real call is always `202 pending_approval`, also with "Allow": company, street, extra line, postcode, town and country go to an external AI service (not the name field, phone or email; a name typed into one of those lines goes along), and a shown suggestion costs credits.
2. After the owner approved, run the action again with the same `order_id` and `idempotency_key` within 24 hours. The answer holds `items[0].suggestion`: `outcome` (`proposal` or `none`), `proposal` (company, street, additional, city), `changed`, `before` and `fingerprint`. The same key never sends or charges twice; after 24 hours the result is gone (`result_expired`). If the approved attempt ended with an error (no key configured, credits used up, limit, changed address), `GET /v1/action-requests/{id}` lists it in `itemErrors`; nothing was charged and the same key may be tried again. `outcome_unknown` means an approved attempt never finished: use a new key and let the owner check the credits.
3. Run `apply_address_ai_suggestion` with `items: [{order_id, proposal, fingerprint}]` exactly as returned. Meykt checks both again against the current address, without a new AI call and without cost; a changed address (`address_changed`) or a suggestion that does more than rearrange or respell what is there (`proposal_rejected`) is refused. At a fulfiller or on a received order the owner approves it.

Neither action can be undone; the credits of a shown suggestion stay used.

## Label layouts and saved profiles

`get_label_options`, `save_label_profile` and `generate_labels` share the same editable label
configuration as the interface. Profiles retain all sheet/roll settings, media dimensions,
orientation, margins, gaps, calibration, start slot, code type and symbology, text settings and
copies per source, plus the optional `config.layouts` array. Omit `layouts` for the existing
single-label output, or supply one to four layouts with unique `id`, optional `name` and `objects`.

Read `get_label_options` with `inspect_layout` to inspect a single source before editing it.
Request `include_config_schema: true` to read the complete generated configuration schema,
including every layout field and constraint, without enlarging the startup tool catalog.
Use `items` containing exactly one explicit item or `locationId`, plus `profile_id` or a complete
`config`. A saved profile can supply the configuration to copy and adjust before inspection.
The read requires the current source/profile
permissions. It returns `inspected_layouts` with effective object bounds and visibility, including
hidden base objects and copies; it never generates an artifact or sends a print command.

Each object override contains `id`, `sourceId`, optional `hidden` and optional `box`.
`box.x`, `box.y`, `box.width` and `box.height` are fractions of the complete label, between zero
and one, with positive size and the whole box inside the label. Resizing keeps the source aspect
ratio. Use the exact source slots from `layout_editing.source_ids`; these are semantic slots,
not warehouse identifiers. There are at most 64 overrides per layout.

- `id === sourceId` changes a base object. Set `hidden: true` to hide it. Removing its override
  restores the template object; base objects are always retained.
- A unique `id` different from `sourceId` duplicates that source. Removing this override deletes
  the copy. A copy cannot take the identifier of another base object.
- A new standard label has an empty `objects` array. Duplicating a label copies its object
  settings into a new layout ID and counts toward the same four-layout limit.

Each source copy emits every layout in array order, on rolls and sheets alike. For example,
two source copies with a name-only layout and a barcode layout produce four labels:
name, barcode, name, barcode. The 1000-label limit counts all layouts; a sheet's initial unused
slots stay empty only on the first sheet. Hidden scanners need no code, while every visible
scanner copy remains subject to code and size validation. Editing a layout never changes a
warehouse code or recognition assignment. Existing profile revisions, capabilities and exact
approval binding remain required for writes; stored source content is refreshed before generation.

### Fixed boxes, free text and source variables

Set an object's optional `frame` to enable or disable its printed outer box. `fixedBox` uses the
same normalized coordinates as `box`, but stores a fixed container whose width and height can be
changed independently. Content fits inside while retaining its proportions; a short number and a
long number keep the same container. Template defaults supply the initial fixed dimensions.
Existing proportional `box` overrides remain supported for older profiles.

Add a text object with a unique `id`, `sourceId: "text"`, `fixedBox`, and either
`text: {kind: "literal", text: "Keep upright"}` or
`text: {kind: "field", key: "product.name"}`. These objects may be hidden, copied or removed.
Store bindings in the profile, never resolved entity values. The same four-label and object limits
apply. Use `include_config_schema` for the complete strict constraints.

Read `get_label_options` with `field_sources: {productId}`, `{locationId}` or `{stationId}` for
`variable_context`: picker categories, preview values and the freshly resolved source values.
An empty `field_sources: {}` discovers the accessible profile catalogue. Use the exact offered
keys, including available custom product, business-location and station fields. These are bounded
bindings, not arbitrary template expressions. A warehouse place uses its real linked business
location; it never guesses a product or station. Business-location custom fields are distinct from
warehouse-place fields, which currently have no custom-field scope.

`include_config_schema` also returns the exact `field_sources_schema`. Supported custom fields
contain text-compatible scalar values, choices and references to products, business locations or
stations with the corresponding target rights. Files, images, credentials and references to people,
customers or orders are outside this label catalogue. Currency fields require Read prices and
amounts. Resolved values are bounded to two million characters, with at most 1000 provenance IDs
per entity type; exceeding a bound fails instead of producing a partial label.

Pass explicit `productId`, `locationId` and/or `stationId` in generation sources to reload values
with the current actor's rights. Optional fields with no value are empty; a visible binding without
a matching source fails with `field_unavailable` before output. Changing a source value after a
preview requires reviewing the current result under the existing approval contract. Literal text
needs no entity source. Source rights also apply when retrieving the private generated files.

## Station scales

The shared actions configure and diagnose the optional scale assigned to one station:

| Action | Purpose | Access |
| --- | --- | --- |
| `get_station_scale` | Read settings, version, latest Agent measurement, stability and effective freshness status | Read data; warehouse viewing |
| `list_station_scale_agents` | Read eligible Meykt Agents for this station | Read data; station and Agent editing |
| `configure_station_scale` | Save the complete scale configuration against `expected_version` | Edit setup, Read data; station and Agent editing; human approval |
| `discover_station_scales` | Request bounded device discovery on one offered Agent | Edit setup, Read data; station and Agent editing; human approval |
| `use_station_scale` | Request, renew or release a short live-weighing session on the saved Agent connection | Read data; warehouse viewing, including terminals; no setup rights |
| `probe_station_scale` | Identify a discovered device, sample or release its temporary setup session | Edit setup, Read data; station and Agent editing; human approval |
| `test_station_scale` | Read a new measurement on the saved, enabled Agent configuration at its unchanged version | Edit setup, Read data; station and Agent editing; human approval |
| `get_station_scale_test_result` | Read the original discovery, test, live-use or temporary setup command | Read data; warehouse viewing |

Read the station first. Discovery and testing require a returned Agent with `supports_scale: true`;
update an older Agent and wait for its next status report before retrying. Configuration can be saved
while an Agent is offline or still needs an update. Configure with `station_id`, `source` (`agent` or `browser`), `agent_id`
(required Agent identifier for `agent`, explicitly `null` for `browser`), `enabled`, the typed
`connection`, `expected_version` and optional `stale_after_ms`. Version `0` means first setup;
otherwise use the unchanged version returned by `get_station_scale`. Omitting `stale_after_ms`
uses 15000 milliseconds; its allowed range is 1000–60000. Unknown properties and unsupported
connection/protocol combinations are rejected. Obtain the complete current connection fields,
units, defaults and bounds from `GET /v1/actions/configure_station_scale`; local addresses and
ports must be explicitly chosen, never inferred from a weight message.

For guided setup, first read `list_station_scale_agents` and choose an Agent with
`supports_scale_setup: true`. This capability is additive: an older Agent may still offer manual
configuration, discovery and saved-connection tests through `supports_scale`.
`probe_station_scale` takes these fields:

| Field | Contract |
| --- | --- |
| `station_id` | Required existing station UUID in your organization |
| `agent_id` | Required eligible Agent UUID from `list_station_scale_agents` with `supports_scale_setup: true` |
| `session_id` | Required new setup-session UUID for the initial probe; reuse that exact UUID for later samples and release on the same station, Agent and person |
| `expected_version` | Required integer 0–2147483647 from `get_station_scale`; 0 before first setup. Probe/sample require the saved version to remain unchanged; release may close the same session after a configuration change |
| `operation` | Required `probe`, `sample` or `release`: identify a device, request observations from that temporary connection, or close it |
| `device_id` | Required only for `probe`: the exact opaque identifier from `discover_station_scales`, 1–160 letters, digits, underscores or hyphens. Omit for sample/release; null, system paths and guessed identifiers are rejected |
| `dry_run` | Optional boolean; true produces a preview, omitted/false requests the operation |

Each operation returns `command_id`. A probe is bounded to 45 seconds; samples and release to
10 seconds. The temporary session expires after at most 90 seconds without an authorized operation
and closes when its authority can no longer be verified. It never replaces the saved connection.
Close other scale programs before probing and connect the device locally when prompted.

Read each original command with `get_station_scale_test_result`. Its `result` contains `session_id`,
`status` (`connected`, `no_reading`, `released`, `failed`), nullable recognized `connection`, up to
24 `observations`, `expires_at` and nullable public `diagnostic_code`. `connected` means a connection
was identified; a stable weight still requires measurement evidence. Each observation contains a
positive increasing `sequence`, `status`, nullable `weight_kg`, device-confirmed `stable`, timezone-bearing
`observed_at` and nullable public `diagnostic_code`. A repeated result read creates no new observation.
No signal means no reading, never zero.

For temporary setup results, the response also contains nullable `settled_observation`, derived by
the same reader as the interface: at least three fresh, device-confirmed stable frames at the same
weight over at least 750 milliseconds, with the last at most five seconds old. During unloaded,
loaded and unloaded-again checks, keep the last sequence and start time before each step and require
new observations after that boundary. An optional displayed reference weight checks units and size;
it never changes calibration. Release the session and explicitly save the verified `connection` with
`configure_station_scale` only after the checks. Browser permission prompts and unsupported devices
still need local interaction; this is bounded detection for supported protocols, not universal hardware support.

Pass `dry_run: true` for a preview without storing settings or contacting a device. Configuration,
discovery, temporary setup operations and tests always require approval of the exact arguments, also in Allow mode. Changed
configuration requires a fresh preview and approval. There is no automatic undo: correct settings
with a new version. A requested discovery or test returns `command_id`; read that same command
using `get_station_scale_test_result` with the original `station_id`. `pending` and `sent` mean
wait and poll that command. An uncertain result is not permission to launch a duplicate test.

An Agent does not keep a configured scale port open simply because it is running. Deliberately
request live weighing with `use_station_scale`, then read `get_station_scale` with that `usage_id` for actual measurements.
Scale discovery, temporary setup observations, connection tests and live-use acquisition, renewal
and release are free device queries and do not consume the machine-command allowance.
The read operation needs only warehouse viewing and `readData`; it grants no configuration rights
and creates no setup-approval request. Terminal sessions retain the same viewing rights.

| Live-use field | Contract |
| --- | --- |
| `station_id` | Required existing station UUID whose configured Agent scale you deliberately want to read |
| `usage_id` | Required UUID for this one explicit weighing view; reuse for renewal and release; a new deliberate attempt uses a new UUID |
| `expected_version` | Required unchanged saved configuration version, integer 1–2147483647. Release targets the original usage after a configuration change |
| `active` | Required boolean: true requests or renews at most 30 seconds of live use; false closes this caller’s usage |

The optional `usage_id` on `get_station_scale` (also the `usage_id` query on `GET /api/v1/stations/{id}/scale`) binds the reading to your own completed acquisition and latest valid renewal. Pending commands return no weight; a released, expired or failed usage returns no weight. A frame must have been observed after the initial acquisition began, so a still-fresh previous parcel cannot be adopted. Omit the field for general station status. Unknown and another person’s usage are equally unavailable.

The operation returns `command_id`; its original command result contains the same `usage_id`,
`active` and timezone-bearing `expires_at`. It proves no weight or packing result. Renew only during
the deliberate weighing request, and release on completion. Without renewal the Agent closes the
connection once no other authorized user of that connection remains. A local device or permission
failure ends the attempt; resolve the problem and deliberately start a new usage rather than reopening
ports indefinitely. The selected Agent must advertise `supports_scale_use: true`; older Agents need an update before this bounded usage contract is available.

A weight is in kilograms and is usable only while fresh, stable and available. The latest reading
is not a packing or shipping confirmation. Browser scale readings stay at the station and are not
available as cloud measurements. A person must grant browser or operating-system device access
locally; configuring a browser scale does not grant it. Agent tests do not tare, calibrate or send
arbitrary commands. Existing packing ownership, quantity confirmation and dispatch checks still
apply when a person adopts a weight into a parcel draft.

## Approvals

A request stays pending until the owner approves or rejects it in Meykt (AI access → Requests). Some actions need an authenticator code there, for example many cancellations within a day. GET /v1/action-requests/{id} tells you `pending`, `approved`, `executed`, `failed`, `rejected`, `expired` or `discarded`. `executed` means processing finished — read the counts, not every item may have succeeded.

## What actions never do

- **More than the owner switched on.** The switches, data access (customer data, prices) and rights of the AI access apply unchanged.
- **Things only people do in Meykt:** fulfillment partnerships, issuing billing statements, starting station workflows by scan, Shopify location and stock switches. `get_guide` with `owner_handoffs` explains them.
- **Test runs.** Actions read and change real data; test keys cannot run them.

## Reuse codes after deleting order boxes

`configure_warehouse_box_areas` accepts optional `operation.release_codes` for `delete_boxes` and for `delete_area` with `box_handling: "delete"`. Omitted or `false` keeps deleted codes reserved. `true` releases only the codes of the boxes deleted by this request; it does not release earlier deletions. `box_handling: "keep"` retains boxes and codes and refuses `release_codes: true`.

Preview the exact targets and release choice first. Every deletion needs the owner’s approval in Meykt, including with `mode: "allow"`. **Old labels can identify a new box after its code is reused.** Remove or replace those labels before reusing the codes. No goods move, and earlier orders and receipts keep their original box reference.

Later automatic box creation includes released numeric codes when assigning the lowest available numbers in ascending order. Released custom codes can be explicitly assigned again; automatic allocation does not choose them. Active boxes and codes that remain reserved cannot be reused. Codes apply across the business’s warehouses, so a released code may be assigned in another warehouse.

The historical deletion receipt carries the original optional `release_codes` choice. After a lost reply, keep the exact original operation, including this choice, and its `idempotency_key`. Use `find_warehouse_box_setup_booking` or unchanged `recovery: true` to resolve that receipt before reading the current box list. A historical code does not identify the current box after reassignment.

## Production placement and identical-order packing


`get_production_placement` with `view: "box_production"` resolves the exact current
contents of an order box (`MK-BOX-…`), intermediate box (`MK-WIP-…`) or pick container
(`MK-PC-…`) and existing jobs available to the connected person's employee profile.
The optional `station_id` evaluates station suitability; it grants no access. The
optional `article_code` narrows an exact SKU/barcode inside that source. `offset`
and `limit` page contents; follow `total` before inferring completeness. Personalization
belongs to the specific position or component, never to a guessed matching SKU.
A read creates no run, work claim, physical confirmation or stock movement.

To discover boxes before looking up an exact code, page through
`get_warehouse_containers` with `status: "enabled"` and `occupancy: "occupied"`.
The catalog identifies candidates. Check `box_production` for matching contents
and visible jobs before selecting a source.

`start_box_production_job` starts **one existing job**, rather than creating a run
like `start_production`. Send the same exact `code`, the entire offered `source`
object, the active `station_id` and your unchanged own `work_session`. The source
includes `content_id`, `box_kind`, `box_id`, `expected_box_version`, `expected_contents_token`,
`job_id` and `quantity`. Quantity is the full job material quantity in its stock
unit, expressed as a positive decimal string with at most six fraction digits.
Partial-job production is unavailable. Retain both current revisions: another
box, changed contents, ambiguous material or insufficient quantity cannot be
substituted. The binding is durable and never changes to a sibling source.

When the job's workflow requires an item scan (`require_item_scan` in the job hints)
and the article of the chosen content has a code (`article_scannable[content_id]` is
`true` in the read by `code`), also send `article_code`: the code scanned from the
article itself, trimmed, at most 100 characters, compared exactly with the article's
SKU and barcodes. Without it, or with a code of another article, Meykt refuses with
`box_production_scan_required` and starts nothing. Contents whose article has no code
(`article_scannable[content_id]` is `false`) start without `article_code`. This rule
belongs to starting from a box or pick container; it is separate from the read filter
`article_code` described above and does not apply to other ways of starting a job.

The optional `query` resolves an exact order number or article scan within the already
opened source; `order_id` selects the offered order context. `article_code` retains its
exact article-only filter. The response can include the chosen `order` and
`outside_contents`: other positions with picking/production status and known containers.
Follow their separate outside_total/outside_offset pages with outside_offset. query_kind distinguishes order from article matches; only an article match permits article auto-open. These rows are context only; they supply no startable job or alternate source selection.

`get_production_settings` returns `{settings, revision}` for Production → Settings →
Meykt box. `settings.meykt_box` contains `auto_open_box_camera`, `auto_open_item_camera`
and `article_match_mode` (`manual` or `first_available`). Both cameras default to false;
selection defaults to manual. `update_production_settings` takes the complete `settings`
and exact `expectedRevision` from that read. It preserves unrelated organization
settings and rejects stale revisions. Reading needs settings viewing rights; saving
needs settings editing, Edit settings and exact human approval. `dry_run` only previews.
`first_available` deliberately selects the first eligible job in the offered ordering,
including its position-bound personalization. Continuous camera opening confirms no
scan and never bypasses current work/source/employee checks. No automatic undo.

The connected person needs their actual active operator profile, current production,
warehouse and order rights, customer-data access and an active session at the selected
station. Obtain the existing job claim with `manage_central_work_session`; no supplied
employee/account identifier can impersonate a worker. The Edit orders and Manage
active work switches must both allow this operation. `dry_run: true` previews without
binding or starting. Every actual start needs approval of the exact arguments, including
in Allow mode. Native Meyki and connected AI use the same registry and caller authority.
The start changes existing job status only; it sends no machine command and creates no
runtime or physical stock. Continue the workflow in Central. Completion placement uses
that exact source, leaving other contents in place. No automatic undo is offered.

After an unknown result, inspect the existing job and source binding before acting.
Keep the original source, quantity and work-session proof; never start a replacement
job or use another box merely to recover a response. A source binding may persist when
a later status/quota check fails, without moving goods. Station workflows linked to
scan triggers keep their separate human-in-Central handoff; this explicit existing-job
operation does not trigger one.

The shared actions expose the same operational choices as Central. Business setup stays
in the Dashboard. `get_production_placement` reads the saved policy, placement, intermediate
boxes, packing goods and exact code resolutions; use its `packing_box` view for an
order-bound warehouse packing read without requiring the Production feature. Read every
indicated page before inferring quantities or complete piece identity.

Read picked-material readiness before discussing a partially picked production run.
Call `POST /v1/actions/get_production_placement` with:

```json
{"arguments":{"view":"job_readiness","production_order_id":"00000000-0000-4000-8000-000000000901","offset":0,"limit":25}}
```

Use the exact production run ID from authorized production data. The result preserves each
`job_id` with `state`, `required_quantity`, `collected_quantity`, `missing_quantity`,
`unit` and `reason`. `ready` means the complete material demand of that job is supplied;
`waiting_for_pick` means material is missing; `unavailable` establishes no readiness;
`not_required` means no warehouse pick check is needed. Amounts are exact decimal strings
for physical material in the warehouse `unit`, not scan counts or commercial order-line
quantities. They are `null` when a comparable total is unknown or material uses different
units; `unit` is null or omitted when unknown or mixed. `reason` is `null`, `wms_order_reserved` or `wms_production_planning_required`.
Read all `jobs_page` pages before describing the whole run; an empty page proves nothing
about omitted positions. This read requires current customer-data consent, production and
order viewing rights and the Production feature. Each start rechecks current demand and
rights at the selected station. One fully supplied job can be worked on while siblings
wait. Reading and scanning confirm no physical goods, start or packing. Complete-order
packing still needs all required goods and finished production.

`configure_production_placement` saves permitted destinations, default/fallback, employee
choice, box confirmation, takeover mode, label template and printer routing with current
settings rights. `place_production_goods` handles placement and the separate original
inspection, print/reprint and applied-label confirmation. `manage_production_intermediate_boxes`
creates/edits boxes and transfers their explicitly confirmed contents. A box holds exactly
one order. Partial takes retain the remainder; complete emptying always needs explicit
confirmation. Transferring into a packing context allocates no shipping-parcel contents.
External-WMS production creates no native inventory or shipping assignment. An ambiguous
material reference requires clarification before physical effects, never a guessed first SKU.

`get_warehouse_pack_series` reads eligible identical orders of one pick list, existing
series and explicitly paged member/parcel/position/original-command details.
`manage_warehouse_pack_series` creates the chosen series, seals a genuinely completed sample,
prepares individual members and confirms their exact physical parcel count. Each target
retains its own package, label, required photo and dispatch receipt. Individually labeled
pieces require their concrete assignment in ordinary packing. Successful members stay
dispatched after a later member fails. `resume_original` uses the saved command key and
its immutable fingerprint; it loads the unchanged original rather than inventing a fresh
confirmation, quantity, version or photo. Recovery reads never make a first booking.

Series completion keeps one transaction per member and the original human batch
confirmation. Intermediate progress is compact internally; the final saved
command receipt retains the existing public response. A failed or unknown member
request is never retried through a second writer. Preview reads may overlap for
two orders at a time; label issuance, printing and physical booking retain their
existing confirmation and sequencing rules.

Receipt-only packing, package-preparation and dispatch recovery uses the read
entitlement gate, including after a subscription write lock. It still requires
the warehouse feature and current actor permissions. Missing receipts remain
`wms_booking_not_found`; this path cannot authorize a first booking.

The existing `pack_warehouse_order` action accepts actual `workpiece_ids` only in
`pack_and_dispatch.parcels[].positions[]`. Quantity must equal their count and no identity
may appear in two parcels. Aggregate demand carries no piece allocation. The
`piece_selection` evidence method truthfully records selection of concrete pieces; it
neither claims a scanner event nor permits free numeric manual entry. The historical
`complete_pack` operation retains only its original `scan`/`manual` evidence methods.

All writes retain current user, order, operator and data-class checks and exact human
approval. Printing additionally follows the Print switch and current customer/finance
access. A queued print or generated document proves no paper output or applied label.
Unclear outcomes retain the same original request and identities. These action schemas
and their available subpages remain discoverable through `getAction`; do not infer
unsupported fields from this overview.

## Billing price models, price preview and activity corrections

`create_billing_service`, `update_billing_service` and `set_billing_service_price` accept a `price_model` as an alternative to `price_tiers` (never both): weight classes "up to and including", price per started unit, surcharges with validity and monthly values, flat fee, minimum, pass-through of shipping costs, **price lists** (`attribute_price_list`: one price per row, picked by `platzart`, `bereich`, `zaehlweise` and `zweck`, `*` or an omitted value means all; the row with the most conditions wins and no matching row is a finding, never a default price) and rounding. Read the exact structure from `input_schema`. Invalid models come back as full sentences naming the building block. A model is never overwritten silently: the answer tells you when a plain price or tier table would replace an existing model. A **client price replaces the whole definition** of the standard, including classes, surcharges, flat fee and minimum. `list_billing_setup` returns `price_model` for services and client prices. Existing `price_tiers` stay readable and unchanged.

**When a price change applies:** `update_billing_service` and `set_billing_service_price` take the optional `apply_from`. `"open"` (the default, also when you leave it out) applies the new price to every activity that is not on an issued statement yet. A calendar day `YYYY-MM-DD` (time zone of the business, past or future allowed) applies it only to activities from that day: the server reads the saved price itself, keeps unchanged building blocks, lets changed and removed ones apply up to the day before (`validTo`) and starts changed and new ones on that day (`validFrom`; a changed block gets a new id ending in `_abYYYYMMDD`, the old id never changes). Rounding cannot be dated and applies to all open activities. A new client price from a day lets the previous default price apply before it. The preview lists `apply_from` as a change and explains the effect in the note `price_applies_from`; a result that would not be a valid price (for example two base prices on the same day) fails with `apply_from_invalid`, the storage service `lagerplatz` with `apply_from_storage`, and `remove: true` takes no day.

`preview_billing_price` calculates a price without saving it. Pass either a `price_model` or the `service_id` of a saved price (with `client_id` for that client's price), plus `quantity`, `attributes` (for example `{"gewicht_g": 1200, "land": "DE"}`) and a `day`. The answer lists the amount per building block, or sentences naming what is missing: an attribute, a class, a surcharge value. Fees per order or month and surcharges on totals depend on the whole statement and calculate only there; the answer says so. It needs the Read prices and amounts switch.

`get_billing_overview` and `explain_order_billing` show price findings together with the activities to correct, the calculation of each line by building block, flat fees and surcharges on totals, refused activities and the billing of shipments of the last 30 days.

`exclude_billing_activity` takes one recorded activity out of billing, and `replace_billing_activity` corrects it and records it anew, for example by adding a missing package weight. Both need `activity_id` and a `reason` of 3 to 500 characters that stays on the activity. `replace_billing_activity` takes `quantity` and `attributes` as patches (a name maps to text, number or yes/no; `null` removes it). Without any change it books a manually excluded activity again, which is the way back. An activity that belongs to a shipment accepts only shipping attributes (weight, carton, country and similar), never another quantity and never shipping costs. Neither action works on an activity that is on an issued statement or in a draft that is being issued, in a test run, or that was taken out of billing when its order was cancelled. Both need the Edit performance billing switch and the owner's approval in Meykt, also under Allow; there is no automatic undo. The acting person must have a management role, and the plan must include performance billing. Issuing a statement stays a human action in Meykt.

## Client account and statement preview

Since 2026-11-14 every billing booking of a fulfillment client lies **open on the client account** as soon as it is recorded. Until a statement is issued, people with a management role can still exclude it, include it again, change its quantity or set a price by hand (`exclude_billing_activity`, `replace_billing_activity` with `unit_price`). Prices are applied with the current rules and prices; nothing is fixed until issuing.

`preview_billing_statement` (read only) shows what "Bill now" in Meykt would issue for one client: `client_id` and `period_end` (the cutoff day, inclusive, organization time zone) are required, `period_start` is optional (without it the window starts at the oldest open booking, at least the first day of the cutoff month), `offset` pages the lines 40 at a time. The answer has the window, currency, net total, the lines with day, service, quantity, unit price, amount and order number, notices (`without_price`, `waiting_for_label`, `other_currency_open`, `storage_days_pending`), findings (`count` and the first ten with order number), `month_end` and `issuable`. A cutoff day before the month end is an **interim statement**: monthly fees and minimums are not on it; the statement whose cutoff closes the month adds them. It needs the Read prices and amounts switch.

There are no drafts and no automatic statements any more: the nightly run creates none, and `billing_cycle` of a client is only a reminder. **Issuing stays a human action in Meykt** (`get_guide` with `id: "owner_handoffs"` and `handoff: "issue_billing_statement"`). The former write action `create_billing_statement` was removed; a pending request for it is discarded as invalid. A statement with status `draft` can only remain from an interrupted issue; the owner finishes it in Meykt.

## Manual labels billed to the client, and packages waiting for a label price

A manual label (`create_manual_shipping_label`) belongs to no package. For an order of a fulfillment client it can be billed to that client as a `shipping.package` activity (quantity 1, dated by the shipment date, with weight, country and product code of the label). `bill_client` is required for such an order: `yes` bills, `no` does not, `client_default` follows the default of the client (`always`, `never`; `ask` means the owner decides, so the action refuses it). `dry_run` returns `billing_question`: the client, its default, how many packages of the order are already billed (billing then needs `confirm_billed_packages: true`), the existing shipping activities and a rough price preview from the client's rules. A package with the same shipment number as the label is never billed twice. Billing needs the Edit performance billing switch, always needs the owner's approval in Meykt (also under Allow) and does not apply to own orders and test orders; the answer then says "Billing not possible" and why, and the label stays possible with `bill_client: "no"`. The pass-through of the carrier cost waits until the label has a price and then follows on a statement; a label that was cancelled or never issued is not billed.

`manage_manual_shipping_label` also takes `action: "bill"` (bill an issued label later) and, for `cancel`, `withdraw_billing` (required while the billing is still open: `true` takes it out of billing with the cancellation, `false` keeps it). A billing on an issued statement stays; its positions are listed and `credit_billing_position` credits them. `get_manual_shipping_labels` shows `billing` per label. `update_billing_client` takes `manual_label_billing` (`ask`, `always`, `never`) for the default of a client.

`list_packages_waiting_for_label` lists shipped packages of fulfillment clients whose label cost cannot be passed on yet because the label is missing, was rejected or cancelled before dispatch, or has no price. It returns the count, the age of the oldest and a page of packages with client, order, age and `label_state` (`none`, `missing`, `unpriced`), without amounts. Waiting is a notice, not a finding: picking and packing of these packages are billed, `preview_billing_statement` counts them (`notices.waiting_for_label`) and nothing is blocked. They join a later statement once the label has a price; `exclude_billing_activity` takes one out if no label will come. It needs Read data and a role that may view performance billing.

## Billing agreements (recurring positions)

An agreement is a recurring position for one fulfillment customer, for example a weekly storage fee, a flat monthly fee or a one-time setup fee. It has a billable service, a quantity per due day and an interval, and no amount of its own: on each due day an ordinary activity of the customer is created in the night after, and the statement prices it like any other activity (the price of the service including a client price, tiers, validity and rounding). Every position can be checked, corrected or excluded on the statement, and the customer's billing cycle decides which statement carries it. `list_billing_setup` returns `agreements`; read the exact structure from `input_schema`.

`manage_billing_agreement` creates, changes, ends and deletes an agreement. `create` needs `client_id`, `service_id` (the service must exist, see `create_billing_service`), `interval` and `starts_on`. The `interval` has a `kind`: `daily`, `weekly` (`weekday` 1 Monday to 7 Sunday, `every_n` 2 for every second week), `semi_monthly` (`day` 1 to 15, due on that day and 15 days later), `monthly` (`day` 1 to 31, or `month_end`), `quarterly`, `yearly` or `once`. A day that a month does not have falls on its last day. All days are calendar days in the time zone of the organization. An agreement is **not retroactive**: positions start at `book_from` (default today, or the later `starts_on`). `backfill: true` on create, or an earlier `book_from`, creates the past due days at once; a pause (switching off, a changed interval, a lifted end) is never made up. Changes (`update`, and `end` if you want the check) send the `version` you read; a concurrent change comes back as a version conflict instead of overwriting. Before a change of days, quantity or service takes effect, the past days are created with the old values, and the change applies from today. An agreement can be deleted only until a position was created; after that, end it with an end date. Ending before the minimum term gives a warning and ends anyway.

`dry_run` shows the changes in words and the schedule: the first due days, the effective `book_from`, how many past days are skipped or created at once, and findings such as a missing price. Past days created at once lie open on the client account like any other booking and go on the next statement whose cutoff day includes them. `preview_billing_agreements` reads the upcoming due days and the positions already created (open, on a statement whose issuing was interrupted, billed or excluded) for one agreement, one customer or all agreements, and says why an answer is empty. It writes nothing. A position is never created twice for the same day. Test runs never produce positions.

Changing needs the Edit performance billing switch (deleting also needs Delete data) and the owner's approval in Meykt, also under Allow. Reading needs the Read prices and amounts switch. The acting person must have a management role, and the plan must include performance billing. There is no automatic undo. Issuing a statement stays a human action in Meykt.

## Storage billing for fulfillment customers

A fulfiller bills its clients for the storage places their goods occupy. There is one price list for all clients: every row says which places (all other places, a place type, optionally "only in" one location, one or more locations in the warehouse), the billing method (`place`, `place_m2`, `place_m3`, `piece`, `piece_m2`, `piece_m3`, `pallet_field` where pallet field stock is kept, or `off`) and the net price per unit and day, valid from a day. The nearer location wins, then the place type, then all other places; a row only for one client wins at the same level. Clients are switched on individually and may deviate per row. Every night Meykt records the stock at the end of the organization day per client (a daily record that never changes) and turns each billed record line into an activity `warehouse.storage_day`; the statement prices it with the price that applied on that day and the extras of the service `lagerplatz`. Nothing is billed retroactively, and a day that was not recorded within two hours after midnight is missing (it can be booked by hand). Rebuilding the warehouse is never blocked by billing.

`get_storage_billing` reads one `view` per call: `start` (default; setup stage, what the warehouse offers, next steps), `price_list` (optionally as one `client` sees it), `clients`, `preview` (tonight, estimated, without extras), `days` (days of a period with `status`, one `day`, or one record with `ref`), `item_sizes`, `explain` (a client's day or one `ref` of a record, activity or position), `check` ("is everything still right?", each point with a ready call where the fix is unambiguous), `proof` (statement of proof for one client, `kind` rows or places, up to 366 days, never with goods of other clients), `owners` and `targets` (place types and locations matching `q`, at most five). Paged views take `limit` (default 50, at most 200) and `offset`; a field without meaning for the view is rejected. It needs the Read prices and amounts switch.

`manage_storage_billing` applies one change set per call, with at least one of these sections: `price_list`, `not_counted` (`receiving`, `clarification`, `boxes`, `transfer`: `"never"` or the number of free days, 0 = immediately), `default_item_size`, `clients` (`enabled`, `off_on_purpose`, `billing_from`, a default size and `rows` with deviations or rows only for this client), `item_sizes`, `owner_links`, `manual_days`, `bill_later`, `move_rows`, `rebook`, `acknowledge`, plus `backdate_reason` (required when an existing price is replaced for recorded days) and `dry_run`. Targets, rows, clients, articles and owners are named by a `ref` from an answer, a code or a name; an unknown or ambiguous name is an error with candidates where there are any. A new row without `mode` bills per place, and `valid_from` and `billing_from` default to the day of approval. `dry_run` returns the changes in words, the effect on tonight (with its time), hints and, for bookings, where the position lands; all errors come at once with path, rejected value and allowed values. A real call always creates one request that the owner approves in Meykt, also under Allow; on approval exactly the previewed change is applied, and if an affected entry changed meanwhile nothing is applied (`changed_since_request`). It needs Read data, Read prices and amounts and the Edit performance billing switch, a management role and a plan with performance billing. There is no automatic undo.

Neighbouring actions: `replace_billing_activity` takes `storage_mode` and `unit_price` on storage positions (another method from the recorded figures, a price by hand); `update_billing_client` takes `storage_billing` (`keep` or `off`) when reactivating; on the service `lagerplatz`, `update_billing_service` accepts only extras (percent surcharge or discount, monthly minimum, monthly flat fee, rounding), and a fixed price, client price, manual booking or rule on it returns `storage_service_fixed`. Issuing a statement stays a human action in Meykt.

## Shipping rates, label costs and dispatch events

`get_shipping_rates` reads your **purchase** shipping rates: zones, contracts, rate sheets with weight classes, surcharges and monthly values. `view` is `workspace`, `sheet`, `templates` (presets with structure and no prices; with `template_code`, `contract_id` and `valid_from` it builds a draft) or `preview` (prices a sample package). `get_shipping_costs` shows what issued labels cost by your own rates: `view: "list"` per label, `"findings"` for the labels still without a price and why, `"statistics"` with `group_by` of `month`, `day`, `client`, `contract`, `product`, `country`, `zone` or `weight_class`. Costs are an **estimate** by your own rate sheet, not the carrier invoice. Totals are per currency and never added across currencies. A client who ships with their own carrier account has no rate sheet and no costs.

`manage_shipping_rates` changes the rates, one operation per call: `save_zone`, `delete_zone`, `save_sheet_draft`, `publish_sheet`, `retire_sheet`, `copy_sheet`, `delete_sheet_draft`, `set_surcharge_value` and `reprice_costs`. Create with a new UUID and `expected_version: 0`; send the current `expected_version` to change. `dry_run` shows the changes and check notes (open prices, overlaps, gaps) and, with `sample`, the cost of an example package. Surcharges of the services `insurance` and `cash_on_delivery` can carry `min_value_eur` and `max_value_eur` (above … up to and including …, in EUR; empty = open): several surcharges of one service with adjoining ranges form a tier table with one fixed amount per tier, chosen by the insured value (insurance) or the cash-on-delivery amount. Without limits the insurance stays per started 2,500 EUR. A label whose value is missing or fits no tier gets no price (`no_value_tier` in the sample, `no_class` in the cost list); overlapping tiers are rejected when publishing and gaps are reported as a warning. A published sheet is frozen: correct it with `copy_sheet`, edit the copy and publish it. Publishing, retiring, monthly values and repricing always need the owner's approval in Meykt, also under Allow, and none of them can be undone.

Rates and costs are purchase data. They need the Read data and Read prices and amounts switches and a person with the owner, admin or manager role; `manage_shipping_rates` additionally needs Edit shipping settings. They are never part of shipment lists, orders, the fixed endpoints or webhooks. Client names and tracking numbers in the cost views need Read customer data.

`get_dispatch_events` reads the warehouse dispatch events: `package_shipped`, `order_dispatch_completed` (with `completion_kind` and the partial-delivery flag) and `carrier_feedback`, filtered by order, package, kind, completion kind, outcome and period. It needs Read data and a role that may view the warehouse and orders. `from` and `before` take a calendar day (organization time zone) or a timestamp with UTC offset; `from` is inclusive, `before` exclusive. The answer carries `total`, `period` and `coverage` (since when the warehouse records and what the events do not cover: an empty list is no proof that nothing shipped), and `still_open` for partial deliveries (whether a later delivery has closed the order). The events carry no cost fields and no addresses; tracking numbers appear only with Read customer data (`hiddenFields` names what is withheld). Carrier feedback never undoes "shipped".


## Complete order executions

`get_order_execution_repeat` reads one of three views: `query.kind: order` with
`order_id` and the selected `workflow_id`; `request` with `request_id` for a source
owner's decision; or `operation` with the original `operation_id` for receipt and
abort inspection. The confirmation binds the source and selected workflow
revision. Never attach another workflow after obtaining it.

`manage_order_execution_repeat` accepts exactly one `operation`:

- `start`: creates a separate complete own-order execution and queues the selected
  AW. Requires `order_id`, `workflow_id`, `operation_id`, and `confirmation`.
- `request`: asks the source owner to approve repeating a received order. Adds a
  nonempty `reason`; it creates no local replacement or warehouse work.
- `accept`: accepts the exact request using `request_id`, its `version`, a fresh
  operation UUID and decision `confirmation`. The receiver's original workflow
  remains bound; the source owner cannot substitute a foreign workflow.
- `reject` / `withdraw`: close the exact request with `request_id`, `version` and
  an operation UUID. The source rejects; the receiver withdraws.

`list_order_execution_repeat_requests` reads `incoming` or `outgoing` requests,
optionally filtered by status, with `limit` up to 20 and `offset`. Request reasons
are customer data. Original orders, stock history and deliveries remain intact.

Every write requires owner approval in Meykt, including Allow mode. Start and
request require the connected person's current order/fulfillment and workflow
permissions; acceptance rechecks the source owner and the receiver's original
workflow authorization. Copy and decision previews require customer-data consent.
A downstream participant in a fulfillment chain cannot impersonate the original
owner by making a local replacement.

Keep `operation_id` and all original arguments after an uncertain response. A
missing receipt is unknown. A `created` receipt remains created even when its
handover or AW is pending or failed: inspect that new order, rather than creating
another copy. An already accepted, rejected or withdrawn request retains its
actual status on replay.

`abort_order_execution_repeat` is a separate action under **Cancel orders**.
Read the operation's abort preview first and submit its exact confirmation. Before
an order exists, it revokes that creation attempt. If the new order already
exists, the ordinary cancellation preview and current work, custody, billing and
volume safeguards apply to that actual order. The established fresh-code and
UI-only thresholds are unchanged. A received approval request is withdrawn or
rejected through the request operations instead. There is no automatic undo.

## Prepared pick-template eligibility

`get_pick_template_overview` reads the prepared Central overview for one
`warehouse_id`, with up to 200 templates. `eligible_orders` counts orders matching
the template rules and resolved planning. `as_of` is the saved calculation time;
`pending` indicates work awaiting recalculation. This is not a promise of free
stock, free boxes, current physical readiness or allocation.

Use `get_warehouse_pick_lists` with `section: preview`, `warehouse_id` and
`template_id` for the exact current selection; large selections complete in steps
(see [Large pick lists](#large-pick-lists)). The preview checks every order
whose rules match the template; stock, boxes and blockers are always evaluated
from the current state. `excluded` lists the checked orders the template does
not take now, with reasons. `other_orders` counts further warehouse orders that
were not checked individually because their current prepared result says the
template rules do not match. Pass `complete: true` to check and explain those
as well; with many orders this takes considerably longer. The existing `section: counts`
response and `would_take` retain their exact selection meaning. Reading either
view reserves nothing. Current warehouse permissions and consent for criteria
using customer or financial data apply equally to the prepared overview.

## Complete field reference

- [Actions: field reference](/en/developers/fields-group-actions) — all request, response and parameter fields, including required values and conditional alternatives.
