- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createServiceZonesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createServiceZonesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more service zones. It's used by the Add Service Zone to Fulfillment Set Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create service zones within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateServiceZonesWorkflowInput
CreateServiceZonesWorkflowInput
CreateServiceZonesWorkflowInput
CreateServiceZonesWorkflowInputdata
CreateServiceZone[]The service zones to create.
data
CreateServiceZone[]Output#
CreateServiceZonesWorkflowOutput
CreateServiceZonesWorkflowOutputThe service zones to create.
CreateServiceZonesWorkflowOutput
CreateServiceZonesWorkflowOutputid
stringThe ID of the service zone.
id
stringname
stringThe name of the service zone.
name
stringmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>fulfillment_set
FulfillmentSetDTOThe fulfillment set assoiated with the service zone.
fulfillment_set
FulfillmentSetDTOfulfillment_set_id
stringThe fulfillment set id of the service zone.
fulfillment_set_id
stringgeo_zones
GeoZoneDTO[]The geo zones assoiated with the service zone.
geo_zones
GeoZoneDTO[]shipping_options
ShippingOptionDTO[]The shipping options assoiated with the service zone.
shipping_options
ShippingOptionDTO[]created_at
DateThe creation date of the service zone.
created_at
Dateupdated_at
DateThe update date of the service zone.
updated_at
Datedeleted_at
null | DateThe deletion date of the service zone.
deleted_at
null | DateWas this page helpful?