Queries and mutations for managing Order Edits in the platform.
Queries
Query Order Edits
| Arguments | |
|---|---|
whereString | |
sortArray of String | |
limitInt | |
offsetInt | |
Get Order Edit
| Arguments | |
|---|---|
idString | Queries with specified ID |
keyString | Queries with specified key |
Mutations
Create Order Edit
Update Order Edit
| Arguments | |
|---|---|
versionLong | |
actionsArray of OrderEditUpdateAction | |
dryRunBoolean | Default: false |
idString | Queries with specified ID |
keyString | Queries with specified key |
Delete Order Edit
Apply Order Edit
Output types
OrderEdit
keyString | User-defined unique identifier of the Order Edit. |
resourceRef | Reference to the Order updated with this edit. |
resource | Reference to the Order updated with this edit. |
stagedActionsArray of StagedOrderUpdateActionOutput | Update actions applied to the Order referenced by resource. |
result | For applied edits, it's a summary of the changes on the Order. For unapplied edits, it's a preview of the changes. |
commentString | User-defined information regarding the Order Edit. |
custom | Custom Fields of the Order Edit. |
idString | Unique identifier of the Order Edit. |
versionLong | Current version of the Order Edit. |
createdAt | Date and time (UTC) the Order Edit was initially created. |
lastModifiedAt | Date and time (UTC) the Order Edit was last updated. |
createdBy | IDs and references that created the OrderEdit. |
lastModifiedBy | IDs and references that last modified the OrderEdit. |
StagedOrderUpdateActionOutput
typeString |
OrderEditResult
typeString |
Order Edit Query Result
Input types
OrderEditDraft
keyString | User-defined unique identifier for the Order Edit. |
resource | Reference to the Order updated with this edit. |
stagedActionsArray of StagedOrderUpdateAction | Update actions to apply to the Order referenced in resource.
Cannot be updated if the edit has been applied. |
custom | Custom Fields for the Order Edit. |
commentString | User-defined description regarding the Order Edit. |
dryRunBoolean | Whether to preview the edited Order first without persisting it (dry run).
A dry run allows checking for potential errors when trying to apply the
stagedActions.Order API Extensions, if any, are also called in dry runs. |
OrderEditUpdateAction
addStagedAction | |
setComment | |
setCustomField | |
setCustomType | |
setKey | |
setStagedActions |
Update actions
Add StagedAction
stagedAction | Order update action to append to the stagedActions array. |
Set Comment
commentString | Value to set. If omitted, any existing value is removed. |
Set CustomField
nameString | Name of the Custom Field. |
valueString | If value is absent or null, this field will be removed if it exists.
Removing a field that does not exist returns an InvalidOperation error.
If value is provided, it is set for the field defined by name. |
Set Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set Key
keyString | Value to set. If omitted, any existing value is removed. |
Set StagedActions
stagedActionsArray of StagedOrderUpdateAction | Value to replace the stagedActions of the Order Edit. |
StagedOrderUpdateAction
addDelivery | |
addDiscountCode | |
addItemShippingAddress | |
addParcelToDelivery | |
addPayment | |
addReturnInfo | |
addShoppingList | |
changeCustomLineItemMoney | |
changeCustomLineItemQuantity | |
changeLineItemQuantity | |
changeOrderState | |
changePaymentState | |
changePriceRoundingMode | |
changeShipmentState | |
changeTaxCalculationMode | |
changeTaxMode | |
changeTaxRoundingMode | |
importCustomLineItemState | |
importLineItemState | |
removeCustomLineItem | |
removeDelivery | |
removeDiscountCode | |
removeItemShippingAddress | |
removeLineItem | |
removeParcelFromDelivery | |
removePayment | |
setBillingAddress | |
setBillingAddressCustomField | |
setBillingAddressCustomType | |
setCountry | |
setCustomField | |
setCustomLineItemCustomField | |
setCustomLineItemCustomType | |
setCustomLineItemShippingDetails | |
setCustomLineItemTaxAmount | |
setCustomLineItemTaxRate | |
setCustomShippingMethod | |
setCustomType | |
setCustomerEmail | |
setCustomerGroup | |
setCustomerId | |
setDeliveryAddress | |
setDeliveryAddressCustomField | |
setDeliveryAddressCustomType | |
setDeliveryCustomField | |
setDeliveryCustomType | |
setDeliveryItems | |
setDirectDiscounts | |
setDirectDiscountsIgnoreCartDiscounts | |
setEstimatedDelivery | |
setItemShippingAddressCustomField | |
setItemShippingAddressCustomType | |
setLineItemCustomField | |
setLineItemCustomType | |
setLineItemDistributionChannel | |
setLineItemPrice | |
setLineItemShippingDetails | |
setLineItemTaxAmount | |
setLineItemTaxRate | |
setLineItemTotalPrice | |
setLocale | |
setBusinessUnit | |
setOrderNumber | |
setOrderTotalTax | |
setParcelCustomField | |
setParcelCustomType | |
setParcelItems | |
setParcelMeasurements | |
setParcelTrackingData | |
setPurchaseOrderNumber | |
setReturnInfo | |
setReturnItemCustomField | |
setReturnItemCustomType | |
setReturnPaymentState | |
setReturnShipmentState | |
setShippingAddress | |
setShippingAddressAndCustomShippingMethod | |
setShippingAddressAndShippingMethod | |
setShippingAddressCustomField | |
setShippingAddressCustomType | |
setShippingCustomField | |
setShippingCustomType | |
setShippingMethod | |
setShippingMethodTaxAmount | |
setShippingMethodTaxRate | |
setShippingRateInput | |
setStore | |
transitionCustomLineItemState | |
transitionLineItemState | |
transitionState | |
updateItemShippingAddress | |
updateSyncInfo | |
addLineItem | |
addCustomLineItem |
Staged Order update actions
on Order
Set Order Number
orderNumberString |
Set Purchase Order Number
purchaseOrderNumberString |
Set Business Unit B2B B2X
businessUnit |
Set Customer ID
customerIdString |
Set Customer Email
emailString |
Set Customer Group
customerGroup |
Add LineItem
keyString | |
productIdString | |
skuString | |
quantityLong | |
variantIdInt | |
supplyChannel | |
distributionChannel | |
custom | |
addedAt | |
recurrenceInfo | |
externalTaxRate | |
externalPrice | |
externalTotalPrice | |
perMethodExternalTaxRateArray of MethodExternalTaxRateDraft | Default: [] |
inventoryMode | Can be None, TrackOnly, ReserveOnOrder, or ReserveOnCart |
shippingDetails |
LineItemRecurrenceInfoInputDraft
recurrencePolicy | |
expiresAt | |
priceSelectionMode | Can be Dynamic, or Fixed |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
BaseMoneyInput
centPrecision | |
highPrecision |
ExternalLineItemTotalPriceDraft
price | |
totalPrice |
MethodExternalTaxRateDraft
shippingMethodKeyString | User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode. |
taxRate | External Tax Rate for the Shipping Method, if the Cart has External TaxMode. |
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.
ItemShippingDetailsDraftType
targetsArray of ShippingTargetDraftType | Default: [] |
shippingTargetsArray of ShippingMethodTargetDraftType | Default: [] |
itemShippingAddressTargetsArray of ItemShippingAddressTargetDraftType | Default: [] |
ShippingTargetDraftType
quantityLong | |
addressKeyString | |
shippingMethodKeyString |
ShippingMethodTargetDraftType
quantityLong | |
shippingMethodKeyString |
ItemShippingAddressTargetDraftType
quantityLong | |
addressKeyString |
Remove LineItem
lineItemIdString | |
quantityLong | |
lineItemKeyString | |
externalPrice | |
externalTotalPrice | |
shippingDetailsToRemove |
BaseMoneyInput
centPrecision | |
highPrecision |
ExternalLineItemTotalPriceDraft
price | |
totalPrice |
ItemShippingDetailsDraftType
targetsArray of ShippingTargetDraftType | Default: [] |
shippingTargetsArray of ShippingMethodTargetDraftType | Default: [] |
itemShippingAddressTargetsArray of ItemShippingAddressTargetDraftType | Default: [] |
ShippingTargetDraftType
quantityLong | |
addressKeyString | |
shippingMethodKeyString |
ShippingMethodTargetDraftType
quantityLong | |
shippingMethodKeyString |
ItemShippingAddressTargetDraftType
quantityLong | |
addressKeyString |
Add CustomLineItem
nameArray of LocalizedStringItemInputType | |
keyString | |
money | |
slugString | |
taxCategory | |
externalTaxRate | |
quantityLong | |
custom | |
priceMode | Can be External, or Standard |
recurrenceInfo | |
shippingDetails |
BaseMoneyInput
centPrecision | |
highPrecision |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
CustomLineItemPriceMode
External- Cart discounts are deactivated for the custom line items with this price mode.
Standard- This is the default mode.
CustomLineItemRecurrenceInfoInputDraft
recurrencePolicy | |
expiresAt |
ItemShippingDetailsDraftType
targetsArray of ShippingTargetDraftType | Default: [] |
shippingTargetsArray of ShippingMethodTargetDraftType | Default: [] |
itemShippingAddressTargetsArray of ItemShippingAddressTargetDraftType | Default: [] |
ShippingTargetDraftType
quantityLong | |
addressKeyString | |
shippingMethodKeyString |
ShippingMethodTargetDraftType
quantityLong | |
shippingMethodKeyString |
ItemShippingAddressTargetDraftType
quantityLong | |
addressKeyString |
Remove CustomLineItem
customLineItemIdString | |
customLineItemKeyString |
Add Shopping List
shoppingList | |
supplyChannel | |
distributionChannel |
Set Order Total Tax
externalTotalGross | |
externalTaxPortionsArray of TaxPortionDraft | Default: [] |
TaxPortionDraft
totalGross field of a TaxedPrice.nameString | Name of the tax portion. |
rateFloat | A number in the range 0-1. |
amount | Money value for the tax portion. |
Change TaxMode
taxMode | Can be Disabled, External, ExternalAmount, or Platform |
TaxMode
Disabled- No taxes are added to the cart.
External- The tax rates are set externally per ExternalTaxRateDraft. A cart with this tax mode can only be ordered if all line items, all custom line items and the shipping method have an external tax rate set. The totalNet and totalGross as well as the taxPortions fields are calculated according to the taxRoundingMode.
ExternalAmount- The tax amounts and the tax rates as well as the tax portions are set externally per ExternalTaxAmountDraft. A cart with this tax mode can only be ordered if the cart itself and all line items, all custom line items and the shipping method have an external tax amount and rate set
Platform- The tax rates are selected from the TaxCategories based on the cart shipping address. The totalNet and totalGross as well as the taxPortions fields are calculated according to the taxRoundingMode.
Change Price RoundingMode
priceRoundingMode | Can be HalfDown, HalfEven, or HalfUp |
RoundingMode
HalfDown- [Round half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down)
HalfEven- [Round half to even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). Default rounding mode as used in IEEE 754 computing functions and operators.
HalfUp- [Round half up](https://en.wikipedia.org/wiki/Rounding#Round_half_up)
Change Tax RoundingMode
taxRoundingMode | Can be HalfDown, HalfEven, or HalfUp |
RoundingMode
HalfDown- [Round half down](https://en.wikipedia.org/wiki/Rounding#Round_half_down)
HalfEven- [Round half to even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even). Default rounding mode as used in IEEE 754 computing functions and operators.
HalfUp- [Round half up](https://en.wikipedia.org/wiki/Rounding#Round_half_up)
Change TaxCalculationMode
taxCalculationMode | Can be LineItemLevel, or UnitPriceLevel |
TaxCalculationMode
LineItemLevel- Default. This calculation mode calculates the taxes after the unit price is multiplied with the quantity. E.g. `($1.08 * 3 = $3.24) * 1.19 = $3.8556 -> $3.86 rounded`
UnitPriceLevel- This calculation mode calculates the taxes on the unit price before multiplying with the quantity. E.g. `($1.08 * 1.19 = $1.2852 -> $1.29 rounded) * 3 = $3.87`
Add DiscountCode
codeString | |
validateDuplicatesBoolean | Default: false |
Remove DiscountCode
discountCode |
Set DirectDiscounts
discountsArray of DirectDiscountDraft |
DirectDiscountDraft
value | Defines the effect the Discount will have. |
target | Defines what segment of the Cart will be discounted. If value is set to giftLineItem, this must not be set. |
participateInBestDealSelectionBoolean |
|
CartDiscountValueInput
relative | |
relativeCart | |
absolute | |
absoluteCart | |
fixed | |
fixedCart | |
giftLineItem |
RelativeDiscountValueInput
permyriadInt |
RelativeCartDiscountValueInput
permyriadInt | |
applicationMode | Can be ProportionateDistribution, EvenDistribution, or IndividualApplication |
DiscountApplicationMode
ProportionateDistributionEvenDistributionIndividualApplication
AbsoluteDiscountValueInput
moneyArray of MoneyInput |
AbsoluteCartDiscountValueInput
moneyArray of MoneyInput | |
applicationMode | Can be ProportionateDistribution, EvenDistribution, or IndividualApplication |
FixedPriceDiscountValueInput
moneyArray of CartDiscountValueBaseMoneyInput |
CartDiscountValueBaseMoneyInput
centPrecision | |
highPrecision | |
currencyCode | CurrencyCode and centAmount are deprecated. Please use Money(centPrecision) or HighPrecisionMoney(highPrecision). |
centAmountLong | CurrencyCode and centAmount are deprecated. Please use Money(centPrecision) or HighPrecisionMoney(highPrecision). |
FixedPriceCartDiscountValueInput
moneyArray of CartDiscountValueBaseMoneyInput | |
applicationMode | Can be ProportionateDistribution, EvenDistribution, or IndividualApplication |
GiftLineItemValueInput
product | |
variantIdInt | |
distributionChannel | |
supplyChannel |
CartDiscountTargetInput
lineItems | |
customLineItems | |
shipping | |
multiBuyLineItems | |
multiBuyCustomLineItems | |
totalPrice | |
pattern |
LineItemsTargetInput
predicateString |
CustomLineItemsTargetInput
predicateString |
ShippingTargetInput
dummyString |
MultiBuyLineItemsTargetInput
SelectionMode
CheapestMostExpensive
MultiBuyCustomLineItemsTargetInput
CartDiscountTotalPriceTargetInput
dummyString |
CartDiscountPatternTargetInput
triggerPatternArray of PatternComponentInput | |
targetPatternArray of PatternComponentInput | |
maxOccurrenceInt | |
selectionMode | Can be Cheapest, or MostExpensive |
PatternComponentInput
CountOnLineItemUnits | |
CountOnCustomLineItemUnits |
CountOnLineItemUnitsInput
predicateString | |
minCountInt | Default: 1 |
maxCountInt | |
excludeCountInt |
CountOnCustomLineItemUnitsInput
predicateString | |
minCountInt | Default: 1 |
maxCountInt | |
excludeCountDEPRECATEDInt | Please use 'triggerPattern' to exclude. |
Set DirectDiscountsIgnoreCartDiscounts
directDiscountsIgnoreCartDiscountsBoolean |
Add Payment
payment |
Remove Payment
payment |
Change PaymentState
paymentState | Can be BalanceDue, CreditOwed, Failed, Paid, or Pending |
PaymentState
BalanceDueCreditOwedFailedPaidPending
Set Billing Address
address |
Set Shipping Address
address |
Add ItemShippingAddress
address |
Remove ItemShippingAddress
addressKeyString |
Update ItemShippingAddress
address |
Set ShippingAddress and ShippingMethod
address | |
shippingMethod | |
externalTaxRate |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set ShippingAddress and Custom ShippingMethod
address | |
shippingMethodNameString | |
shippingRate | |
taxCategory | |
externalTaxRate | |
custom |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set ShippingMethod
shippingMethod | |
externalTaxRate | |
estimatedDelivery |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set Custom ShippingMethod
shippingMethodNameString | |
shippingRate | |
taxCategory | |
externalTaxRate | |
custom | |
estimatedDelivery |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set ShippingRateInput
shippingRateInput |
ShippingRateInputDraft
Classification | |
Score |
ClassificationShippingRateInputDraft
keyString | Key of the value used as a programmatic identifier. |
ScoreShippingRateInputDraft
scoreInt | Abstract value for categorizing a Cart. |
Add Delivery
deliveryKeyString | |
itemsArray of DeliveryItemDraftType | Default: [] |
parcelsArray of ParcelDataDraftType | Default: [] |
address | |
custom | |
shippingKeyString |
DeliveryItemDraftType
idString | |
quantityLong |
ParcelDataDraftType
keyString | |
measurements | |
trackingData | |
itemsArray of DeliveryItemDraftType | Default: [] |
custom |
ParcelMeasurementsDraftType
heightInMillimeterInt | |
lengthInMillimeterInt | |
widthInMillimeterInt | |
weightInGramInt |
TrackingDataDraftType
trackingIdString | |
carrierString | |
providerString | |
providerTransactionString | |
isReturnBoolean | Default: false |
Remove Delivery
deliveryIdString | |
deliveryKeyString |
Change ShipmentState
shipmentState | Can be Backorder, Canceled, Delayed, Delivered, Partial, Pending, Ready, or Shipped |
ShipmentState
BackorderCanceledDelayedDeliveredPartialPendingReadyShipped
Add ReturnInfo
itemsArray of ReturnItemDraftType | |
returnDate | |
returnTrackingIdString |
ReturnItemDraftType
keyString | |
quantityLong | |
lineItemIdString | |
customLineItemIdString | |
commentString | |
shipmentState | Can be Advised, BackInStock, Returned, or Unusable |
custom |
ReturnShipmentState
AdvisedBackInStockReturnedUnusable
Set ReturnInfo
itemsArray of ReturnInfoDraftType | Default: [] |
ReturnInfoDraftType
itemsArray of ReturnItemDraftType | |
returnDate | |
returnTrackingIdString |
ReturnItemDraftType
keyString | |
quantityLong | |
lineItemIdString | |
customLineItemIdString | |
commentString | |
shipmentState | Can be Advised, BackInStock, Returned, or Unusable |
custom |
ReturnShipmentState
AdvisedBackInStockReturnedUnusable
Set ReturnShipmentState
returnItemIdString | |
returnItemKeyString | |
shipmentState | Can be Advised, BackInStock, Returned, or Unusable |
ReturnShipmentState
AdvisedBackInStockReturnedUnusable
Set ReturnPaymentState
returnItemIdString | |
returnItemKeyString | |
paymentState | Can be Initial, NonRefundable, NotRefunded, or Refunded |
ReturnPaymentState
InitialNonRefundableNotRefundedRefunded
Change OrderState
orderState | Can be Cancelled, Complete, Confirmed, or Open |
OrderState
CancelledCompleteConfirmedOpen
Transition State
state | |
forceBoolean | Default: false |
Update SyncInfo
channel | |
syncedAt | |
externalIdString |
Set Locale
locale |
Set Country
country |
Set Store
store |
Set Estimated Delivery
estimatedDelivery | |
shippingKeyString |
Set Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set CustomField
nameString | |
valueString |
on Line Item
Change LineItem Quantity
lineItemIdString | |
quantityLong | |
lineItemKeyString | |
externalPrice | |
externalTotalPrice |
BaseMoneyInput
centPrecision | |
highPrecision |
ExternalLineItemTotalPriceDraft
price | |
totalPrice |
Set LineItem TaxRate
lineItemIdString | |
externalTaxRate | |
shippingKeyString | |
lineItemKeyString |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set LineItem TaxAmount
lineItemIdString | |
externalTaxAmount | |
shippingKeyString | |
lineItemKeyString |
ExternalTaxAmountDraft
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
totalGross | Total gross amount ( totalNet + taxPortions) of the Line Item or Custom Line Item. |
taxRate | Tax Rates and subrates of states and countries. |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set LineItem Price
lineItemIdString | |
externalPrice | |
lineItemKeyString |
BaseMoneyInput
centPrecision | |
highPrecision |
Set LineItem TotalPrice
lineItemIdString | |
externalTotalPrice | |
lineItemKeyString |
ExternalLineItemTotalPriceDraft
price | |
totalPrice |
BaseMoneyInput
centPrecision | |
highPrecision |
Set LineItem DistributionChannel
lineItemIdString | |
distributionChannel | |
lineItemKeyString |
Set LineItem ShippingDetails
lineItemIdString | |
shippingDetails | |
lineItemKeyString |
ItemShippingDetailsDraftType
targetsArray of ShippingTargetDraftType | Default: [] |
shippingTargetsArray of ShippingMethodTargetDraftType | Default: [] |
itemShippingAddressTargetsArray of ItemShippingAddressTargetDraftType | Default: [] |
ShippingTargetDraftType
quantityLong | |
addressKeyString | |
shippingMethodKeyString |
ShippingMethodTargetDraftType
quantityLong | |
shippingMethodKeyString |
ItemShippingAddressTargetDraftType
quantityLong | |
addressKeyString |
Set LineItem Custom Type
lineItemIdString | |
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString | |
lineItemKeyString |
Set LineItem CustomField
lineItemIdString | |
nameString | |
valueString | |
lineItemKeyString |
Transition LineItem State
lineItemIdString | |
lineItemKeyString | |
quantityLong | |
fromState | |
toState | |
actualTransitionDate |
Import LineItem State
lineItemIdString | |
lineItemKeyString | |
stateArray of ItemStateDraftType |
ItemStateDraftType
quantityLong | |
state |
on Custom Line Item
Change CustomLineItem Quantity
customLineItemIdString | |
customLineItemKeyString | |
quantityLong |
Set CustomLineItem TaxRate
customLineItemIdString | |
customLineItemKeyString | |
externalTaxRate | |
shippingKeyString |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set CustomLineItem TaxAmount
customLineItemIdString | |
customLineItemKeyString | |
externalTaxAmount | |
shippingKeyString |
ExternalTaxAmountDraft
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
totalGross | Total gross amount ( totalNet + taxPortions) of the Line Item or Custom Line Item. |
taxRate | Tax Rates and subrates of states and countries. |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Change CustomLineItem Money
customLineItemIdString | |
customLineItemKeyString | |
money |
BaseMoneyInput
centPrecision | |
highPrecision |
Set CustomLineItem ShippingDetails
customLineItemIdString | |
customLineItemKeyString | |
shippingDetails |
ItemShippingDetailsDraftType
targetsArray of ShippingTargetDraftType | Default: [] |
shippingTargetsArray of ShippingMethodTargetDraftType | Default: [] |
itemShippingAddressTargetsArray of ItemShippingAddressTargetDraftType | Default: [] |
ShippingTargetDraftType
quantityLong | |
addressKeyString | |
shippingMethodKeyString |
ShippingMethodTargetDraftType
quantityLong | |
shippingMethodKeyString |
ItemShippingAddressTargetDraftType
quantityLong | |
addressKeyString |
Set CustomLineItem Custom Type
customLineItemIdString | |
customLineItemKeyString | |
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set CustomLineItem CustomField
customLineItemIdString | |
customLineItemKeyString | |
nameString | |
valueString |
Transition CustomLineItem State
customLineItemIdString | |
customLineItemKeyString | |
quantityLong | |
fromState | |
toState | |
actualTransitionDate |
Import CustomLineItem State
customLineItemIdString | |
customLineItemKeyString | |
stateArray of ItemStateDraftType |
ItemStateDraftType
quantityLong | |
state |
on Billing Address
Set Billing Address Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set Billing Address CustomField
nameString | |
valueString |
on Shipping Address
Set Shipping Address Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set Shipping Address CustomField
nameString | |
valueString |
on ItemShipping Address
Set ItemShipping Address Custom Type
addressKeyString | |
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set ItemShipping Address CustomField
addressKeyString | |
nameString | |
valueString |
on Shipping Method
Set ShippingMethod TaxAmount
externalTaxAmount | |
shippingKeyString |
ExternalTaxAmountDraft
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
totalGross | Total gross amount ( totalNet + taxPortions) of the Line Item or Custom Line Item. |
taxRate | Tax Rates and subrates of states and countries. |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
Set ShippingMethod TaxRate
externalTaxRate | |
shippingKeyString |
ExternalTaxRateDraft
nameString | Name of the Tax Rate. |
amountFloat | Percentage in the range of 0-1.
|
country | Country for which the tax applies. |
stateString | State within the specified country. |
subRatesArray of SubRateDraft | 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 Default: amount.
These subrates are used to calculate the taxPortions field of a Cart or Order and the taxedPrice field of LineItems, CustomLineItems, and ShippingInfos.[] |
includedInPriceBoolean |
false |
taxRoundingTarget | Determines whether the Can be taxRoundingMode of the Cart or Order is applied to the net price or the tax amount when includedInPrice is true. The field is ignored if includedInPrice is false.Net, or TaxDefault: Net |
SubRateDraft
nameString | |
amountFloat |
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.
on Shipping
Set Shipping Custom Type
shippingKeyString | |
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set Shipping CustomField
shippingKeyString | |
nameString | |
valueString |
on Delivery
Set Delivery Address
deliveryIdString | |
deliveryKeyString | |
address |
Add Parcel to Delivery
deliveryIdString | |
deliveryKeyString | |
parcelKeyString | |
measurements | |
trackingData | |
itemsArray of DeliveryItemDraftType | Default: [] |
custom |
ParcelMeasurementsDraftType
heightInMillimeterInt | |
lengthInMillimeterInt | |
widthInMillimeterInt | |
weightInGramInt |
TrackingDataDraftType
trackingIdString | |
carrierString | |
providerString | |
providerTransactionString | |
isReturnBoolean | Default: false |
DeliveryItemDraftType
idString | |
quantityLong |
Remove Parcel from Delivery
parcelIdString | |
parcelKeyString |
Set Delivery Items
deliveryIdString | |
deliveryKeyString | |
itemsArray of DeliveryItemDraftType |
DeliveryItemDraftType
idString | |
quantityLong |
Set Delivery Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString | |
deliveryIdString | |
deliveryKeyString |
Set Delivery CustomField
nameString | |
valueString | |
deliveryIdString | |
deliveryKeyString |
on Delivery Address
Set Delivery Address Custom Type
deliveryIdString | |
deliveryKeyString | |
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString |
Set Delivery Address CustomField
deliveryIdString | |
deliveryKeyString | |
nameString | |
valueString |
on Parcel
Set Parcel Measurements
parcelIdString | |
parcelKeyString | |
measurements |
ParcelMeasurementsDraftType
heightInMillimeterInt | |
lengthInMillimeterInt | |
widthInMillimeterInt | |
weightInGramInt |
Set Parcel Tracking Data
parcelIdString | |
parcelKeyString | |
trackingData |
TrackingDataDraftType
trackingIdString | |
carrierString | |
providerString | |
providerTransactionString | |
isReturnBoolean | Default: false |
Set Parcel Items
parcelIdString | |
parcelKeyString | |
itemsArray of DeliveryItemDraftType |
DeliveryItemDraftType
idString | |
quantityLong |
Set Parcel Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString | |
parcelIdString | |
parcelKeyString |
Set Parcel CustomField
nameString | |
valueString | |
parcelIdString | |
parcelKeyString |
on ReturnItem
Set ReturnItem Custom Type
fieldsArray of CustomFieldInput | |
type | |
typeKeyString | |
typeIdString | |
returnItemIdString | |
returnItemKeyString |
Set ReturnItem CustomField
nameString | |
valueString | |
returnItemIdString | |
returnItemKeyString |