PriceRuleDiscountCode object

Version 2020-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 of a discount.

id (ID!)

Globally unique identifier.

usageCount (Int!)

The usage count of the discount code.

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 (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 of a discount.

id (ID!)

Globally unique identifier.

usageCount (Int!)

The usage count of the discount code.

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

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 of a discount.

id (ID!)

Globally unique identifier.

usageCount (Int!)

The usage count of the discount code.

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

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 of a discount.

id (ID!)

Globally unique identifier.

usageCount (Int!)

The usage count of the discount code.

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

Sign up for a Partner account to get started.

Sign up