Withholding Tax
Withholding tax codes with the debit and credit accounts used when posting.
Path Parameter:
:AUTOKEY (integer) — internal ID, not a codeEndpoints
GET
/whtaxList withholding tax codes with pagination and filters
GET
/whtax/:AUTOKEYGet a single withholding tax code by autokey
POST
/whtaxCreate a new withholding tax code
PUT
/whtax/:AUTOKEYUpdate a withholding tax code by autokey
DELETE
/whtax/:AUTOKEYDelete a withholding tax code by autokey
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| autokey | integer | No | Internal auto-numbered ID used in the URL path. |
| code | string | Yes | Withholding tax code. Proven: "WHT-10". |
| description | string | Yes | Description. Proven: "WHT 10%". |
| taxaccountdr | string | Yes | Debit account code. Proven: "310-000". |
| taxaccountcr | string | Yes | Credit account code. Proven: "310-000". |
| taxrate | decimal | No | Tax rate percentage. |
| isdefault | boolean | No | Default flag. |
| isactive | boolean | No | Active flag. |
| lastmodified | integer | No | Unix timestamp, read-only. |
Examples
POST — Create Withholding Tax
POST /whtax
{
"code": "WHT-10",
"description": "WHT 10%",
"taxaccountdr": "310-000",
"taxaccountcr": "310-000"
}GET — List Withholding Tax Codes
GET /whtax?offset=0Notes
- The account fields are taxaccountdr and taxaccountcr — there is no taxaccount field on this entity.
