Skip to main content
Skip to main content

deleteTaxRateRules - Tax Module Reference

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

deleteTaxRateRules(taxRateRuleId, sharedContext?): Promise<void>

This method deletes a tax rate rule by its ID.

Example

await taxModuleService.deleteTaxRateRules("txrule_123")

Parameters

taxRateRuleIdstringRequired
The tax rate rule's ID.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the tax rate rule is deleted successfully.

deleteTaxRateRules(taxRateRuleIds, sharedContext?): Promise<void>

This method deletes tax rate rules by their IDs.

Example

await taxModuleService.deleteTaxRateRules([
"txrule_123",
"txrule_321",
])

Parameters

taxRateRuleIdsstring[]Required
The tax rate rules' IDs.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the tax rate rules are deleted successfully.
Was this section helpful?