GraphQL output types for Messages that represent a change or an action performed on a Cart, Order, Order Edit, or Recurring Order.

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

Cart Messages

CartEstimatedDeliverySet

Generated after a successful Set Estimated Delivery update action.
estimatedDelivery​
Estimated delivery window on the Cart after the Set Estimated Delivery update action.
shippingKey​
String​
key of the Shipping that was updated. Only present for Carts with Multiple ShippingMode.
type​
String​

EstimatedDelivery

Estimated time window during which a shipment is expected to be delivered. The window is anchored to the selected Shipping Method and the shipping destination.

from​

Date and time (UTC) of the earliest expected delivery.

until​
Date and time (UTC) of the latest expected delivery. When both from and until are set, until must be equal to or later than from.

CartFrozen

Generated after a successful Freeze Cart update action.
type​
String​

CartLocked

Generated after a successful Lock Cart update action.
type​
String​

CartPurchaseOrderNumberSet

Generated after a successful Set Purchase Order Number update action.
purchaseOrderNumber​
String​
Purchase order number on the Cart after the Set Purchase Order Number update action.
oldPurchaseOrderNumber​
String​
Purchase order number on the Cart before the Set Purchase Order Number update action.
type​
String​

CartUnfrozen

Generated after a successful Unfreeze Cart update action.
type​
String​

CartUnlocked

Generated after a successful Unlock Cart update action.
type​
String​

CartCreated

This message is only returned for GraphQL.

totalPrice​
lineItemCount​
Int​
discountCodesRefs​
Array of Reference​
type​
String​

Order Messages

Order Messages also implement the OrderMessagePayload interface.

OrderMessagePayload

type​
String​

globally

OrderCreated

Generated after a successful Create Order request, for the initial Order created directly from a Cart.
Orders generated by a Recurring Order schedule do not emit this Message. They emit the OrderCreatedFromRecurringOrder Message instead.
order​
Order that was created.
type​
String​

OrderCreatedFromRecurringOrder

Generated after an Order is successfully created according to the defined schedule of a Recurring Order.

This Message is emitted in place of the standard OrderCreated Message: Orders generated by a Recurring Order schedule do not emit the OrderCreated Message.
order​
Order that was created.
orderRef​
Order that was created.
recurringOrderRef​
Reference to the origin Recurring Order.
type​
String​

OrderImported

Generated after a successful Order Import.
order​
Order that was imported.
type​
String​

OrderEditApplied

result​
edit​
editRef​
type​
String​

Applied

excerptBeforeEdit​
excerptAfterEdit​
type​
String​
appliedAt​

OrderExcerpt

Excerpt of the Order extracting the total and the taxed price.

totalPrice​

Total price of the Order.

taxedPrice​

Taxed price of the Order.

version​
Long​

Current version of the Order.

TaxedPrice

totalNet​

Total net price of the Cart or Order.

totalGross​

Total gross price of the Cart or Order.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​

Total tax applicable for the Cart or Order.

Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

OrderDeleted

Generated after a successful Delete Order request.
order​
Order that has been deleted.
type​
String​

PurchaseOrderNumberSet

This type is equivalent to OrderPurchaseOrderNumberSetMessage in REST.
purchaseOrderNumber​
String​
oldPurchaseOrderNumber​
String​
type​
String​

OrderCustomerSet

Generated after a successful Set Customer ID update action.
customer​
Customer on the Order after the Set Customer ID update action.
oldCustomer​
Customer on the Order before the Set Customer ID update action.
customerGroup​
CustomerGroup on the Order after the Set Customer ID update action.
oldCustomerGroup​
CustomerGroup on the Order before the Set Customer ID update action.
customerRef​
Customer on the Order after the Set Customer ID update action.
oldCustomerRef​
Customer on the Order before the Set Customer ID update action.
customerGroupRef​
CustomerGroup on the Order after the Set Customer ID update action.
oldCustomerGroupRef​
CustomerGroup on the Order before the Set Customer ID update action.
type​
String​

OrderCustomerEmailSet

Generated after a successful Set Customer Email update action.
email​
String​
Email address on the Order after the Set Customer Email update action.
oldEmail​
String​
Email address on the Order before the Set Customer Email update action.
type​
String​

OrderCustomerGroupSet

Generated after a successful Set Customer Group update action.
customerGroup​
CustomerGroup on the Order after the Set Customer Group update action.
oldCustomerGroup​
CustomerGroup on the Order before the Set Customer Group update action.
customerGroupRef​
CustomerGroup on the Order after the Set Customer Group update action.
oldCustomerGroupRef​
CustomerGroup on the Order before the Set Customer Group update action.
type​
String​

OrderLineItemAdded

Generated after a successful Add LineItem update action.
lineItem​
Line Item that was added to the Order.
addedQuantity​
Long​
Quantity of Line Items that were added to the Order.
type​
String​

LineItem

A line item is a snapshot of a product variant at the time it was added to the cart.

Since a product variant may change at any time, the ProductVariant data is copied into the field variant. The relation to the Product is kept but the line item will not automatically update if the product variant changes. On the cart, the line item can be updated manually. The productSlug refers to the current version of the product. It can be used to link to the product. If the product has been deleted, the line item remains but refers to a non-existent product and the productSlug is left empty.

Please also note that creating an order is impossible if the product or product variant a line item relates to has been deleted.

id​
String​

Unique identifier of the LineItem.

key​
String​

User-defined identifier of the LineItem. Unique among LineItems in the Cart or Order.

productId​
String​
id of the Product the Line Item is based on.
productKey​
String​
key of the Product.

This field is only present on:

  • Line Items in a Cart when the key is available on that specific Product at the time the LineItem was created or updated on the Cart.
  • Line Items in an Order when the key is available on the specific Product at the time the Order was created from the Cart.

Present on resources created or updated after 3 December 2021.

name​
String​

Name of the Product.

nameAllLocales​
Array of LocalizedString​

Name of the Product.

productSlug​
String​
slug of the current version of the Product. Updated automatically if the slug changes. Empty if the Product has been deleted. The productSlug field of LineItem is not expanded when using Reference Expansion.
productSlugAllLocales​
Array of LocalizedString​
slug of the current version of the Product. Updated automatically if the slug changes. Empty if the Product has been deleted. The productSlug field of LineItem is not expanded when using Reference Expansion.
productType​

Product Type of the Product.

productTypeRef​
Reference to the product type of the line item, carrying the snapshot version captured when the line item was added.
variant​

Holds the data of the Product Variant added to the Cart.

The data is saved at the time the Product Variant is added to the Cart and is not updated automatically when Product Variant data changes. Must be updated using the Recalculate update action.
price​
Price of a Line Item selected from the Product Variant according to the Product priceMode. If the priceMode is Embedded ProductPriceMode and the variant field hasn't been updated, the price may not correspond to a price in variant.prices.
taxedPrice​
Automatically set after taxRate is set.
totalPrice​
Total price of this Line Item equalling price multiplied by quantity. If the Line Item is discounted, the total price is the discountedPricePerQuantity multiplied by quantity. Includes taxes if the TaxRate includedInPrice is true.
If ExternalPrice LineItemPriceMode is used with high-precision money, then the total price is rounded by using the HalfEven rounding mode.
quantity​
Long​
Quantity of the Product Variant present in the Cart or Order.
addedAt​

Date and time (UTC) the Line Item was added to the Cart.

lastModifiedAt​

Date and time (UTC) the Line Item was last updated.

state​
Array of ItemState​
Tracks specific quantities of the Line Item within a given State. When a Line Item is added to a Cart, its full quantity is set to the built-in "Initial" state. State transitions for Line Items are managed on the Order.
taxRate​
  • For a Cart with Platform TaxMode, the taxRate of Line Items is set automatically once a shipping address is set. The rate is based on the TaxCategory that applies for the shipping address.
  • For a Cart with External TaxMode, the taxRate of Line Items can be set using ExternalTaxRateDraft.
supplyChannel​
Identifies Inventory entries that are reserved. The referenced Channel has the InventorySupply ChannelRoleEnum.
supplyChannelRef​
Identifies Inventory entries that are reserved. The referenced Channel has the InventorySupply ChannelRoleEnum.
distributionChannel​
Used to select a Product Price. The referenced Channel has the ProductDistribution ChannelRoleEnum.
distributionChannelRef​
Used to select a Product Price. The referenced Channel has the ProductDistribution ChannelRoleEnum.
discountedPricePerQuantity​

Discounted price of a single quantity of the Line Item.

lineItemMode​

Indicates how the Line Item is added to the Cart.

Can be GiftLineItem, or Standard​
priceMode​

Indicates how the Price for the Line Item is set.

Can be ExternalPrice, ExternalTotal, or Platform​
custom​

Custom Fields of the Line Item.

inventoryMode​
Inventory mode specific to this Line Item only, and valid for the entire quantity of the Line Item. Only present if the inventory mode is different from the inventoryMode specified on the Cart.
Can be None, TrackOnly, ReserveOnOrder, or ReserveOnCart​
reservation​
Reference to the successful Reservation associated with this Line Item. This field is only populated when using the ReserveOnCart mode.
reservationRef​
Reference to the successful Reservation associated with this Line Item. This field is only populated when using the ReserveOnCart mode.
shippingDetails​

