List of tax codes
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | purchases.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=taxcodes |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=taxcodes&company=1
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 11,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"taxCode": 111,
"taxCodeDescription": "111 (AU 111%)",
"variable_selected": false
},
{
"taxCode": 0,
"taxCodeDescription": "0 (UK 0%)",
"variable_selected": true
},
{
"taxCode": 10,
"taxCodeDescription": "10 (US 10%)",
"variable_selected": false
},
{
"taxCode": 56,
"taxCodeDescription": "56 (ZA 1%)",
"variable_selected": false
}
]
}