25 May 2023
CartsOrdersGraphQL
We have added support for external tax rates and tax amounts on multiple Shipping Methods. You can now target individual Shipping Methods by including a
shippingKey when using the Set ShippingMethod TaxAmount and Set ShippingMethod TaxRate update actions for Carts and Order Edits.Changes:
-
[API] Added the
shippingKeyfield to the following update actions on Carts: -
[API] Added the
shippingKeyfield to the following update actions on Order Edits: -
[GraphQL API] Changed the
SetStagedOrderShippingMethodTaxRateOutputtype:- Added the
shippingKeyfield to theSetStagedOrderShippingMethodTaxRateOutputtype.
- Added the
-
[GraphQL API] Changed the
SetStagedOrderShippingMethodTaxAmounttype:- Input field
shippingKeywas added toSetStagedOrderShippingMethodTaxAmounttype
- Input field
-
[GraphQL API] Changed the
SetCartShippingMethodTaxRatetype:- Input field
shippingKeywas added toSetCartShippingMethodTaxRatetype
- Input field
-
[GraphQL API] Changed the
SetStagedOrderShippingMethodTaxRatetype:- Input field
shippingKeywas added toSetStagedOrderShippingMethodTaxRatetype
- Input field
-
[GraphQL API] Changed the
SetCartShippingMethodTaxAmounttype:- Input field
shippingKeywas added toSetCartShippingMethodTaxAmounttype
- Input field
-
[GraphQL API] Changed the
SetStagedOrderShippingMethodTaxAmountOutputtype:- Added the
shippingKeyfield to theSetStagedOrderShippingMethodTaxAmountOutputtype.
- Added the
The following changes were introduced in terms of GraphQL SDL:
extend type SetStagedOrderShippingMethodTaxRateOutput {
shippingKey: String
}
extend type SetStagedOrderShippingMethodTaxAmountOutput {
shippingKey: String
}
extend input SetStagedOrderShippingMethodTaxAmount {
shippingKey: String
}
extend input SetCartShippingMethodTaxRate {
shippingKey: String
}
extend input SetStagedOrderShippingMethodTaxRate {
shippingKey: String
}
extend input SetCartShippingMethodTaxAmount {
shippingKey: String
}