Container for Line Item-specific addresses.

perMethodTaxRate​
Array of MethodTaxRate​
Tax Rate per Shipping Method for a Cart with Multiple ShippingMode. For a Cart with Platform TaxMode it is automatically set after the Shipping Method is added. For a Cart with External TaxMode, the Tax Rate must be set with ExternalTaxRateDraft.
taxedPricePortions​
Array of MethodTaxedPrice​
Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. Automatically set after perMethodTaxRate is set.
recurrenceInfo​

Recurring Order and frequency data.

VersionedReference

typeId​
String​
id​
String​
version​
Long​

ProductVariant

Represents a Product Variant embedded in a Product.
Only available for Projects with the ProductCatalogModel Classic. When the Project has the Modular catalog model, use the Variants API instead.
id​
Int​

A unique, sequential identifier of the Product Variant within the Product.

key​
String​

User-defined identifier of the ProductVariant. Unique among ProductVariants in the same Product.

This is different from Product key.
sku​
String​

User-defined SKU of the Product Variant. Unique across all ProductVariants in a Project.

prices​
Array of ProductPrice​
If the Product is projected by Store, this field only contains Embedded Prices that are valid for that Store.
Cannot contain two Embedded Prices with the same scopes (currency, country, Customer Group, Channel, validFrom and validUntil).
price​

Returns a single price based on the price selection rules.

allRecurrencePrices​
Array of ProductPrice​

Returns all recurrence prices based on the price selection rules.

images​
Array of Image​

Images of the Product Variant.

assets​
Array of Asset​

Media assets of the Product Variant.

availability​
Set if the Product Variant is tracked by Inventory. Can be used as an optimization to reduce calls to the Inventory service. May not contain the latest Inventory State (it is eventually consistent).
attributesRaw​

This field contains raw attributes data

ProductPrice

id​
String​
value​
key​
String​
country​
customerGroup​
customerGroupRef​
channel​
channelRef​
validFrom​
validUntil​
discounted​
tiers​
Array of ProductPriceTier​
custom​
recurrencePolicy​
recurrencePolicyRef​

DiscountedProductPriceValue

value​
discountRef​
discount​

ProductPriceTier

minimumQuantity​
Int​
value​

ProductVariantAvailabilityWithChannels

noChannel​
channels​

ProductVariantAvailability

Product variant availability

isOnStock​
Boolean​
Whether the Product Variant is in stock, based on an InventoryEntry that has no assigned supply Channel. This value reflects global or default availability; it does not aggregate the channel-specific availabilities found in the channels field.
restockableInDays​
Int​

Number of days to restock a Product Variant once it is out of stock.

availableQuantity​
Long​

Number of items of the Product Variant that are in stock.

version​
Long​
Current version of the InventoryEntry.
id​
String​
Unique identifier of the InventoryEntry.

ProductVariantAvailabilitiesResult

Product variant availabilities

limit​
Int​
offset​
Int​
total​
Int​
results​

ProductVariantAvailabilityWithChannel

channelRef​
channel​
availability​

RawProductAttribute

attributeDefinition​
name​
String​
value​
Json​
attributesRaw​
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
referencedResource​
referencedResourceSet​

AttributeDefinition

type​

Describes the Type of the Attribute.

name​
String​
User-defined name of the Attribute that is unique within the Project.
label​
String​

Human-readable label for the Attribute.

isRequired​
Boolean​
Whether the Attribute must have a value on a ProductVariant.
attributeConstraint​

Specifies how Attributes are validated across all variants of a Product.

Can be None, Unique, CombinationUnique, or SameForAll​
level​

Specifies whether the Attribute is defined at the Product or Variant level.

Can be Variant, or Product​
inputTip​
String​

Provides additional Attribute information to aid content managers configure Product details.

inputHint​
Provides a visual representation directive for values of this Attribute (only relevant for AttributeTextType and AttributeLocalizableTextType).
Can be SingleLine, or MultiLine​
isSearchable​
Boolean​
Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.
The exact features that are available with this flag depend on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.
savedToLineItem​
Boolean​
Whether the Attribute value is copied onto the LineItem when the Product is added to a Cart. When false, the Attribute value is excluded from the Line Item variant. Line Items already in a Cart are not immediately affected by a change to this value. Existing Line Items are updated the next time their Product data is refreshed, such as when a Recalculate update action is performed with updateProductData set to true, or on a Cart update that triggers an API Extension. Replicating a Cart creates a new Cart that contains the current Product data; it does not update the original Cart.
When savedToLineItem is false, LineItem predicates that reference this Attribute, such as those in Cart Discounts and Shipping Methods, evaluate as if the Attribute is not set.
labelAllLocales​
Array of LocalizedString​

Human-readable label for the Attribute.

inputTipAllLocales​
Array of LocalizedString​

Provides additional Attribute information to aid content managers configure Product details.

AttributeDefinitionType

AttributeConstraint

None
No constraints are applied to the attribute
Unique
Attribute value should be different in each variant
CombinationUnique
A set of attributes, that have this constraint, should have different combinations in each variant
SameForAll
Attribute value should be the same in all variants

Level

Variant
The attribute can be used on the variant level
Product
The attribute can be used on the product level

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

ItemState

quantity​
Long​

Quantity of Line Items or Custom Line Items in this State.

stateRef​

State of the Line Items or Custom Line Items in a custom workflow.

state​

State of the Line Items or Custom Line Items in a custom workflow.

TaxRate

name​
String​

Name of the TaxRate.

amount​
Float​
Tax rate. If subrates are used, the amount is the sum of all rates in subRates.
includedInPrice​
Boolean​
Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.
country​
state​
String​
State within the country, such as Texas in the United States. The value is case-sensitive and must use the same casing as the state value in the Cart shippingAddress.
A TaxRate whose state is omitted does not act as a wildcard: it only matches a Cart whose shippingAddress also has no state value. To apply the same rate across states, either define an individual TaxRate for each state, or use the region field or a Custom Field on the shipping address as described in Address matching.
id​
String​
Present if the TaxRate is part of a TaxCategory. Absent for external TaxRates in LineItem, CustomLineItem, and ShippingInfo.
key​
String​
User-defined identifier of the TaxRate. Unique within the TaxCategory containing it. Present when set using TaxRateDraft. Not available for external TaxRates created using ExternalTaxRateDraft.
subRates​
Array of SubRate​
Used when the total tax is a combination of multiple taxes (for example, local, state/provincial, and/or federal taxes). The total of all subrates must equal the TaxRate amount. These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.
taxRoundingTarget​
Determines which of the net price and the tax amount the taxRoundingMode of the Cart or Order is applied to, when this TaxRate is included in the price. Ignored if includedInPrice is false.
Always returned by the API. Can be omitted when a TaxRate is supplied as input, such as in OrderImportDraft, and then defaults to Net.
Can be Net, or Tax​

SubRate

It is used to calculate the taxPortions field in a Cart or Order.
name​
String​

Name of the SubRate.

amount​
Float​

TaxRoundingTarget

Net
Default. `taxRoundingMode` is applied to the net price and the tax amount is the exact remainder. E.g. at 20% on `1.23`, the net rounds to `1.02` and the tax is `0.21`.
Tax
`taxRoundingMode` is applied to the tax amount and the net price is the exact remainder. E.g. at 20% on `1.23`, the tax rounds to `0.20` and the net is `1.03`. Has no effect when the rate is not included in the price.

DiscountedLineItemPriceForQuantity

quantity​
Long​

Quantity of Line Items or Custom Line Items in the Cart.

discountedPrice​

Discounted price of the Line Item or Custom Line Item.

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

LineItemMode

GiftLineItem
The line item was added automatically, because a discount has added a free gift to the cart. The quantity can not be increased, and it won’t be merged when the same product variant is added. If the gift is removed, an entry is added to the "refusedGifts" array and the discount won’t be applied again to the cart. The price can not be changed externally. All other updates, such as the ones related to custom fields, can be used.
Standard
The line item was added during cart creation or with the update action addLineItem. Its quantity can be changed without restrictions.

LineItemPriceMode

ExternalPrice
The line item price was set externally. Cart discounts can apply to line items with this price mode. All update actions that change the quantity of a line item with this price mode require the externalPrice field to be given.
ExternalTotal
The line item price with the total was set externally.
Platform
The price is selected form the product variant. This is the default mode.

InventoryMode

None
No inventory checks or modifications when adding items or ordering. Default for a new cart.
TrackOnly
Orders decrement the available quantity on the matching inventory entry; ordering fails only when no inventory entry exists for a line item.
ReserveOnOrder
Line items are reserved only for the duration of the ordering transaction; creating an order fails when an unavailable line item exists.
ReserveOnCart
Items are reserved when added to the cart. Not supported by this service.

ItemShippingDetails

targets​
Array of ItemShippingTarget​

Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

valid​
Boolean​
Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

ItemShippingTarget

Determines the address (as a reference to an address in itemShippingAddresses) and the quantity shipped to the address.

If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified. An array of addresses and sub-quantities is stored per Line Item or Custom Line Item.

