Skip to main content
Skip to main content

createTaxRegions - Tax Module Reference

This documentation provides a reference to the createTaxRegions method. This belongs to the Tax Module.

createTaxRegions(data, sharedContext?): Promise<TaxRegionDTO>

This method creates a tax region.

Example

const taxRegion = await taxModuleService.createTaxRegions({
country_code: "us",
})

Parameters

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

Returns

PromisePromise<TaxRegionDTO>Required
The created tax region.

createTaxRegions(data, sharedContext?): Promise<TaxRegionDTO[]>

This method creates tax regions.

Example

const taxRegions = await taxModuleService.createTaxRegions([
{
country_code: "us",
},
{
country_code: "gb",
},
])

Parameters

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

Returns

PromisePromise<TaxRegionDTO[]>Required
The created tax regions.
Was this section helpful?