Pricing and Discount Messages

GraphQL output types for Messages that represent a change or an action performed on a Cart Discount, Discount Code, or Standalone Price.

Each type on this page implements MessagePayload and is returned in the payload field of a Message. For when each Message is generated, see Pricing and Discount Messages.

Cart Discount Messages

CartDiscountCreated

Generated after a successful Create CartDiscount request.
cartDiscount​
The Cart Discount that was created.
type​
String​

CartDiscountDeleted

Generated after a successful Delete CartDiscount request.
type​
String​

CartDiscountStoreAdded

Generated after a successful Add Store update action.
store​
The Store that was added to the Cart Discount.
storeRef​
The Store that was added to the Cart Discount.
type​
String​

CartDiscountStoreRemoved

Generated after a successful Remove Store update action.
store​
The Store that was removed from the Cart Discount.
storeRef​
The Store that was removed from the Cart Discount.
type​
String​

CartDiscountStoresSet

Generated after a successful Set Stores update action.
storesRef​
Array of KeyReference​
Stores of the Cart Discount after the Set Stores update action.
stores​
Array of Store​
Stores of the Cart Discount after the Set Stores update action.
type​
String​

Discount Code Messages

DiscountCodeCreated

Generated after a successful Create DiscountCode request.
discountCode​
The Discount Code that was created.
type​
String​

DiscountCodeDeleted

Generated after a successful Delete DiscountCode request.
type​
String​

DiscountCodeKeySet

Generated after a successful Set Key update action.
key​
String​
key value of the Discount Code after the Set Key update action.
oldKey​
String​
key value of the Discount Code before the Set Key update action.
type​
String​

Discount Group Messages

DiscountGroupCreated

Generated after a successful Create DiscountGroup request.
discountGroup​

The DiscountGroup that was created.

type​
String​

DiscountGroupDeleted

The discountGroupId field corresponds to the resource field of the Message in REST.
discountGroupId​
String​
type​
String​

DiscountGroupKeySet

The discountGroupId field corresponds to the resource field of the Message in REST.
key​
String​
discountGroupId​
String​
oldKey​
String​
type​
String​

DiscountGroupIsActiveSet

The discountGroupId field corresponds to the resource field of the Message in REST.
The oldIsActive field is available in REST but not in GraphQL.
isActive​
Boolean​
discountGroupId​
String​
type​
String​

DiscountGroupSortOrderSet

The discountGroupId field corresponds to the resource field of the Message in REST.
sortOrder​
String​
discountGroupId​
String​
oldSortOrder​
String​
type​
String​

Standalone Price Messages

StandalonePriceCreated

Generated after a successful Create StandalonePrice request.
standalonePrice​
Standalone Price that was created.
type​
String​

StandalonePriceDeleted

Generated after a successful Delete StandalonePrice request.
sku​
String​
SKU of the ProductVariant to which the deleted Standalone Price was associated.
type​
String​

StandalonePriceValueChanged

Generated after a successful Change Value update action.
value​
The new value of the updated StandalonePrice.
staged​
Boolean​
Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the StagedStandalonePrice.
oldValue​
The old value of the updated StandalonePrice. Present on Messages created after 3 February 2023. Optional for backwards compatibility.
type​
String​

StandalonePriceKeySet

Generated after a successful Set Key update action.
key​
String​
key value of the StandalonePrice after the Set Key update action.
oldKey​
String​
key value of the StandalonePrice before the Set Key update action.
type​
String​

StandalonePriceDiscountSet

Generated after a Product Discount is successfully applied to a StandalonePrice.
discounted​
The new discounted value of the updated StandalonePrice.
type​
String​

DiscountedProductPriceValue

value​
discountRef​
discount​

StandalonePriceExternalDiscountSet

Generated after a successful Set Discounted Price update action.
discounted​
The discounted value of the StandalonePrice after the Set Discounted Price update action.
type​
String​

DiscountedProductPriceValue

value​
discountRef​
discount​

StandalonePriceStagedChangesApplied

Generated after a successful Apply Staged Changes update action.
stagedChanges​
Applied changes of the StandalonePrice after the Apply Staged Changes update action.
type​
String​

StagedStandalonePrice

Staged changes on a Standalone Price. To update the value property of a Staged Standalone Price, use the Change Value update action. To apply all staged changes to the Standalone Price, use the Apply Staged Changes update action.
value​

Money value of the StagedStandalonePrice.

discounted​

Discounted price for the StagedStandalonePrice.

DiscountedProductPriceValue

value​
discountRef​
discount​

StandalonePriceStagedChangesRemoved

Generated after a successful Remove Staged Changes update action.
stagedChanges​
Removed changes of the StandalonePrice after the Remove Staged Changes update action.
type​
String​

StagedStandalonePrice

Staged changes on a Standalone Price. To update the value property of a Staged Standalone Price, use the Change Value update action. To apply all staged changes to the Standalone Price, use the Apply Staged Changes update action.
value​

Money value of the StagedStandalonePrice.

discounted​

Discounted price for the StagedStandalonePrice.

DiscountedProductPriceValue

value​
discountRef​
discount​

StandalonePriceActiveChanged

Generated after a successful Change Active update action.
active​
Boolean​
Value of the active field of the StandalonePrice after the Change Active update action.
oldActive​
Boolean​
Value of the active field of the StandalonePrice before the Change Active update action.
type​
String​

StandalonePriceValidFromSet

Generated after a successful Set Valid From update action.
validFrom​
Value of StandalonePrice validFrom after the Set Valid From update action.
previousValidFrom​
Value of StandalonePrice validFrom before the Set Valid From update action.
type​
String​

StandalonePriceValidUntilSet

Generated after a successful Set Valid Until update action.
validUntil​
Value of StandalonePrice validUntil after the Set Valid Until update action.
previousValidUntil​
Value of StandalonePrice validUntil before the Set Valid Until update action.
type​
String​

StandalonePriceValidFromAndUntilSet

Generated after a successful Set Valid From and Until update action.
validFrom​
Value of StandalonePrice validFrom after the Set Valid From and Until update action.
validUntil​
Value of StandalonePrice validUntil after the Set Valid From and Until update action.
previousValidFrom​
Value of StandalonePrice validFrom before the Set Valid From and Until update action.
previousValidUntil​
Value of StandalonePrice validUntil before the Set Valid From and Until update action.
type​
String​

StandalonePriceTierAdded

Generated after a successful Add Price Tier update action
tier​
The Price Tier that has been added to the array field tiers for the StandalonePrice.
type​
String​

ProductPriceTier

minimumQuantity​
Int​
value​

StandalonePriceTierRemoved

In REST, the tier field is named removedTier.
tier​
type​
String​

ProductPriceTier

minimumQuantity​
Int​
value​

StandalonePriceTiersSet

Generated after a successful Set Price Tier update action
tiers​
Array of ProductPriceTier​
The updated content of the field tiers of the affected StandalonePrice.
previousTiers​
Array of ProductPriceTier​
The previous content of the field tiers of the affected StandalonePrice.
type​
String​

ProductPriceTier

minimumQuantity​
Int​
value​