- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderShippingMethodsStep - Medusa Core Workflows Reference
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_MybeJiTRPUh5942fr"9 })10 }11)
Input#
UpdateOrderShippingMethodsStepInput
UpdateOrderShippingMethodsStepInputThe order shipping methods to update.
UpdateOrderShippingMethodsStepInput
UpdateOrderShippingMethodsStepInputid
stringThe ID of the shipping method.
id
stringname
stringOptionalThe name of the shipping method.
name
stringOptionalshipping_option_id
stringOptionalThe associated shipping option's ID.
shipping_option_id
stringOptionalThe amount of the shipping method.
data
Record<string, unknown>OptionalThe data of the shipping method.
data
Record<string, unknown>OptionalThe tax lines of the shipping method.
The adjustments of the shipping method.
Output#
OrderShippingMethodDTO[]
OrderShippingMethodDTO[]
OrderShippingMethodDTO[]
OrderShippingMethodDTO[]OrderShippingMethodDTO
OrderShippingMethodDTOThe order shipping method details.
OrderShippingMethodDTO
OrderShippingMethodDTOWas this page helpful?