Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.84 KB

search-subscriptions-request.md

File metadata and controls

44 lines (35 loc) · 1.84 KB

Search Subscriptions Request

Defines input parameters in a request to the SearchSubscriptions endpoint.

Structure

SearchSubscriptionsRequest

Fields

Name Type Tags Description Getter Setter
cursor ?string Optional When the total number of resulting subscriptions exceeds the limit of a paged response,
specify the cursor returned from a preceding response here to fetch the next set of results.
If the cursor is unset, the response contains the last page of the results.

For more information, see Pagination.
getCursor(): ?string setCursor(?string cursor): void
limit ?int Optional The upper limit on the number of subscriptions to return
in a paged response.
Constraints: >= 1
getLimit(): ?int setLimit(?int limit): void
query ?SearchSubscriptionsQuery Optional Represents a query, consisting of specified query expressions, used to search for subscriptions. getQuery(): ?SearchSubscriptionsQuery setQuery(?SearchSubscriptionsQuery query): void
include ?(string[]) Optional An option to include related information in the response.

The supported values are:

- actions: to include scheduled actions on the targeted subscriptions.
getInclude(): ?array setInclude(?array include): void

Example (as JSON)

{
  "query": {
    "filter": {
      "customer_ids": [
        "CHFGVKYY8RSV93M5KCYTG4PN0G"
      ],
      "location_ids": [
        "S8GWD5R9QB376"
      ],
      "source_names": [
        "My App"
      ]
    }
  },
  "cursor": "cursor6",
  "limit": 230,
  "include": [
    "include8"
  ]
}