Loading...
Was this page helpful?
This documentation provides a reference to the createTaxRates
method. This belongs to the Tax Module.
This method creates tax rates.
1const taxRates = await taxModuleService.createTaxRates([2 {3 tax_region_id: "txreg_123",4 name: "Default rate",5 rate: 10,6 },7 {8 tax_region_id: "txreg_123",9 name: "Custom rate",10 rate: 15,11 rules: [12 {13 reference: "product_type",14 reference_id: "ptyp_1",15 },16 {17 reference: "product",18 reference_id: "prod_123",19 },20 ],21 },22])
data
CreateTaxRateDTO[]Promise
Promise<TaxRateDTO[]>This method creates a tax rate.
data
CreateTaxRateDTOPromise
Promise<TaxRateDTO>