Add entity salestax
add_entity_salestaxAdd a sales tax to an entity. To add several taxes at once, prefer add_entity_salestaxes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | "salestax" | "levy" | "withholding"; blank means salestax. | |
| name | No | Display name of the sales tax (e.g. "VAT"). | |
| rate | No | Sales tax rate as a DECIMAL FRACTION, e.g. 0.15 = 15% (NOT 15). A rate of 1.0 (100%) or higher is rejected. | |
| order | No | Stack position (default 0); components apply ascending. | |
| amount | No | Explicit sales tax amount; used instead of the rate when useamount is true. | |
| entity | Yes | Entity kind to add the sales tax to, e.g. "expense", "invoice". | |
| compound | No | When true, this tax stacks on lower-order taxes' totals (default false). | |
| entityid | Yes | Id of the entity to add the sales tax to. | |
| parentid | No | Id of an existing salestax definition to link, instead of defining one inline. | |
| exclusive | No | Whether the entity amount excludes this sales tax (tax added on top). | |
| taxsource | No | Stable locale rate-band identity, e.g. "locale:za/standard". | |
| treatment | No | "standard" | "zeroRated" | "exempt"; blank/unknown means infer. | |
| useamount | No | When true, use amount as the tax figure instead of computing from the rate. | |
| recoverable | No | Whether this sales tax is recoverable (claimable as input tax). | |
| referencenumber | No | Sales tax registration/reference number. |