Add entity salestaxes
add_entity_salestaxesAdd several sales taxes to one entity by their ids, in a single transaction. Each id is copied onto the entity as a fresh tax instance; the tool does not deduplicate, so passing a tax already present (or the same id twice) adds another copy. If the target entity no longer exists it returns an {:error true} map rather than throwing. To add a single tax to one entity use add_entity_salestax; to apply one existing tax across many entities use add_salestax_to_entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity kind to add sales taxes to, e.g. "expense", "invoice". | |
| taxids | Yes | Ids of existing salestax definitions to attach to the entity. | |
| entityid | Yes | Id of the entity to add sales taxes to. |