- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createServiceZonesStep - Medusa Core Workflows Reference
This documentation provides a reference to the createServiceZonesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more service zones.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createServiceZonesStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = createServiceZonesStep({8 "name": "Gus",9 "fulfillment_set_id": "{value}"10 })11 }12)
Input#
CreateServiceZonesStepInput
CreateServiceZonesStepInputThe service zones to create.
CreateServiceZonesStepInput
CreateServiceZonesStepInputname
stringThe name of the service zone.
name
stringfulfillment_set_id
stringThe associated fulfillment set's ID.
fulfillment_set_id
stringgeo_zones
(Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id">)[]OptionalThe geo zones associated with the service zone.
geo_zones
(Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id">)[]OptionalOutput#
ServiceZoneDTO[]
ServiceZoneDTO[]
ServiceZoneDTO[]
ServiceZoneDTO[]ServiceZoneDTO
ServiceZoneDTOThe service zone details.
ServiceZoneDTO
ServiceZoneDTOWas this page helpful?