Skip to content

GET /tms/drivers/search

TMS > tms.delivery

What it does

/tms/drivers/search accepts GET and is declared in app/systems/TMS/delivery/api_routes.php:2070 as a path.

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

Call chain:

  1. → tmsDeliveryApiDriverSearch() — app/systems/TMS/delivery/api_routes.php:1914
  2. ↳ tmsDeliveryApiLookupLimit() — app/systems/TMS/delivery/api_routes.php:1892

Who calls it

Called from:

  • public/assets/js/modules/tms/loading-planner-modal.js

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

Input

Where Key
body COMPANYID
body COMPANY_ID
body ID
body Q
body QUERY

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.

SQL executed

SELECT U.ID AS `key`,

Data

Tables reached from the owner function:

  • T_COMPANY
  • T_ROLE
  • T_USER

Access

  • module-gated on tms.delivery, so tenant module access applies