go back to OrderService

GET /orders/search

Searches the database for orders matching the given request parameters.

Roles that can access this endpoint are Users, Customers.

Parameters

name description type default type
request read for query parameters to be used as search criteria; use any combination of fields from tables:
  • orders - use orders or no prefix
  • stop - use shipper or consignee prefixes as appropriate
  • customer - use customer prefix
  • freight_group - use freightGroup prefix
For example, /orders/search?orders.status=D&shipper.location_id=WARE*&consignee.state=AL would find delivered orders shipping from locations starting with 'WARE' to consignees in Alabama.

Sorting: To sort the result set, you can provide the following reserved query parameter: orderBy If the orderBy parameter is not provided a default sort of orders.id+DESC will be applied.

For example, /orders/search?orders.status=P&orderBy=shipper.sched_arrive_early would return all in progress orders sorted descending by the scheduled pickup date. Multiple sort columns can be provided in a comma delimited format. orderBy=prefix.field+direction,prefix.field+direction

Pagination: To page the result set, you can provide the following reserved query parameters: recordLength and recordOffset

For example, /orders/search?orders.status=P&recordLength=100&recordOffset=50 would return 100 records starting at the 51st record in the return record set. If no recordLength parameter is provided the search result maximum value in the mobile service control file will be applied.

context HttpServletRequest

Result

List < RowOrders > of type: application/xml application/json

a list of RowOrders objects

Additional attributes:

Child Elements:

Try It Out

Request

- Authentication Help