PriceRuleDiscountCode object

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

priceRuleDiscountCodeCreate

Create a discount code for a price rule.

priceRuleDiscountCodeUpdate

Update a discount code for a price rule.

Implements

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

Samples