Skip to main content
Skip to main content

delete - Tax Module Reference

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

delete(taxRateIds, sharedContext?): Promise<void>

This method deletes tax rates by their IDs.

Example

await taxModuleService.delete(["txr_123", "txr_321"])

Parameters

taxRateIdsstring[]Required
The IDs of tax rates to delete.
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 rates are deleted successfully.

delete(taxRateId, sharedContext?): Promise<void>

This method deletes a tax rate by its ID.

Example

await taxModuleService.delete("txr_123")

Parameters

taxRateIdstringRequired
The tax rate'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 is deleted successfully.
Was this section helpful?