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

PriceRuleDiscountCode object

Version unstable

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version unstable

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

Fields

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Version unstable

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

Fields

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Version 2021-07 (Release candidate)

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2021-07 (Release candidate)

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2021-07 (Release candidate)

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2021-04 (Latest)

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2021-04 (Latest)

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2021-04 (Latest)

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2021-01

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2021-01

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2021-01

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2020-10

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2020-10

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2020-10

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2020-07

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2020-07

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2020-07

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2020-04

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2020-04

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2020-04

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2020-01 (Unsupported)

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2020-01 (Unsupported)

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2020-01 (Unsupported)

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2019-10 (Unsupported)

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2019-10 (Unsupported)

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2019-10 (Unsupported)

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2019-07 (Unsupported)

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2019-07 (Unsupported)

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2019-07 (Unsupported)

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

Fields

Types that return PriceRuleDiscountCodeEdge

Version 2019-04 (Unsupported)

A discount code of a price rule.

Required access

read_price_rules access scope.

Fields

  • app (App)

    The application that created the discount code.

  • code (String!)

    The code to use the discount.

  • id (ID!)

    Globally unique identifier.

  • usageCount (Int!)

    The number of times that the price rule has been used. This value is updated asynchronously and can be different than the actual usage count.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

Implements

Version 2019-04 (Unsupported)

An auto-generated type for paginating through multiple PriceRuleDiscountCodes.

On this page

Fields

Version 2019-04 (Unsupported)

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

Fields

Types that return PriceRuleDiscountCodeEdge

Samples