- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createShippingOptionsPriceSetsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createShippingOptionsPriceSetsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates price sets for one or more shipping options.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createShippingOptionsPriceSetsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = createShippingOptionsPriceSetsStep({8 "id": "id_7BHawuw3updU",9 "prices": [{10 "currency_code": "bif",11 "amount": 2112 }]13 })14 }15)
Input#
CreateShippingOptionsPriceSetsStepInput
CreateShippingOptionsPriceSetsStepInputThe data to create price sets for shipping options.
CreateShippingOptionsPriceSetsStepInput
CreateShippingOptionsPriceSetsStepInputid
stringThe ID of the shipping option.
id
stringprices
(ShippingOptionsPriceCurrencyCode | ShippingOptionsPriceRegionId)[]The prices to create for the shipping option.
prices
(ShippingOptionsPriceCurrencyCode | ShippingOptionsPriceRegionId)[]Output#
object[]
object[]
object[]
object[]id
stringThe ID of the shipping option.
id
stringpriceSetId
stringThe ID of the price set.
priceSetId
stringWas this page helpful?