18 December 2024
CartsOrdersGraphQL
You can now pass Custom Fields when using the Set Custom Shipping Method update actions on Carts and Order Edits. For Carts, use the Set Custom ShippingMethod action, and for Order Edits, use either the Set Custom ShippingMethod action or the Set ShippingAddress and Custom ShippingMethod action.
Changes:
- 
[API] Added optional
customfield to Set Custom ShippingMethod on Carts. - 
[API] Added optional
customfield to Set Custom ShippingMethod and Set ShippingAddress and Custom ShippingMethod on Order Edits. - 
[GraphQL API] Changed the
SetCartCustomShippingMethodtype:- Input field 
customwas added toSetCartCustomShippingMethodtype 
 - Input field 
 - 
[GraphQL API] Changed the
SetStagedOrderCustomShippingMethodtype:- Input field 
customwas added toSetStagedOrderCustomShippingMethodtype 
 - Input field 
 - 
[GraphQL API] Changed the
SetStagedOrderShippingAddressAndCustomShippingMethodtype:- Input field 
customwas added toSetStagedOrderShippingAddressAndCustomShippingMethodtype 
 - Input field 
 - 
[GraphQL API] Changed the
SetStagedOrderShippingAddressAndCustomShippingMethodOutputtype:- Added the 
customfield to theSetStagedOrderShippingAddressAndCustomShippingMethodOutputtype 
 - Added the 
 - 
[GraphQL API] Changed the
SetStagedOrderCustomShippingMethodOutputtype:- Added the 
customfield to theSetStagedOrderCustomShippingMethodOutputtype 
 - Added the 
 
The following changes were introduced in terms of GraphQL SDL:
extend type SetStagedOrderCustomShippingMethodOutput {
  custom: CustomFieldsCommand
}
extend type SetStagedOrderShippingAddressAndCustomShippingMethodOutput {
  custom: CustomFieldsCommand
}
extend input SetCartCustomShippingMethod {
  custom: CustomFieldsDraft
}
extend input SetStagedOrderCustomShippingMethod {
  custom: CustomFieldsDraft
}
extend input SetStagedOrderShippingAddressAndCustomShippingMethod {
  custom: CustomFieldsDraft
}