Skip to content

GET /oms/commercial-orders/options

OMS > oms.commercial-order

What it does

/oms/commercial-orders/options accepts GET and is declared in app/systems/OMS/commercial-order/api_routes.php:11 as a path.

The route handler delegates to commercialOrderQueryHandle(). That function is the owner of this behaviour; the route entry is only dispatch.

Call chain:

  1. → commercialOrderQueryHandle() — app/systems/OMS/commercial-order/commercial_order_query_handler.php:4
  2. ↳ commercial_order_list() — app/systems/OMS/commercial-order/commercial_order_query_helper.php:365
  3. ↳ commercial_order_order_types() — app/systems/OMS/commercial-order/commercial_order_query_helper.php:8

Who calls it

Called from:

  • frontend/pages/system/OMS/commercial-order/mk-commercial-orders.php

A caller is the strongest available evidence of the intended use.

Input

Where Key
body ID

Request bodies must not use TYPE, ACTION or USERNAME as contract fields.

Output

The response is produced by a shared helper, so the key set is not visible at the route. Read the owner function to confirm the shape before writing a client.

Data

No table reference is visible in the owner function body.

Access

  • module-gated on oms.commercial-order, so tenant module access applies; strictTenantPrincipal => true