Skip to main content
Skip to main content

createServiceZones - Fulfillment Module Reference

This documentation provides a reference to the createServiceZones method. This belongs to the Fulfillment Module.

createServiceZones(data, sharedContext?): Promise<ServiceZoneDTO[]>

This method creates service zones.

Example

const serviceZones =
await fulfillmentModuleService.createServiceZones([
{
name: "Nordic Shipping Methods",
fulfillment_set_id: "fuset_123",
},
{
name: "Pickup Service Area",
fulfillment_set_id: "fuset_321",
},
])

Parameters

dataCreateServiceZoneDTO[]Required
The service zones to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ServiceZoneDTO[]>Required
The created service zones.

createServiceZones(data, sharedContext?): Promise<ServiceZoneDTO>

This method creates a service zone.

Example

const serviceZone =
await fulfillmentModuleService.createServiceZones({
name: "Nordic Shipping Methods",
fulfillment_set_id: "fuset_123",
})

Parameters

The service zone to be created.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ServiceZoneDTO>Required
The created service zone.
Was this section helpful?