Skip to main content

Get Tax Entity Listing

Request

GET:/{accountBookId}/taxentity/listing

Request Parameters

ParameterDescriptionType
pagePage index of returned records. Each page contains at most 100 records. Using a page index beyond the number of available pages will result in empty result.numberrequired
fieldList of fields to be included in records returned by query. Field names can be found here. (case-insensitive)array[string]

Example Request URL:

Example: Get listing of tax entities with additional "phone" and "address" fields in listing records.

Parameters:
accountBookId = 1
page = 1
field = ["phone", "address"]

URL:
GET: https://accounting-api.autocountcloud.com/1/taxentity/listing?field=phone&field=address&page=1

Response

Success Response

Status Code: 200

Response Body

FieldDescriptionType
dataResponse data.array[Tax Entity View Model]
totalCountNumber of records retrieved.number
Example Success Response Body
{
"data": [
{
"TaxEntityId": 1,
"Name": "Apparel Supplier",
"TIN": "C70156814709",
"Classification": "B",
"BusinessRegistrationNumber": "467189881221",
"IdentityType": null,
"IdentityNo": null,
"Phone": "03-5192 9527",
"Address": "Jalan Wawasan 4/12, Pusat Bandar Puchong, Puchong, Selangor"
},
{
"TaxEntityId": 2,
"Name": "Furniture Supplier",
"TIN": "",
"Classification": "I",
"BusinessRegistrationNumber": null,
"IdentityType": "MyKAD",
"IdentityNo": "746250089733",
"Phone": "012-555 3464",
"Address": "No. 33, Jln Sungai Rasa, Sungai Rasa, Klang, Selangor"
}
],
"totalCount": 2
}

Error Response

Response Body

object: Error Response Model

Example Error Response Body
{
"statusCode": 401,
"message": "401 Unauthorized."
}