addressKey​
String​
Key of the address in the Cart itemShippingAddresses. Duplicate address keys are not allowed.
quantity​
Long​
Quantity of Line Items or Custom Line Items shipped to the address with the specified addressKey.
If a quantity is updated to 0 when defining ItemShippingDetailsDraft, the targets are removed from a Line Item or Custom Line Item in the resulting ItemShippingDetails.
shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

Required when the Cart has Multiple ShippingMode. Omitting this field in that case returns an InvalidOperation error.

MethodTaxRate

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxRate​

Tax Rate for the Shipping Method.

MethodTaxedPrice

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxedPrice​
Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

LineItemRecurrenceInfo

The RecurrenceInfo returned in a LineItem

recurrencePolicy​
recurrencePolicyRef​
expiresAt​
priceSelectionMode​
Can be Dynamic, or Fixed​

RecurrencePolicyRef

typeId​
String​
id​
String​

OrderLineItemRemoved

The GraphQL field newShippingDetails corresponds to the field newShippingDetail in OrderLineItemRemovedMessage in REST.
Generated after a successful Remove LineItem update action.
lineItemId​
String​
Unique identifier of the Line Item.
lineItemKey​
String​

User-defined identifier of the LineItem. Unique among LineItems in the Order.

removedQuantity​
Long​
Quantity of Line Items that were removed during the Remove LineItem update action.
newQuantity​
Long​
Line Item quantity after the Remove LineItem update action.
newState​
Array of ItemState​
ItemStates after the Remove LineItem update action.
newTotalPrice​
totalPrice of the Order after the Remove LineItem update action.
newPrice​
Price of the Order after the Remove LineItem update action.
newShippingDetails​
newTaxedPrice​
TaxedItemPrice of the Order after the Remove LineItem update action.
type​
String​

ItemState

quantity​
Long​

Quantity of Line Items or Custom Line Items in this State.

stateRef​

State of the Line Items or Custom Line Items in a custom workflow.

state​

State of the Line Items or Custom Line Items in a custom workflow.

ProductPrice

id​
String​
value​
key​
String​
country​
customerGroup​
customerGroupRef​
channel​
channelRef​
validFrom​
validUntil​
discounted​
tiers​
Array of ProductPriceTier​
custom​
recurrencePolicy​
recurrencePolicyRef​

DiscountedProductPriceValue

value​
discountRef​
discount​

ProductPriceTier

minimumQuantity​
Int​
value​

ItemShippingDetails

targets​
Array of ItemShippingTarget​

Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

valid​
Boolean​
Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

ItemShippingTarget

Determines the address (as a reference to an address in itemShippingAddresses) and the quantity shipped to the address.

If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified. An array of addresses and sub-quantities is stored per Line Item or Custom Line Item.

addressKey​
String​
Key of the address in the Cart itemShippingAddresses. Duplicate address keys are not allowed.
quantity​
Long​
Quantity of Line Items or Custom Line Items shipped to the address with the specified addressKey.
If a quantity is updated to 0 when defining ItemShippingDetailsDraft, the targets are removed from a Line Item or Custom Line Item in the resulting ItemShippingDetails.
shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

Required when the Cart has Multiple ShippingMode. Omitting this field in that case returns an InvalidOperation error.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

OrderCustomLineItemAdded

Generated after a successful Add CustomLineItem update action.
customLineItem​
Custom Line Item that was added to the Order.
type​
String​

CustomLineItem

A custom line item is a generic item that can be added to the cart but is not bound to a product. You can use it for discounts (negative money), vouchers, complex cart rules, additional services or fees. You control the lifecycle of this item.

id​
String​

Unique identifier of the Custom Line Item.

key​
String​

User-defined identifier of the Custom Line Item. Unique among Custom Line Items in the Cart or Order.

name​
String​

Name of the Custom Line Item.

nameAllLocales​
Array of LocalizedString​

Name of the Custom Line Item.

money​

Money value of the Custom Line Item.

totalPrice​
Total price of the Custom Line Item (money multiplied by quantity). If the Custom Line Item is discounted, the total price is discountedPricePerQuantity multiplied by quantity.
Includes taxes if the TaxRate includedInPrice is true.
slug​
String​
User-defined identifier used in a deep-link URL for the Custom Line Item. It matches the pattern [a-zA-Z0-9_-]{2,256}.
quantity​
Long​
Number of Custom Line Items in the Cart or Order.
state​
Array of ItemState​
Tracks specific quantities of the Custom Line Item within a given State. When a Custom Line Item is added to a Cart, its full quantity is set to the built-in "Initial" state. State transitions for Custom Line Items are managed on the Order.
taxCategory​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxCategoryRef​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxRate​
  • For a Cart with Platform TaxMode, the taxRate of Custom Line Items is set automatically once a shipping address is set. The rate is based on the TaxCategory that applies for the shipping address.
  • For a Cart with External TaxMode, the taxRate of Custom Line Items can be set using ExternalTaxRateDraft.
taxedPrice​
Automatically set after the taxRate is set.
taxedPricePortions​
Array of MethodTaxedPrice​
Total taxed prices based on the quantity of the Custom Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. Automatically set after perMethodTaxRate is set.
perMethodTaxRate​
Array of MethodTaxRate​
Tax Rate per Shipping Method for a Cart with Multiple ShippingMode. For a Cart with Platform TaxMode it is automatically set after the Shipping Method is added. For a Cart with External TaxMode, the Tax Rate must be set with ExternalTaxRateDraft.
discountedPricePerQuantity​

Discounted price of a single quantity of the Custom Line Item.

custom​

Custom Fields of the Custom Line Item.

shippingDetails​

Container for Custom Line Item-specific addresses.

Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.
Can be External, or Standard​
recurrenceInfo​

Recurring Order and frequency data.

ItemState

quantity​
Long​

Quantity of Line Items or Custom Line Items in this State.

stateRef​

State of the Line Items or Custom Line Items in a custom workflow.

state​

State of the Line Items or Custom Line Items in a custom workflow.

TaxRate

name​
String​

Name of the TaxRate.

amount​
Float​
Tax rate. If subrates are used, the amount is the sum of all rates in subRates.
includedInPrice​
Boolean​
Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.
country​
state​
String​
State within the country, such as Texas in the United States. The value is case-sensitive and must use the same casing as the state value in the Cart shippingAddress.
A TaxRate whose state is omitted does not act as a wildcard: it only matches a Cart whose shippingAddress also has no state value. To apply the same rate across states, either define an individual TaxRate for each state, or use the region field or a Custom Field on the shipping address as described in Address matching.
id​
String​
Present if the TaxRate is part of a TaxCategory. Absent for external TaxRates in LineItem, CustomLineItem, and ShippingInfo.
key​
String​
User-defined identifier of the TaxRate. Unique within the TaxCategory containing it. Present when set using TaxRateDraft. Not available for external TaxRates created using ExternalTaxRateDraft.
subRates​
Array of SubRate​
Used when the total tax is a combination of multiple taxes (for example, local, state/provincial, and/or federal taxes). The total of all subrates must equal the TaxRate amount. These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.
taxRoundingTarget​
Determines which of the net price and the tax amount the taxRoundingMode of the Cart or Order is applied to, when this TaxRate is included in the price. Ignored if includedInPrice is false.
Always returned by the API. Can be omitted when a TaxRate is supplied as input, such as in OrderImportDraft, and then defaults to Net.
Can be Net, or Tax​

SubRate

It is used to calculate the taxPortions field in a Cart or Order.
name​
String​

Name of the SubRate.

amount​
Float​

TaxRoundingTarget

Net
Default. `taxRoundingMode` is applied to the net price and the tax amount is the exact remainder. E.g. at 20% on `1.23`, the net rounds to `1.02` and the tax is `0.21`.
Tax
`taxRoundingMode` is applied to the tax amount and the net price is the exact remainder. E.g. at 20% on `1.23`, the tax rounds to `0.20` and the net is `1.03`. Has no effect when the rate is not included in the price.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

MethodTaxedPrice

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxedPrice​
Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

MethodTaxRate

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxRate​

Tax Rate for the Shipping Method.

DiscountedLineItemPriceForQuantity

quantity​
Long​

Quantity of Line Items or Custom Line Items in the Cart.

discountedPrice​

Discounted price of the Line Item or Custom Line Item.

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

ItemShippingDetails

targets​
Array of ItemShippingTarget​

Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

valid​
Boolean​
Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

ItemShippingTarget

Determines the address (as a reference to an address in itemShippingAddresses) and the quantity shipped to the address.

If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified. An array of addresses and sub-quantities is stored per Line Item or Custom Line Item.

addressKey​
String​
Key of the address in the Cart itemShippingAddresses. Duplicate address keys are not allowed.
quantity​
Long​
Quantity of Line Items or Custom Line Items shipped to the address with the specified addressKey.
If a quantity is updated to 0 when defining ItemShippingDetailsDraft, the targets are removed from a Line Item or Custom Line Item in the resulting ItemShippingDetails.
shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

Required when the Cart has Multiple ShippingMode. Omitting this field in that case returns an InvalidOperation error.

CustomLineItemPriceMode

External
Cart discounts are deactivated for the custom line items with this price mode.
Standard
This is the default mode.

