Skip to main content
Skip to main content

createGeoZones - Fulfillment Module Reference

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

createGeoZones(data, sharedContext?): Promise<GeoZoneDTO[]>

This method creates geo zones.

Example

const geoZones =
await fulfillmentModuleService.createGeoZones([
{
type: "country",
service_zone_id: "serzo_123",
country_code: "us",
},
{
type: "city",
service_zone_id: "serzo_321",
province_code: "VT",
city: "Vermont",
country_code: "us",
},
])

Parameters

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

Returns

PromisePromise<GeoZoneDTO[]>Required
The created geo zones.

createGeoZones(data, sharedContext?): Promise<GeoZoneDTO>

This method creates a geo zones.

Example

const geoZones =
await fulfillmentModuleService.createGeoZones({
type: "country",
service_zone_id: "serzo_123",
country_code: "us",
})

Parameters

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

Returns

PromisePromise<GeoZoneDTO>Required
The created geo zones.
Was this section helpful?