Tax

Define tax codes and rates for sales and purchase transactions.

Path Parameter::AUTOKEY (integer) — internal auto-numbered ID, NOT the code

Endpoints

GET
/tax

List all tax codes

POST
/tax

Create new tax code

PUT
/tax/:AUTOKEY

Update tax by internal ID

DELETE
/tax/:AUTOKEY

Delete tax by internal ID

Fields

FieldTypeRequiredNotes
autokeyintegerNoAuto-assigned internal ID. Used in URL path for PUT/DELETE.
codestring
Yes
Short tax code identifier (e.g., ST-6%).
descriptionstring
Yes
Full tax name (e.g., SST 6%).
taxtypeinteger
Yes
Tax type code. 0 = No Tax/Exempt. Required field.
taxratedecimalNoTax percentage. For 6% use 6 (not 0.06).
Default: null
taxaccountstringNoTax account code. Get from GET /account.
Default: null
isdefaultbooleanNoSet as default tax for transactions.
Default: false
isactivebooleanNoActive status flag.
Default: true

Examples

POST — Create Tax

POST /tax
{
  "code": "ST-6%",
  "description": "SST 6%",
  "taxtype": 0
}

Response (200 OK)

{
  "autokey": 1,
  "code": "ST-6%",
  "description": "SST 6%",
  "taxtype": 0,
  "taxrate": null,
  "taxaccount": null,
  "isdefault": false,
  "isactive": true,
  "lastmodified": 1727664000
}

DELETE (by autokey, not code)

DELETE /tax/1

Response: "OK" (plain text)