SquareConnect::SearchOrdersRequest

May 8, 2019 · View on GitHub

Description

The request does not have any required fields. When given no query criteria, SearchOrders will return all results for all of the merchant’s locations. When fetching additional pages using a cursor, the query must be equal to the query used to fetch the first page of results.

Properties

NameTypeDescriptionNotes
location_idsArray<String>The location IDs for the orders to query. The caller must have access to all provided locations. Min: 1 `location_ids`. Max: 10 `location_ids`.[optional]
cursorStringA pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See Pagination for more information.[optional]
querySearchOrdersQueryQuery conditions used to filter or sort the results. Note that when fetching additional pages using a `cursor`, the `query` must be equal to the `query` used to fetch the first page of results.[optional]
limitIntegerNumber of results to be returned in a single page. SearchOrders may use a smaller limit than specified depending on server load. If the response includes a `cursor` field, you can use it to retrieve the next set of results. Default: `500`[optional]
return_entriesBOOLEANIf set to `true`, SearchOrders will return `OrderEntry` objects instead of `Order` objects. `OrderEntry` objects are lightweight descriptions of orders that include `order_id`s. Default: `false`.[optional]