CustomLineItemRecurrenceInfo

The RecurrenceInfo returned in a CustomLineItem

recurrencePolicy​
recurrencePolicyRef​
expiresAt​

RecurrencePolicyRef

typeId​
String​
id​
String​

OrderCustomLineItemRemoved

Generated after a successful Remove CustomLineItem update action.
customLineItemId​
String​
Unique identifier of the Custom Line Item.
customLineItemKey​
String​
User-defined unique identifier of the Custom Line Item.
customLineItem​
Custom Line Item that was removed from the Order.
type​
String​

CustomLineItem

A custom line item is a generic item that can be added to the cart but is not bound to a product. You can use it for discounts (negative money), vouchers, complex cart rules, additional services or fees. You control the lifecycle of this item.

id​
String​

Unique identifier of the Custom Line Item.

key​
String​

User-defined identifier of the Custom Line Item. Unique among Custom Line Items in the Cart or Order.

name​
String​

Name of the Custom Line Item.

nameAllLocales​
Array of LocalizedString​

Name of the Custom Line Item.

money​

Money value of the Custom Line Item.

totalPrice​
Total price of the Custom Line Item (money multiplied by quantity). If the Custom Line Item is discounted, the total price is discountedPricePerQuantity multiplied by quantity.
Includes taxes if the TaxRate includedInPrice is true.
slug​
String​
User-defined identifier used in a deep-link URL for the Custom Line Item. It matches the pattern [a-zA-Z0-9_-]{2,256}.
quantity​
Long​
Number of Custom Line Items in the Cart or Order.
state​
Array of ItemState​
Tracks specific quantities of the Custom Line Item within a given State. When a Custom Line Item is added to a Cart, its full quantity is set to the built-in "Initial" state. State transitions for Custom Line Items are managed on the Order.
taxCategory​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxCategoryRef​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxRate​
  • For a Cart with Platform TaxMode, the taxRate of Custom Line Items is set automatically once a shipping address is set. The rate is based on the TaxCategory that applies for the shipping address.
  • For a Cart with External TaxMode, the taxRate of Custom Line Items can be set using ExternalTaxRateDraft.
taxedPrice​
Automatically set after the taxRate is set.
taxedPricePortions​
Array of MethodTaxedPrice​
Total taxed prices based on the quantity of the Custom Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. Automatically set after perMethodTaxRate is set.
perMethodTaxRate​
Array of MethodTaxRate​
Tax Rate per Shipping Method for a Cart with Multiple ShippingMode. For a Cart with Platform TaxMode it is automatically set after the Shipping Method is added. For a Cart with External TaxMode, the Tax Rate must be set with ExternalTaxRateDraft.
discountedPricePerQuantity​

Discounted price of a single quantity of the Custom Line Item.

custom​

Custom Fields of the Custom Line Item.

shippingDetails​

Container for Custom Line Item-specific addresses.

Indicates whether Cart Discounts with a matching CartDiscountCustomLineItemsTarget, MultiBuyCustomLineItemsTarget, or CartDiscountPatternTarget are applied to the Custom Line Item.
Can be External, or Standard​
recurrenceInfo​

Recurring Order and frequency data.

ItemState

quantity​
Long​

Quantity of Line Items or Custom Line Items in this State.

stateRef​

State of the Line Items or Custom Line Items in a custom workflow.

state​

State of the Line Items or Custom Line Items in a custom workflow.

TaxRate

name​
String​

Name of the TaxRate.

amount​
Float​
Tax rate. If subrates are used, the amount is the sum of all rates in subRates.
includedInPrice​
Boolean​
Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.
country​
state​
String​
State within the country, such as Texas in the United States. The value is case-sensitive and must use the same casing as the state value in the Cart shippingAddress.
A TaxRate whose state is omitted does not act as a wildcard: it only matches a Cart whose shippingAddress also has no state value. To apply the same rate across states, either define an individual TaxRate for each state, or use the region field or a Custom Field on the shipping address as described in Address matching.
id​
String​
Present if the TaxRate is part of a TaxCategory. Absent for external TaxRates in LineItem, CustomLineItem, and ShippingInfo.
key​
String​
User-defined identifier of the TaxRate. Unique within the TaxCategory containing it. Present when set using TaxRateDraft. Not available for external TaxRates created using ExternalTaxRateDraft.
subRates​
Array of SubRate​
Used when the total tax is a combination of multiple taxes (for example, local, state/provincial, and/or federal taxes). The total of all subrates must equal the TaxRate amount. These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.
taxRoundingTarget​
Determines which of the net price and the tax amount the taxRoundingMode of the Cart or Order is applied to, when this TaxRate is included in the price. Ignored if includedInPrice is false.
Always returned by the API. Can be omitted when a TaxRate is supplied as input, such as in OrderImportDraft, and then defaults to Net.
Can be Net, or Tax​

SubRate

It is used to calculate the taxPortions field in a Cart or Order.
name​
String​

Name of the SubRate.

amount​
Float​

TaxRoundingTarget

Net
Default. `taxRoundingMode` is applied to the net price and the tax amount is the exact remainder. E.g. at 20% on `1.23`, the net rounds to `1.02` and the tax is `0.21`.
Tax
`taxRoundingMode` is applied to the tax amount and the net price is the exact remainder. E.g. at 20% on `1.23`, the tax rounds to `0.20` and the net is `1.03`. Has no effect when the rate is not included in the price.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

MethodTaxedPrice

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxedPrice​
Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

MethodTaxRate

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxRate​

Tax Rate for the Shipping Method.

DiscountedLineItemPriceForQuantity

quantity​
Long​

Quantity of Line Items or Custom Line Items in the Cart.

discountedPrice​

Discounted price of the Line Item or Custom Line Item.

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

ItemShippingDetails

targets​
Array of ItemShippingTarget​

Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

valid​
Boolean​
Whether the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined in targets. Ordering a Cart when the value is false returns an InvalidItemShippingDetails error.

ItemShippingTarget

Determines the address (as a reference to an address in itemShippingAddresses) and the quantity shipped to the address.

If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified. An array of addresses and sub-quantities is stored per Line Item or Custom Line Item.

addressKey​
String​
Key of the address in the Cart itemShippingAddresses. Duplicate address keys are not allowed.
quantity​
Long​
Quantity of Line Items or Custom Line Items shipped to the address with the specified addressKey.
If a quantity is updated to 0 when defining ItemShippingDetailsDraft, the targets are removed from a Line Item or Custom Line Item in the resulting ItemShippingDetails.
shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

Required when the Cart has Multiple ShippingMode. Omitting this field in that case returns an InvalidOperation error.

CustomLineItemPriceMode

External
Cart discounts are deactivated for the custom line items with this price mode.
Standard
This is the default mode.

CustomLineItemRecurrenceInfo

The RecurrenceInfo returned in a CustomLineItem

recurrencePolicy​
recurrencePolicyRef​
expiresAt​

RecurrencePolicyRef

typeId​
String​
id​
String​

OrderDiscountCodeAdded

Generated after a successful Add DiscountCode update action.
discountCode​
DiscountCode that was added.
discountCodeRef​
DiscountCode that was added.
type​
String​

OrderDiscountCodeRemoved

Generated after a successful Remove DiscountCode update action.
discountCode​
DiscountCode that was removed.
discountCodeRef​
DiscountCode that was removed.
type​
String​

OrderDiscountCodeStateSet

Generated after the DiscountCodeState changes due to a recalculation.
DiscountCodeState after the recalculation.
Can be ApplicationStoppedByGroupBestDeal, ApplicationStoppedByPreviousDiscount, DoesNotMatchCart, MatchesCart, MaxApplicationReached, NotActive, or NotValid​
oldState​
DiscountCodeState before the recalculation.
Can be ApplicationStoppedByGroupBestDeal, ApplicationStoppedByPreviousDiscount, DoesNotMatchCart, MatchesCart, MaxApplicationReached, NotActive, or NotValid​
discountCode​
DiscountCode that changed due to the recalculation.
discountCodeRef​
DiscountCode that changed due to the recalculation.
type​
String​

DiscountCodeState

ApplicationStoppedByGroupBestDeal
ApplicationStoppedByPreviousDiscount
The discount code is active and none of the discounts were applied because the discount application was stopped by one discount that has the StackingMode of StopAfterThisDiscount defined
DoesNotMatchCart
The discount code is active and it contains at least one active and valid CartDiscount. But its cart predicate does not match the cart or none of the contained active discount’s cart predicates match the cart
MatchesCart
The discount code is active and it contains at least one active and valid CartDiscount. The discount code cartPredicate matches the cart and at least one of the contained active discount’s cart predicates matches the cart.
MaxApplicationReached
maxApplications or maxApplicationsPerCustomer for discountCode has been reached.
NotActive
The discount code is not active or it does not contain any active cart discounts.
NotValid
The discount code is not valid or it does not contain any valid cart discounts. Validity is determined based on the validFrom and validUntil dates

OrderPaymentAdded

Generated after a successful Add Payment update action or when a Payment is added via Order Edits.
paymentRef​
Payment that was added to the Order.
type​
String​

OrderPaymentRemoved

