25 May 2023
HTTP API
Enhancement
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 shippingKey field to the following update actions on Carts:
  • [API] Added the shippingKey field to the following update actions on Order Edits:
  • [GraphQL API] Changed the SetStagedOrderShippingMethodTaxRateOutput type:
    • Added the shippingKey field to the SetStagedOrderShippingMethodTaxRateOutput type.
  • [GraphQL API] Changed the SetStagedOrderShippingMethodTaxAmount type:
    • Input field shippingKey was added to SetStagedOrderShippingMethodTaxAmount type
  • [GraphQL API] Changed the SetCartShippingMethodTaxRate type:
    • Input field shippingKey was added to SetCartShippingMethodTaxRate type
  • [GraphQL API] Changed the SetStagedOrderShippingMethodTaxRate type:
    • Input field shippingKey was added to SetStagedOrderShippingMethodTaxRate type
  • [GraphQL API] Changed the SetCartShippingMethodTaxAmount type:
    • Input field shippingKey was added to SetCartShippingMethodTaxAmount type
  • [GraphQL API] Changed the SetStagedOrderShippingMethodTaxAmountOutput type:
    • Added the shippingKey field to the SetStagedOrderShippingMethodTaxAmountOutput type.

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
}