API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

DiscountCodeNode object

Version unstable

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.

    Argument Description
    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 unstable

An auto-generated type for paginating through multiple DiscountCodeNodes.

Fields

Types that return DiscountCodeNode

Version unstable

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNode

Version 2021-07 (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.

    Argument Description
    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 2021-07 (Release candidate)

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2021-07 (Release candidate)

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2021-04 (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.

    Argument Description
    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 2021-04 (Latest)

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2021-04 (Latest)

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2021-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.

    Argument Description
    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 2021-01

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2021-01

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2020-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.

    Argument Description
    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-10

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2020-10

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2020-07

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.

    Argument Description
    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

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2020-07

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

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.

    Argument Description
    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

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2020-04

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2020-01 (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.

    Argument Description
    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 (Unsupported)

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2020-01 (Unsupported)

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2019-10 (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.

    Argument Description
    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 (Unsupported)

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2019-10 (Unsupported)

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

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.

    Argument Description
    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)

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2019-07 (Unsupported)

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Version 2019-04 (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.

    Argument Description
    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-04 (Unsupported)

An auto-generated type for paginating through multiple DiscountCodeNodes.

On this page

Fields

Version 2019-04 (Unsupported)

An auto-generated type which holds one DiscountCodeNode and a cursor during pagination.

Fields

  • cursor (String!)

    A cursor for use in pagination.

  • The item at the end of DiscountCodeNodeEdge.

Types that return DiscountCodeNodeEdge

Samples