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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>",
"entityid": "<entityid>",
"taxids": "<taxids>"
},
"name": "add_entity_salestaxes"
}
}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. |