PriceRuleDiscountCode

Version 2019-04

A discount code of a price rule.

Required access

read_price_rules access scope

Show definition
"""
A discount code of a price rule.
"""
type PriceRuleDiscountCode implements Node {
  """
  The application that created the discount code.
  """
  app: App
  """
  The code of a discount.
  """
  code: String!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The usage count of the discount code.
  """
  usageCount: Int!
}

Implements

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.

Version 2019-07

A discount code of a price rule.

Required access

read_price_rules access scope

Show definition
"""
A discount code of a price rule.
"""
type PriceRuleDiscountCode implements Node {
  """
  The application that created the discount code.
  """
  app: App
  """
  The code of a discount.
  """
  code: String!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The usage count of the discount code.
  """
  usageCount: Int!
}

Implements

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.

Version 2019-10 (Latest)

A discount code of a price rule.

Required access

read_price_rules access scope

Show definition
"""
A discount code of a price rule.
"""
type PriceRuleDiscountCode implements Node {
  """
  The application that created the discount code.
  """
  app: App
  """
  The code of a discount.
  """
  code: String!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The usage count of the discount code.
  """
  usageCount: Int!
}

Implements

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.

Version 2020-01 (Release candidate)

A discount code of a price rule.

Required access

read_price_rules access scope

Show definition
"""
A discount code of a price rule.
"""
type PriceRuleDiscountCode implements Node {
  """
  The application that created the discount code.
  """
  app: App
  """
  The code of a discount.
  """
  code: String!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The usage count of the discount code.
  """
  usageCount: Int!
}

Implements

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.

Sign up for a Partner account to get started.

Sign up