Skip to content

Latest commit

 

History

History
69 lines (60 loc) · 1.59 KB

search-orders-query.md

File metadata and controls

69 lines (60 loc) · 1.59 KB

Search Orders Query

Contains query criteria for the search.

Structure

SearchOrdersQuery

Fields

Name Type Tags Description Getter Setter
filter ?SearchOrdersFilter Optional Filtering criteria to use for a SearchOrders request. Multiple filters
are ANDed together.
getFilter(): ?SearchOrdersFilter setFilter(?SearchOrdersFilter filter): void
sort ?SearchOrdersSort Optional Sorting criteria for a SearchOrders request. Results can only be sorted
by a timestamp field.
getSort(): ?SearchOrdersSort setSort(?SearchOrdersSort sort): void

Example (as JSON)

{
  "filter": {
    "state_filter": {
      "states": [
        "CANCELED",
        "DRAFT"
      ]
    },
    "date_time_filter": {
      "created_at": {
        "start_at": "start_at4",
        "end_at": "end_at8"
      },
      "updated_at": {
        "start_at": "start_at6",
        "end_at": "end_at6"
      },
      "closed_at": {
        "start_at": "start_at4",
        "end_at": "end_at8"
      }
    },
    "fulfillment_filter": {
      "fulfillment_types": [
        "DELIVERY"
      ],
      "fulfillment_states": [
        "CANCELED",
        "FAILED"
      ]
    },
    "source_filter": {
      "source_names": [
        "source_names6"
      ]
    },
    "customer_filter": {
      "customer_ids": [
        "customer_ids3",
        "customer_ids4"
      ]
    }
  },
  "sort": {
    "sort_field": "UPDATED_AT",
    "sort_order": "DESC"
  }
}