Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Latest commit

 

History

History
17 lines (9 loc) · 1.2 KB

SearchOrdersSort.md

File metadata and controls

17 lines (9 loc) · 1.2 KB

Square.Connect.Model.SearchOrdersSort

Description

Sorting criteria for a SearchOrders request. Results can only be sorted by a timestamp field.

Properties

Name Type Description Notes
SortField string The field to sort by. Important: When using a `DateTimeFilter`, `sort_field` must match the timestamp field that the DateTimeFilter uses to filter. For example, If you set your `sort_field` to `CLOSED_AT` and you use a DateTimeFilter, your DateTimeFilter must filter for orders by their `CLOSED_AT` date. If this field does not match the timestamp field in `DateTimeFilter`, SearchOrders will return an error. Default: `CREATED_AT`. See SearchOrdersSortField for possible values
SortOrder string The chronological order in which results are returned. Defaults to `DESC`. See SortOrder for possible values [optional]

[Back to Model list] [Back to API list] [Back to README]