Generated after a successful Remove Payment update action or when a Payment is removed via Order Edits.
paymentRef​
Payment that was removed from the Order.
removedPaymentInfo​
Boolean​
Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is true if all Payments have been removed (none remain), and false if there are still Payments associated with the Order after the removal.
type​
String​

OrderPaymentStateChanged

Generated after a successful Change PaymentState update action.
paymentState​
PaymentState after the Change Payment State update action.
Can be BalanceDue, CreditOwed, Failed, Paid, or Pending​
oldPaymentState​
PaymentState before the Change Payment State update action.
Can be BalanceDue, CreditOwed, Failed, Paid, or Pending​
type​
String​

PaymentState

BalanceDue
CreditOwed
Failed
Paid
Pending

OrderBillingAddressSet

Generated after a successful Set Billing Address update action.
address​
Billing address on the Order after the Set Billing Address update action.
oldAddress​
Billing address on the Order before the Set Billing Address update action.
type​
String​

OrderShippingAddressSet

Generated after a successful Set Shipping Address update action.
address​
Shipping address on the Order after the Set Shipping Address update action.
oldAddress​
Shipping address on the Order before the Set Shipping Address update action.
type​
String​

OrderEstimatedDeliverySet

Generated after a successful Set Estimated Delivery update action.
estimatedDelivery​
Estimated delivery window on the Order after the Set Estimated Delivery update action.
shippingKey​
String​
key of the Shipping that was updated. Only present for Orders with Multiple ShippingMode.
type​
String​

EstimatedDelivery

Estimated time window during which a shipment is expected to be delivered. The window is anchored to the selected Shipping Method and the shipping destination.

from​

Date and time (UTC) of the earliest expected delivery.

until​
Date and time (UTC) of the latest expected delivery. When both from and until are set, until must be equal to or later than from.

OrderShippingInfoSet

Generated after a successful Set ShippingMethod and Set Custom ShippingMethod update actions.
shippingInfo​
oldShippingInfo​
type​
String​

ShippingInfo

shippingMethodName​
String​

Name of the Shipping Method.

price​
Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the shippingRateInput field.
shippingRate​

Used to determine the price.

taxRate​
Automatically set in the Platform TaxMode after the shipping address is set.
For the External TaxMode the Tax Rate must be set explicitly with the ExternalTaxRateDraft.
deliveries​
Array of Delivery​

Information on how items are delivered to customers.

discountedPrice​

Discounted price of the Shipping Method.

shippingMethodState​
Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the Cart.
Can be DoesNotMatchCart, or MatchesCart​
estimatedDelivery​
Estimated time window during which the shipment is expected to be delivered. This value is removed if the Cart's shippingAddress changes.
message​
String​
shippingMethod​

Not set if a custom Shipping Method is used.

shippingMethodRef​

Not set if a custom Shipping Method is used.

taxCategory​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxCategoryRef​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxedPrice​
Automatically set after the taxRate is set.

TaxRate

name​
String​

Name of the TaxRate.

amount​
Float​
Tax rate. If subrates are used, the amount is the sum of all rates in subRates.
includedInPrice​
Boolean​
Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.
country​
state​
String​
State within the country, such as Texas in the United States. The value is case-sensitive and must use the same casing as the state value in the Cart shippingAddress.
A TaxRate whose state is omitted does not act as a wildcard: it only matches a Cart whose shippingAddress also has no state value. To apply the same rate across states, either define an individual TaxRate for each state, or use the region field or a Custom Field on the shipping address as described in Address matching.
id​
String​
Present if the TaxRate is part of a TaxCategory. Absent for external TaxRates in LineItem, CustomLineItem, and ShippingInfo.
key​
String​
User-defined identifier of the TaxRate. Unique within the TaxCategory containing it. Present when set using TaxRateDraft. Not available for external TaxRates created using ExternalTaxRateDraft.
subRates​
Array of SubRate​
Used when the total tax is a combination of multiple taxes (for example, local, state/provincial, and/or federal taxes). The total of all subrates must equal the TaxRate amount. These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.
taxRoundingTarget​
Determines which of the net price and the tax amount the taxRoundingMode of the Cart or Order is applied to, when this TaxRate is included in the price. Ignored if includedInPrice is false.
Always returned by the API. Can be omitted when a TaxRate is supplied as input, such as in OrderImportDraft, and then defaults to Net.
Can be Net, or Tax​

SubRate

It is used to calculate the taxPortions field in a Cart or Order.
name​
String​

Name of the SubRate.

amount​
Float​

TaxRoundingTarget

Net
Default. `taxRoundingMode` is applied to the net price and the tax amount is the exact remainder. E.g. at 20% on `1.23`, the net rounds to `1.02` and the tax is `0.21`.
Tax
`taxRoundingMode` is applied to the tax amount and the net price is the exact remainder. E.g. at 20% on `1.23`, the tax rounds to `0.20` and the net is `1.03`. Has no effect when the rate is not included in the price.

Delivery

Contains information on how items are shipped to Customers, for example, a delivery note.

id​
String​

Unique identifier of the Delivery.

key​
String​

User-defined identifier of the Delivery. Unique among Deliveries in the Order.

createdAt​

Date and time (UTC) the Delivery was created.

items​
Array of DeliveryItem​

Line Items or Custom Line Items that are delivered.

parcels​
Array of Parcel​

Information regarding the appearance, content, and shipment of a Parcel.

address​

Address to which Parcels are delivered.

custom​

Custom Fields of the Delivery.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

ShippingMethodState

DoesNotMatchCart
The ShippingMethod predicate does not match the cart. Ordering this cart will fail with error ShippingMethodDoesNotMatchCart
MatchesCart
Either there is no predicate defined for the ShippingMethod or the given predicate matches the cart

EstimatedDelivery

Estimated time window during which a shipment is expected to be delivered. The window is anchored to the selected Shipping Method and the shipping destination.

from​

Date and time (UTC) of the earliest expected delivery.

until​
Date and time (UTC) of the latest expected delivery. When both from and until are set, until must be equal to or later than from.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

OrderShippingRateInputSet

Generated after a successful Set ShippingRateInput update action.
shippingRateInput​
ShippingRateInput after the Set ShippingRateInput update action.
oldShippingRateInput​
ShippingRateInput before the Set ShippingRateInput update action.
type​
String​

ShippingRateInput

type​
String​

OrderShipmentStateChanged

Generated after a successful Change ShipmentState update action.
shipmentState​
ShipmentState after the Change Shipment State update action.
Can be Backorder, Canceled, Delayed, Delivered, Partial, Pending, Ready, or Shipped​
oldShipmentState​
ShipmentState before the Change Shipment State update action.
Can be Backorder, Canceled, Delayed, Delivered, Partial, Pending, Ready, or Shipped​
type​
String​

ShipmentState

Backorder
Canceled
Delayed
Delivered
Partial
Pending
Ready
Shipped

DeliveryAdded

Generated after a successful Add Delivery update action.
delivery​
Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

Delivery

Contains information on how items are shipped to Customers, for example, a delivery note.

id​
String​

Unique identifier of the Delivery.

key​
String​

User-defined identifier of the Delivery. Unique among Deliveries in the Order.

createdAt​

Date and time (UTC) the Delivery was created.

items​
Array of DeliveryItem​

Line Items or Custom Line Items that are delivered.

parcels​
Array of Parcel​

Information regarding the appearance, content, and shipment of a Parcel.

address​

Address to which Parcels are delivered.

custom​

Custom Fields of the Delivery.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

DeliveryRemoved

Generated after a successful Remove Delivery update action.
delivery​
The Delivery that was removed from the Order.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

Delivery

Contains information on how items are shipped to Customers, for example, a delivery note.

id​
String​

Unique identifier of the Delivery.

key​
String​

User-defined identifier of the Delivery. Unique among Deliveries in the Order.

createdAt​

Date and time (UTC) the Delivery was created.

items​
Array of DeliveryItem​

Line Items or Custom Line Items that are delivered.

parcels​
Array of Parcel​

Information regarding the appearance, content, and shipment of a Parcel.

address​

Address to which Parcels are delivered.

custom​

Custom Fields of the Delivery.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

ReturnInfoAdded

Generated after a successful Add ReturnInfo update action.
returnInfo​
The ReturnInfo that was added to the Order.
type​
String​

ReturnInfo

Stores information about returns connected to this order.

items​
Array of ReturnItem​

Information on the Line Items or Custom Line Items returned.

returnTrackingId​
String​

User-defined identifier to track the return.

returnDate​

Date and time (UTC) the return is initiated.

ReturnItem

type​
String​
id​
String​
key​
String​
quantity​
Long​
comment​
String​
shipmentState​
Can be Advised, BackInStock, Returned, or Unusable​
paymentState​
Can be Initial, NonRefundable, NotRefunded, or Refunded​
custom​
lastModifiedAt​
createdAt​

ReturnShipmentState

Advised
BackInStock
Returned
Unusable

ReturnPaymentState

Initial
NonRefundable
NotRefunded
Refunded

ReturnInfoSet

Generated after a successful Set ReturnInfo update action on Orders and Order Edits.
returnInfo​
Array of ReturnInfo​
The ReturnInfo that was set on the Order or Order Edit.
type​
String​

