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. |
typeString |
CartDiscountDeleted
Generated after a successful Delete CartDiscount request.
typeString |
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. |
typeString |
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. |
typeString |
CartDiscountStoresSet
Generated after a successful Set Stores update action.
storesRefArray of KeyReference | |
storesArray of Store | |
typeString |
Discount Code Messages
DiscountCodeCreated
Generated after a successful Create DiscountCode request.
discountCode | The Discount Code that was created. |
typeString |
DiscountCodeDeleted
Generated after a successful Delete DiscountCode request.
typeString |
DiscountCodeKeySet
Generated after a successful Set Key update action.
keyString | |
oldKeyString | |
typeString |
Discount Group Messages
DiscountGroupCreated
Generated after a successful Create DiscountGroup request.
discountGroup | The DiscountGroup that was created. |
typeString |
DiscountGroupDeleted
The
discountGroupId field corresponds to the resource field of the Message in REST.discountGroupIdString | |
typeString |
DiscountGroupKeySet
The
discountGroupId field corresponds to the resource field of the Message in REST.keyString | |
discountGroupIdString | |
oldKeyString | |
typeString |
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.isActiveBoolean | |
discountGroupIdString | |
typeString |
DiscountGroupSortOrderSet
The
discountGroupId field corresponds to the resource field of the Message in REST.sortOrderString | |
discountGroupIdString | |
oldSortOrderString | |
typeString |
Standalone Price Messages
StandalonePriceCreated
Generated after a successful Create StandalonePrice request.
standalonePrice | Standalone Price that was created. |
typeString |
StandalonePriceDeleted
Generated after a successful Delete StandalonePrice request.
skuString | SKU of the ProductVariant to which the deleted Standalone Price was associated. |
typeString |
StandalonePriceValueChanged
Generated after a successful Change Value update action.
value | The new value of the updated StandalonePrice. |
stagedBoolean | 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. |
typeString |
StandalonePriceKeySet
Generated after a successful Set Key update action.
keyString | |
oldKeyString | |
typeString |
StandalonePriceDiscountSet
Generated after a Product Discount is successfully applied to a StandalonePrice.
discounted | The new discounted value of the updated StandalonePrice. |
typeString |
DiscountedProductPriceValue
value | |
discountRef | |
discount |
StandalonePriceExternalDiscountSet
Generated after a successful Set Discounted Price update action.
discounted | |
typeString |
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. |
typeString |
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. |
typeString |
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.
activeBoolean | Value of the active field of the StandalonePrice after the Change Active update action. |
oldActiveBoolean | Value of the active field of the StandalonePrice before the Change Active update action. |
typeString |
StandalonePriceValidFromSet
Generated after a successful Set Valid From update action.
validFrom | |
previousValidFrom | |
typeString |
StandalonePriceValidUntilSet
Generated after a successful Set Valid Until update action.
validUntil | |
previousValidUntil | |
typeString |
StandalonePriceValidFromAndUntilSet
Generated after a successful Set Valid From and Until update action.
validFrom | |
validUntil | |
previousValidFrom | |
previousValidUntil | |
typeString |
StandalonePriceTierAdded
Generated after a successful Add Price Tier update action
tier | |
typeString |
ProductPriceTier
minimumQuantityInt | |
value |
StandalonePriceTierRemoved
In REST, the
tier field is named removedTier.tier | |
typeString |
ProductPriceTier
minimumQuantityInt | |
value |
StandalonePriceTiersSet
Generated after a successful Set Price Tier update action
tiersArray of ProductPriceTier | The updated content of the field tiers of the affected StandalonePrice. |
previousTiersArray of ProductPriceTier | The previous content of the field tiers of the affected StandalonePrice. |
typeString |
ProductPriceTier
minimumQuantityInt | |
value |