Requires read_discounts access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
List of code discounts.
Arguments
sortKey ● CodeDiscountSortKeys
Sort the underlying list by the given key.
  1. STARTS_AT: Sort by start time
  2. TIMES_USED: Sort by number of uses
More
after ● String
Returns elements following the specified cursor. The first argument must also be specified when using this argument.
before ● String
Returns elements preceding the specified cursor. The last argument must also be specified when using this argument.
first ● Int
Returns the first n elements in the list.
last ● Int
Returns the last n elements in the list.
reverse ● Boolean
Whether to reverse the order of the list.
● true: reverse
● false: do not reverse
Default value: false
query ● String
Sort the base list by the given keys, with selectable values:
  1. STARTS_AT: Sort by start time
  2. TIMES_USED: Sort by number of uses
Return
edges ● [DiscountCodeNodeEdge!]non-null
A list of edges.
More
nodes ● [DiscountCodeNode]
Information to aid in pagination.
More
pageInfo ● PageInfo!non-null
A list of the nodes contained in DiscountCodeNodeEdge.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?