ReturnInfo

Stores information about returns connected to this order.

items​
Array of ReturnItem​

Information on the Line Items or Custom Line Items returned.

returnTrackingId​
String​

User-defined identifier to track the return.

returnDate​

Date and time (UTC) the return is initiated.

ReturnItem

type​
String​
id​
String​
key​
String​
quantity​
Long​
comment​
String​
shipmentState​
Can be Advised, BackInStock, Returned, or Unusable​
paymentState​
Can be Initial, NonRefundable, NotRefunded, or Refunded​
custom​
lastModifiedAt​
createdAt​

ReturnShipmentState

Advised
BackInStock
Returned
Unusable

ReturnPaymentState

Initial
NonRefundable
NotRefunded
Refunded

OrderStateChanged

The orderId field corresponds to the resource field of the Message in REST.
orderId​
String​
orderState​
Can be Cancelled, Complete, Confirmed, or Open​
oldOrderState​
Can be Cancelled, Complete, Confirmed, or Open​
type​
String​

OrderState

Cancelled
Complete
Confirmed
Open

OrderStateTransition

Generated after a successful Transition State update action.
force​
Boolean​
Whether State transition validations were turned off during the Transition State update action.
state​
OrderState after the Transition State update action.
oldState​
OrderState before the Transition State update action.
stateRef​
OrderState after the Transition State update action.
oldStateRef​
OrderState before the Transition State update action.
type​
String​

OrderStoreSet

The oldStore and oldStoreRef fields are only available in GraphQL.
store​
oldStore​
storeRef​
oldStoreRef​
type​
String​

OrderBusinessUnitSet B2B B2X

Generated after a successful Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
businessUnit​
BusinessUnit on the Order after the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
oldBusinessUnit​
BusinessUnit on the Order before the Set Business Unit update action on Orders or Set Business Unit update action on Order Edits.
type​
String​

OrderDiscountTypeCombinationSet

This message is only returned for GraphQL.

discountTypeCombination​
type​
String​

DiscountTypeCombination

type​
String​

OrderShippingContainerSet

This message is only returned for GraphQL.

shippingContainer​
type​
String​

ShippingContainer

shippingMode​
Can be Multiple, or Single​
singleShipping​
multiShipping​
Array of Shipping​

ShippingMode

Multiple
Allows multiple shipping methods for the cart with their respective shipping addresses
Single
Allows only one shipping method and shipping address for the cart

Shipping

shippingKey​
String​
User-defined unique identifier of the Shipping in a Cart with Multiple ShippingMode.
shippingInfo​
Automatically set when the Shipping Method is added.
shippingAddress​

Determines the shipping rates and Tax Rates of associated Line Items.

shippingRateInput​
Used as an input to select a ShippingRatePriceTier. The data type of this field depends on the shippingRateInputType.type configured in the Project:
shippingCustomFields​
Custom Fields of Shipping with Multiple ShippingMode.

ShippingInfo

shippingMethodName​
String​

Name of the Shipping Method.

price​
Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the shippingRateInput field.
shippingRate​

Used to determine the price.

taxRate​
Automatically set in the Platform TaxMode after the shipping address is set.
For the External TaxMode the Tax Rate must be set explicitly with the ExternalTaxRateDraft.
deliveries​
Array of Delivery​

Information on how items are delivered to customers.

discountedPrice​

Discounted price of the Shipping Method.

shippingMethodState​
Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the Cart.
Can be DoesNotMatchCart, or MatchesCart​
estimatedDelivery​
Estimated time window during which the shipment is expected to be delivered. This value is removed if the Cart's shippingAddress changes.
message​
String​
shippingMethod​

Not set if a custom Shipping Method is used.

shippingMethodRef​

Not set if a custom Shipping Method is used.

taxCategory​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxCategoryRef​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxedPrice​
Automatically set after the taxRate is set.

TaxRate

name​
String​

Name of the TaxRate.

amount​
Float​
Tax rate. If subrates are used, the amount is the sum of all rates in subRates.
includedInPrice​
Boolean​
Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.
country​
state​
String​
State within the country, such as Texas in the United States. The value is case-sensitive and must use the same casing as the state value in the Cart shippingAddress.
A TaxRate whose state is omitted does not act as a wildcard: it only matches a Cart whose shippingAddress also has no state value. To apply the same rate across states, either define an individual TaxRate for each state, or use the region field or a Custom Field on the shipping address as described in Address matching.
id​
String​
Present if the TaxRate is part of a TaxCategory. Absent for external TaxRates in LineItem, CustomLineItem, and ShippingInfo.
key​
String​
User-defined identifier of the TaxRate. Unique within the TaxCategory containing it. Present when set using TaxRateDraft. Not available for external TaxRates created using ExternalTaxRateDraft.
subRates​
Array of SubRate​
Used when the total tax is a combination of multiple taxes (for example, local, state/provincial, and/or federal taxes). The total of all subrates must equal the TaxRate amount. These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.
taxRoundingTarget​
Determines which of the net price and the tax amount the taxRoundingMode of the Cart or Order is applied to, when this TaxRate is included in the price. Ignored if includedInPrice is false.
Always returned by the API. Can be omitted when a TaxRate is supplied as input, such as in OrderImportDraft, and then defaults to Net.
Can be Net, or Tax​

SubRate

It is used to calculate the taxPortions field in a Cart or Order.
name​
String​

Name of the SubRate.

amount​
Float​

TaxRoundingTarget

Net
Default. `taxRoundingMode` is applied to the net price and the tax amount is the exact remainder. E.g. at 20% on `1.23`, the net rounds to `1.02` and the tax is `0.21`.
Tax
`taxRoundingMode` is applied to the tax amount and the net price is the exact remainder. E.g. at 20% on `1.23`, the tax rounds to `0.20` and the net is `1.03`. Has no effect when the rate is not included in the price.

Delivery

Contains information on how items are shipped to Customers, for example, a delivery note.

id​
String​

Unique identifier of the Delivery.

key​
String​

User-defined identifier of the Delivery. Unique among Deliveries in the Order.

createdAt​

Date and time (UTC) the Delivery was created.

items​
Array of DeliveryItem​

Line Items or Custom Line Items that are delivered.

parcels​
Array of Parcel​

Information regarding the appearance, content, and shipment of a Parcel.

address​

Address to which Parcels are delivered.

custom​

Custom Fields of the Delivery.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

ShippingMethodState

DoesNotMatchCart
The ShippingMethod predicate does not match the cart. Ordering this cart will fail with error ShippingMethodDoesNotMatchCart
MatchesCart
Either there is no predicate defined for the ShippingMethod or the given predicate matches the cart

EstimatedDelivery

Estimated time window during which a shipment is expected to be delivered. The window is anchored to the selected Shipping Method and the shipping destination.

from​

Date and time (UTC) of the earliest expected delivery.

until​
Date and time (UTC) of the latest expected delivery. When both from and until are set, until must be equal to or later than from.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

ShippingRateInput

type​
String​

OrderShippingUpdated

This message is only returned for GraphQL.

current​
updated​
type​
String​

Shipping

shippingKey​
String​
User-defined unique identifier of the Shipping in a Cart with Multiple ShippingMode.
shippingInfo​
Automatically set when the Shipping Method is added.
shippingAddress​

Determines the shipping rates and Tax Rates of associated Line Items.

shippingRateInput​
Used as an input to select a ShippingRatePriceTier. The data type of this field depends on the shippingRateInputType.type configured in the Project:
shippingCustomFields​
Custom Fields of Shipping with Multiple ShippingMode.

ShippingInfo

shippingMethodName​
String​

Name of the Shipping Method.

price​
Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the shippingRateInput field.
shippingRate​

Used to determine the price.

taxRate​
Automatically set in the Platform TaxMode after the shipping address is set.
For the External TaxMode the Tax Rate must be set explicitly with the ExternalTaxRateDraft.
deliveries​
Array of Delivery​

Information on how items are delivered to customers.

discountedPrice​

Discounted price of the Shipping Method.

shippingMethodState​
Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the Cart.
Can be DoesNotMatchCart, or MatchesCart​
estimatedDelivery​
Estimated time window during which the shipment is expected to be delivered. This value is removed if the Cart's shippingAddress changes.
message​
String​
shippingMethod​

Not set if a custom Shipping Method is used.

shippingMethodRef​

Not set if a custom Shipping Method is used.

taxCategory​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxCategoryRef​
Used to select a Tax Rate when a Cart has the Platform TaxMode.
taxedPrice​
Automatically set after the taxRate is set.

TaxRate

name​
String​

Name of the TaxRate.

