API version: unstable
API version: 2021-01 Release candidate
API version: 2020-10 Latest
API version: 2020-07
API version: 2020-04
API version: 2020-01
API version: 2019-10 Unsupported
API version: 2019-07 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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version unstable

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Version unstable

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

Types that return PriceRuleDiscountCode

Mutations for PriceRuleDiscountCode

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Version 2021-01 (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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2021-01 (Release candidate)

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2021-01 (Release candidate)

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

Types that return PriceRuleDiscountCodeEdge

Version 2020-10 (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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2020-10 (Latest)

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2020-10 (Latest)

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2020-07

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2020-07

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2020-04

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2020-04

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

Types that return PriceRuleDiscountCodeEdge

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2020-01

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2020-01

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2019-10 (Unsupported)

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2019-10 (Unsupported)

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2019-07 (Unsupported)

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2019-07 (Unsupported)

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

Version 2019-04 (Unsupported)

On this page

Fields

edges ([PriceRuleDiscountCodeEdge!]!)

A list of edges.

pageInfo (PageInfo!)

Information to aid in pagination.

Version 2019-04 (Unsupported)

Fields

cursor (String!)

A cursor for use in pagination.

node (PriceRuleDiscountCode!)

The item at the end of PriceRuleDiscountCodeEdge.

Types that return PriceRuleDiscountCodeEdge

Samples