PriceRuleDiscountCodeCreatePayload

Version 2019-04

Return type for priceRuleDiscountCodeCreate mutation.

Show definition
"""
Return type for `priceRuleDiscountCodeCreate` mutation.
"""
type PriceRuleDiscountCodeCreatePayload {
  """
  The updated price rule.
  """
  priceRule: PriceRule
  """
  The newly created discount code.
  """
  priceRuleDiscountCode: PriceRuleDiscountCode
  """
  List of errors that occurred executing the mutation.
  """
  priceRuleUserErrors: [PriceRuleUserError!]!
  """
  List of errors that occurred executing the mutation.
  """
  userErrors: [UserError!]!
}

Fields

priceRule (PriceRule)

The updated price rule.

priceRuleDiscountCode (PriceRuleDiscountCode)

The newly created discount code.

priceRuleUserErrors ([PriceRuleUserError!]!)

List of errors that occurred executing the mutation.

Deprecated fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use priceRuleUserErrors instead

Version 2019-07 (Latest)

Return type for priceRuleDiscountCodeCreate mutation.

Show definition
"""
Return type for `priceRuleDiscountCodeCreate` mutation.
"""
type PriceRuleDiscountCodeCreatePayload {
  """
  The updated price rule.
  """
  priceRule: PriceRule
  """
  The newly created discount code.
  """
  priceRuleDiscountCode: PriceRuleDiscountCode
  """
  List of errors that occurred executing the mutation.
  """
  priceRuleUserErrors: [PriceRuleUserError!]!
  """
  List of errors that occurred executing the mutation.
  """
  userErrors: [UserError!]!
}

Fields

priceRule (PriceRule)

The updated price rule.

priceRuleDiscountCode (PriceRuleDiscountCode)

The newly created discount code.

priceRuleUserErrors ([PriceRuleUserError!]!)

List of errors that occurred executing the mutation.

Deprecated fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use priceRuleUserErrors instead

Version 2019-10 (Release candidate)

Return type for priceRuleDiscountCodeCreate mutation.

Show definition
"""
Return type for `priceRuleDiscountCodeCreate` mutation.
"""
type PriceRuleDiscountCodeCreatePayload {
  """
  The updated price rule.
  """
  priceRule: PriceRule
  """
  The newly created discount code.
  """
  priceRuleDiscountCode: PriceRuleDiscountCode
  """
  List of errors that occurred executing the mutation.
  """
  priceRuleUserErrors: [PriceRuleUserError!]!
  """
  List of errors that occurred executing the mutation.
  """
  userErrors: [UserError!]!
}

Fields

priceRule (PriceRule)

The updated price rule.

priceRuleDiscountCode (PriceRuleDiscountCode)

The newly created discount code.

priceRuleUserErrors ([PriceRuleUserError!]!)

List of errors that occurred executing the mutation.

Deprecated fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use priceRuleUserErrors instead

Sign up for a Partner account to get started.

Sign up