Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 1.55 KB

search-loyalty-events-request.md

File metadata and controls

56 lines (47 loc) · 1.55 KB

Search Loyalty Events Request

A request to search for loyalty events.

Structure

Search Loyalty Events Request

Fields

Name Type Tags Description
query Loyalty Event Query Optional Represents a query used to search for loyalty events.
limit int Optional The maximum number of results to include in the response.
The last page might contain fewer events.
The default is 30 events.
Constraints: >= 1, <= 30
cursor str Optional A pagination cursor returned by a previous call to this endpoint.
Provide this to retrieve the next set of results for your original query.
For more information, see Pagination.

Example (as JSON)

{
  "limit": 30,
  "query": {
    "filter": {
      "order_filter": {
        "order_id": "PyATxhYLfsMqpVkcKJITPydgEYfZY"
      },
      "loyalty_account_filter": {
        "loyalty_account_id": "loyalty_account_id8"
      },
      "type_filter": {
        "types": [
          "ACCUMULATE_PROMOTION_POINTS",
          "ACCUMULATE_POINTS",
          "CREATE_REWARD"
        ]
      },
      "date_time_filter": {
        "created_at": {
          "start_at": "start_at4",
          "end_at": "end_at8"
        }
      },
      "location_filter": {
        "location_ids": [
          "location_ids0",
          "location_ids1",
          "location_ids2"
        ]
      }
    }
  },
  "cursor": "cursor8"
}