Loading...
Was this page helpful?
This documentation provides a reference to the updateOrderShippingMethodsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates order shipping methods.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { updateOrderShippingMethodsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = updateOrderShippingMethodsStep({8 "id": "id_u2XYix8iwNY7mvlkf994"9 })10 }11)
UpdateOrderShippingMethodsStepInput
UpdateOrderShippingMethodsStepInputid
stringname
stringOptionalshipping_option_id
stringOptionaldata
Record<string, unknown>OptionalOrderShippingMethodDTO[]
OrderShippingMethodDTO[]id
stringorder_id
stringname
stringamount
BigNumberValueraw_amount
BigNumberRawValueis_tax_inclusive
booleancreated_at
string | Dateupdated_at
string | Dateoriginal_total
BigNumberValueoriginal_subtotal
BigNumberValueoriginal_tax_total
BigNumberValuetotal
BigNumberValuesubtotal
BigNumberValuetax_total
BigNumberValuediscount_total
BigNumberValuediscount_tax_total
BigNumberValueraw_original_total
BigNumberRawValueraw_original_subtotal
BigNumberRawValueraw_original_tax_total
BigNumberRawValueraw_total
BigNumberRawValueraw_subtotal
BigNumberRawValueraw_tax_total
BigNumberRawValueraw_discount_total
BigNumberRawValueraw_discount_tax_total
BigNumberRawValuedescription
stringOptionalshipping_option_id
stringOptionaldata
Record<string, unknown>Optionalmetadata
null | Record<string, unknown>Optional