amount​
Float​
Tax rate. If subrates are used, the amount is the sum of all rates in subRates.
includedInPrice​
Boolean​
Whether tax is included in Embedded Prices or Standalone Prices, and the taxedPrice is present on LineItems. In this case, the totalNet price on TaxedPrice includes the TaxRate.
country​
state​
String​
State within the country, such as Texas in the United States. The value is case-sensitive and must use the same casing as the state value in the Cart shippingAddress.
A TaxRate whose state is omitted does not act as a wildcard: it only matches a Cart whose shippingAddress also has no state value. To apply the same rate across states, either define an individual TaxRate for each state, or use the region field or a Custom Field on the shipping address as described in Address matching.
id​
String​
Present if the TaxRate is part of a TaxCategory. Absent for external TaxRates in LineItem, CustomLineItem, and ShippingInfo.
key​
String​
User-defined identifier of the TaxRate. Unique within the TaxCategory containing it. Present when set using TaxRateDraft. Not available for external TaxRates created using ExternalTaxRateDraft.
subRates​
Array of SubRate​
Used when the total tax is a combination of multiple taxes (for example, local, state/provincial, and/or federal taxes). The total of all subrates must equal the TaxRate amount. These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.
taxRoundingTarget​
Determines which of the net price and the tax amount the taxRoundingMode of the Cart or Order is applied to, when this TaxRate is included in the price. Ignored if includedInPrice is false.
Always returned by the API. Can be omitted when a TaxRate is supplied as input, such as in OrderImportDraft, and then defaults to Net.
Can be Net, or Tax​

SubRate

It is used to calculate the taxPortions field in a Cart or Order.
name​
String​

Name of the SubRate.

amount​
Float​

TaxRoundingTarget

Net
Default. `taxRoundingMode` is applied to the net price and the tax amount is the exact remainder. E.g. at 20% on `1.23`, the net rounds to `1.02` and the tax is `0.21`.
Tax
`taxRoundingMode` is applied to the tax amount and the net price is the exact remainder. E.g. at 20% on `1.23`, the tax rounds to `0.20` and the net is `1.03`. Has no effect when the rate is not included in the price.

Delivery

Contains information on how items are shipped to Customers, for example, a delivery note.

id​
String​

Unique identifier of the Delivery.

key​
String​

User-defined identifier of the Delivery. Unique among Deliveries in the Order.

createdAt​

Date and time (UTC) the Delivery was created.

items​
Array of DeliveryItem​

Line Items or Custom Line Items that are delivered.

parcels​
Array of Parcel​

Information regarding the appearance, content, and shipment of a Parcel.

address​

Address to which Parcels are delivered.

custom​

Custom Fields of the Delivery.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

ShippingMethodState

DoesNotMatchCart
The ShippingMethod predicate does not match the cart. Ordering this cart will fail with error ShippingMethodDoesNotMatchCart
MatchesCart
Either there is no predicate defined for the ShippingMethod or the given predicate matches the cart

EstimatedDelivery

Estimated time window during which a shipment is expected to be delivered. The window is anchored to the selected Shipping Method and the shipping destination.

from​

Date and time (UTC) of the earliest expected delivery.

until​
Date and time (UTC) of the latest expected delivery. When both from and until are set, until must be equal to or later than from.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

ShippingRateInput

type​
String​

on Line Item

OrderLineItemDistributionChannelSet

Generated after a successful Set LineItem DistributionChannel update action.
lineItemId​
String​
Unique identifier of the Line Item.
lineItemKey​
String​

User-defined identifier of the LineItem. Unique among LineItems in the Order.

distributionChannel​
Distribution Channel that was set.
distributionChannelRef​
Distribution Channel that was set.
type​
String​

OrderLineItemDiscountSet

Generated after a successful recalculation of a Discount on a Line Item.
lineItemId​
String​
Unique identifier for the Line Item.
lineItemKey​
String​

User-defined identifier of the LineItem. Unique among LineItems in the Order.

discountedPricePerQuantity​
Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
totalPrice​
Total Price of the Line Item after the Discount recalculation.
taxedPricePortions​
Array of MethodTaxedPrice​
Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. Automatically set after perMethodTaxRate is set.
taxedPrice​
TaxedItemPrice of the Line Item after the Discount recalculation.
type​
String​

DiscountedLineItemPriceForQuantity

quantity​
Long​

Quantity of Line Items or Custom Line Items in the Cart.

discountedPrice​

Discounted price of the Line Item or Custom Line Item.

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

MethodTaxedPrice

shippingMethodKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
taxedPrice​
Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

LineItemStateTransition

Generated after a successful Transition LineItem State update action.
lineItemId​
String​
Unique identifier of the Line Item.
lineItemKey​
String​

User-defined identifier of the LineItem. Unique among LineItems in the Order.

transitionDate​
Date and time (UTC) the transition of the Line Item State was performed.
quantity​
Long​
Number of Line Items for which the State was transitioned.
fromState​
State the Line Item was transitioned from.
toState​
State the Line Item was transitioned to.
fromStateRef​
State the Line Item was transitioned from.
toStateRef​
State the Line Item was transitioned to.
type​
String​

on Custom Line Item

OrderCustomLineItemQuantityChanged

Generated after a successful Change CustomLineItem Quantity update action.
customLineItemId​
String​
Unique identifier of the Custom Line Item.
customLineItemKey​
String​
User-defined unique identifier of the Custom Line Item.
quantity​
Long​
Custom Line Item quantity after the Change Custom Line Item Quantity update action.
oldQuantity​
Long​
Custom Line Item quantity before the Change Custom Line Item Quantity update action.
type​
String​

OrderCustomLineItemDiscountSet

Generated after a successful recalculation of a Discount on a Custom Line Item.
customLineItemId​
String​
Unique identifier for the Custom Line Item.
customLineItemKey​
String​
User-defined unique identifier of the Custom Line Item.
discountedPricePerQuantity​
Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
taxedPrice​
TaxedItemPrice of the Custom Line Item after the Discount recalculation.
type​
String​

DiscountedLineItemPriceForQuantity

quantity​
Long​

Quantity of Line Items or Custom Line Items in the Cart.

discountedPrice​

Discounted price of the Line Item or Custom Line Item.

When multiple Cart Discounts apply to the same Line Item, the discounts are applied sequentially in the order determined by their sortOrder values (higher values are applied first). The price rounding mode specified by the Cart's priceRoundingMode field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.

DiscountedLineItemPrice

value​

Money value of the discounted Line Item or Custom Line Item.

When multiple discounts from includedDiscounts apply, they are applied sequentially based on the sortOrder of their associated Cart Discounts (discounts with higher sortOrder values are applied first). The Cart's priceRoundingMode field (RoundingMode) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
includedDiscounts​

Discount applicable on the Line Item or Custom Line Item.

DiscountedLineItemPortion

discount​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountRef​
A CartDiscountReference or DirectDiscountReference of the applicable discount on the Line Item.
discountedAmount​

Money value of the applicable discount.

When a Cart Discount with CartDiscountPatternTarget is used:
  • The value is zero for a (Custom) Line Item matching the triggerPattern, indicating it participated in the discount as a trigger.
  • The value is the actual discount amount for a (Custom) Line Item matching the targetPattern.

TaxedItemPrice

totalNet​

Total net amount of the Line Item or Custom Line Item.

totalGross​

Total gross amount of the Line Item or Custom Line Item.

taxPortions​
Array of TaxPortion​

Taxable portions added to the total net price.

Calculated from the TaxRates.
totalTax​
Total tax applicable for the Line Item or Custom Line Item. Automatically calculated as the difference between the totalGross and totalNet values.

TaxPortion

Represents the portions that sum up to the totalGross field of a TaxedPrice. The portions are calculated from the TaxRates. If a tax rate has SubRates, they are used and can be identified by name. Tax portions from line items that have the same rate and name will be accumulated to the same tax portion.

rate​
Float​

A number in the range 0-1.

amount​

Money value of the tax portion.

name​
String​

Name of the tax portion.

CustomLineItemStateTransition

Generated after a successful Transition CustomLineItem State update action.
customLineItemId​
String​
Unique identifier of the Custom Line Item.
customLineItemKey​
String​
User-defined unique identifier of the Custom Line Item.
transitionDate​
Date and time (UTC) the transition of the Custom Line Item State was performed.
quantity​
Long​
Number of Custom Line Items for which the State was transitioned.
fromState​
State the Custom Line Item was transitioned from.
toState​
State the Custom Line Item was transitioned to.
fromStateRef​
State the Custom Line Item was transitioned from.
toStateRef​
State the Custom Line Item was transitioned to.
type​
String​

on Delivery

DeliveryAddressSet

Generated after a successful Set Delivery Address update action.
deliveryId​
String​
Unique identifier of the Delivery.
address​
Address after the Set Delivery Address update action.
oldAddress​
Address before the Set Delivery Address update action.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

ParcelAddedToDelivery

Generated after a successful Add Parcel to Delivery update action.
delivery​
Unique identifier of the Delivery.
parcel​
Parcel that was added to the Delivery.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

Delivery

Contains information on how items are shipped to Customers, for example, a delivery note.

id​
String​

Unique identifier of the Delivery.

key​
String​

User-defined identifier of the Delivery. Unique among Deliveries in the Order.

createdAt​

Date and time (UTC) the Delivery was created.

items​
Array of DeliveryItem​

Line Items or Custom Line Items that are delivered.

parcels​
Array of Parcel​

Information regarding the appearance, content, and shipment of a Parcel.

address​

Address to which Parcels are delivered.

custom​

Custom Fields of the Delivery.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

ParcelRemovedFromDelivery

Generated after a successful Remove Parcel from Delivery update action.
deliveryId​
String​
Unique identifier of the Delivery.
parcel​
Parcel that was removed from the Delivery.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

