DiscountCodeNode object

Version 2020-10 (Release candidate)

A code discount wrapper node.

Required access

Apps must have read_discounts access scope.

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax for more information about using filters.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: false

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: ID

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Types that return DiscountCodeNode

Implements

Version 2020-07 (Latest)

A code discount wrapper node.

Required access

Apps must have read_discounts access scope.

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax for more information about using filters.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: false

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: ID

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Types that return DiscountCodeNode

Implements

Version 2020-04

A code discount wrapper node.

Required access

Apps must have read_discounts access scope.

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax for more information about using filters.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: false

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: ID

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Types that return DiscountCodeNode

Implements

Version 2020-01

A code discount wrapper node.

Required access

Apps must have read_discounts access scope.

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax for more information about using filters.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: false

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: ID

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Types that return DiscountCodeNode

Implements

Version 2019-10

A code discount wrapper node.

Required access

Apps must have read_discounts access scope.

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax for more information about using filters.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: false

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: ID

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Types that return DiscountCodeNode

Implements

Version 2019-07 (Unsupported)

A code discount wrapper node.

Required access

Apps must have read_discounts access scope.

Connections

events (EventConnection!)

The paginated list of events associated with the host subject.

after ( String )

Returns the elements that come after the specified cursor.

before ( String )

Returns the elements that come before the specified cursor.

first ( Int )

Returns up to the first n elements from the list.

last ( Int )

Returns up to the last n elements from the list.

query ( String )

Supported filter parameters:

  • comments
  • created_at
  • subject_type
  • verb

See the detailed search syntax for more information about using filters.

reverse ( Boolean )

Reverse the order of the underlying list.
Default value: false

sortKey ( EventSortKeys )

Sort the underlying list by the given key.
Default value: ID

Fields

codeDiscount (DiscountCode!)

A code discount.

id (ID!)

Globally unique identifier.

Types that return DiscountCodeNode

Implements

Samples