Parcel

Information regarding the appearance, content, and shipment of a Parcel.

id​
String​

Unique identifier of the Parcel.

key​
String​

User-defined unique identifier of the Parcel.

createdAt​

Date and time (UTC) the Parcel was created.

measurements​

Information about the dimensions of the Parcel.

trackingData​

Shipment tracking information of the Parcel.

items​
Array of DeliveryItem​

Line Items or Custom Line Items delivered in this Parcel.

custom​

Custom Fields of the Parcel.

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

DeliveryItemsUpdated

Generated after a successful Set Delivery Items update action.
deliveryId​
String​
Unique identifier of the Delivery.
items​
Array of DeliveryItem​
Delivery Items after the Set Delivery Items update action.
oldItems​
Array of DeliveryItem​
Delivery Items before the Set Delivery Items update action.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

DeliveryCustomFieldAdded

Generated after adding a Custom Field to a Delivery using the Set CustomField update action.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
deliveryId​
String​
Unique identifier of the Delivery.
type​
String​

DeliveryCustomFieldChanged

Generated when an existing Custom Field on a Delivery has been changed using the Set CustomField update action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
previousValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the name on the Delivery before, a Delivery Custom Field Added Message is generated instead.
deliveryId​
String​
Unique identifier of the Delivery.
type​
String​

DeliveryCustomFieldRemoved

Generated when a Custom Field has been removed from the Delivery using the Set CustomField update action.
name​
String​

Name of the Custom Field that was removed.

deliveryId​
String​
Unique identifier of the Delivery.
type​
String​

DeliveryCustomTypeSet

Generated after adding a Custom Type to a Delivery using the Set Custom Type update action.
customFields​

The Custom Fields that have been set.

previousTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
deliveryId​
String​
Unique identifier of the Delivery.
type​
String​

DeliveryCustomTypeRemoved

Generated after removing a Custom Type from a Delivery using the Set Custom Type update action with empty parameters.
deliveryId​
String​
Unique identifier of the Delivery.
previousTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
type​
String​

on Parcel

ParcelMeasurementsUpdated

Generated after a successful Set Parcel Measurements update action.
deliveryId​
String​
Unique identifier of the Delivery.
parcelId​
String​
Unique identifier of the Parcel.
measurements​
The Parcel Measurements that were set on the Parcel.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

ParcelMeasurements

heightInMillimeter​
Int​

Height of the Parcel.

lengthInMillimeter​
Int​

Length of the Parcel.

widthInMillimeter​
Int​

Width of the Parcel.

weightInGram​
Int​

Weight of the Parcel.

ParcelTrackingDataUpdated

Generated after a successful Set Parcel Tracking Data update action.
deliveryId​
String​
Unique identifier of the Delivery.
parcelId​
String​
Unique identifier of the Parcel.
trackingData​
The Tracking Data that was added to the Parcel.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

TrackingData

Information that helps track a Parcel.

trackingId​
String​

Identifier to track the Parcel.

carrier​
String​

Name of the carrier that delivers the Parcel.

provider​
String​

Name of the provider that serves as facade to several carriers.

providerTransaction​
String​
Transaction identifier with the provider.
isReturn​
Boolean​
Whether the Parcel is being returned. If false, the Parcel is being delivered to the customer.

ParcelItemsUpdated

Generated after a successful Set Parcel Items update action.
deliveryId​
String​
Unique identifier of the Delivery.
parcelId​
String​
Unique identifier of the Parcel.
items​
Array of DeliveryItem​
Delivery Items after the Set Parcel Items update action.
oldItems​
Array of DeliveryItem​
Delivery Items before the Set Parcel Items update action.
shippingKey​
String​
User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.
type​
String​

DeliveryItem

id​
String​
id of the LineItem or CustomLineItem delivered.
quantity​
Long​

Quantity of Line Items or Custom Line Items delivered.

on Return Item

OrderReturnShipmentStateChanged

Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.
returnItemId​
String​
Unique identifier of the ReturnItem.
returnShipmentState​
State of the ReturnItem after the Set Return Shipment State update action.
Can be Advised, BackInStock, Returned, or Unusable​
type​
String​

ReturnShipmentState

Advised
BackInStock
Returned
Unusable

on Custom Fields and Types

OrderCustomFieldAdded

Generated after adding a Custom Field using the Set CustomField.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
type​
String​

OrderCustomFieldChanged

Generated when an existing Custom Field has been changed using the Set CustomField action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
previousValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the name on the Order before, an Order Custom Field Added Message is generated instead.
type​
String​

OrderCustomFieldRemoved

Generated when a Custom Field has been removed from the Order using the Set CustomField action.
name​
String​

Name of the Custom Field that was removed.

type​
String​

OrderCustomTypeSet

Generated after a successful Set Custom Type.
customFields​

The Custom Fields that have been set.

previousTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
type​
String​

OrderCustomTypeRemoved

Generated after a successful Set Custom Type with empty parameters.
previousTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
type​
String​

Recurring Order Messages

RecurringOrderCreated

Generated after a successful Create RecurringOrder request.
recurringOrder​
RecurringOrder that was created.
type​
String​

RecurringOrderDeleted

Generated after a successful Delete RecurringOrder request.
recurringOrder​
RecurringOrder that was deleted.
type​
String​

RecurringOrderStateChanged

The GraphQL fields recurringOrderState and oldRecurringOrderState correspond to the fields state and oldState in RecurringOrderStateChangedMessage in REST.
recurringOrderState​
Can be Active, Canceled, Expired, Failed, or Paused​
oldRecurringOrderState​
Can be Active, Canceled, Expired, Failed, or Paused​
type​
String​

RecurringOrderFailed

Generated after a RecurringOrder failed to process an Order.
cartId​
String​
ID of the Cart used in the failed Order creation attempt.
failedAt​

Date and time (UTC) when the Order creation attempt failed.

failureReason​
String​

Description of why the Order creation failed, such as insufficient stock.

orderScheduledAt​

Date and time (UTC) the Order was scheduled to be created.

errors​

Errors due to which the Order creation failed.

type​
String​

RecurringOrderFailureError

The error object represents the API error model.

code​
String​

Error identifier

message​
String​

Plain text description of the cause of the error.

details​
Json​
The whole error object returning from the API (including the error-specific additional fields). See https://docs.commercetools.com/api/errors#carts-and-orders for details.

RecurringOrderStateTransition

Generated after a successful Transition State update action.
force​
Boolean​
Whether State transition validations were turned off during the Transition State update action.
state​
RecurringOrderState after the Transition State update action.
oldState​
RecurringOrderState before the Transition State update action.
stateRef​
RecurringOrderState after the Transition State update action.
oldStateRef​
RecurringOrderState before the Transition State update action.
type​
String​

RecurringOrderStartsAtSet

Generated after a successful Set Starts At update action.
startsAt​
Start date and time of the Recurring Order after the Set Starts At update action.
oldStartsAt​
Start date and time of the Recurring Order before the Set Starts At update action.
type​
String​

RecurringOrderExpiresAtSet

Generated after a successful Set Expires At update action.
newExpiresAt​
Expiration date and time of the Recurring Order after the Set Expires At update action.
oldExpiresAt​
Expiration date and time of the Recurring Order before the Set Expires At update action.
type​
String​

RecurringOrderScheduleSet

Generated after a successful Set Schedule update action.
recurrencePolicySchedule​
Schedule of the Recurring Order after the Set Schedule update action.
oldRecurrencePolicySchedule​
Schedule of the Recurring Order before the Set Schedule update action.
type​
String​

RecurringOrderKeySet

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

RecurringOrderNowRequested

Generated after a successful Request Order Now update action. This Message is generated when the request is accepted, not when the Order is created. The resulting Order generates the OrderCreatedFromRecurringOrder Message.
requestedAt​

Date and time (UTC) the early Order was requested.

reason​
String​
Note provided in the Request Order Now update action.
type​
String​

on Custom Fields and Types

RecurringOrderCustomTypeSet

Generated after a successful Set Custom Type.
customFields​

The Custom Fields that have been set.

previousTypeId​
String​
id of the previous Custom Type. Absent if there was no previous Custom Type present.
type​
String​

RecurringOrderCustomTypeRemoved

Generated after a successful Set Custom Type with empty parameters.
previousTypeId​
String​
id of the Custom Type that was removed. Absent if there was no previous Custom Type present.
type​
String​

RecurringOrderCustomFieldAdded

Generated after adding a Custom Field using the Set CustomField.
name​
String​

Name of the Custom Field that was added.

value​
Json​
The added CustomFieldValue based on the FieldType.
type​
String​

RecurringOrderCustomFieldChanged

Generated when an existing Custom Field has been changed using the Set CustomField action.
name​
String​

Name of the Custom Field that changed.

value​
Json​
CustomFieldValue based on the FieldType after the Set CustomField update action.
previousValue​
Json​
CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the name on the Order before, an Order Custom Field Added Message is generated instead.
type​
String​

RecurringOrderCustomFieldRemoved

Generated when a Custom Field has been removed from the Order using the Set CustomField action.
name​
String​

Name of the Custom Field that was removed.

type​
String​