VismaBouwsoftAPICalls.v1_GET_VATCodes Method
v1_GET_VATCodes() as String

This API call is used to get fields of a(n) VATCode(s)

HTTP method API version
GET v1

Don’t forget to put the Authorization field in the header

API Path: /VATCodes/
or
API Path: /VATCodes/{id}

You can make this API call:
* without the key field id to get a list of VATCodes
* with the key field id as the path parameter (the specific id of the VATCode you want to get)

Fields

The following fields are available:

Field Name Type
id Number
code String
percent Number
co_contractor Boolean
description_nl String
description_en String
description_fr String
description_localized String

/VATCodes/

API Path: /VATCodes/

If everything succeeds the HTTP response status is 200
(200 OK)

If there is something wrong with the request, the response status and code is 400
(400 Bad Request)

If you forget to send the Authorization, the response status is 401
(401 Unauthorized)

If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/VATCodes

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: ADjfWxfjPAzSfrttIfzRqrllfVVGfGAIfmAkzVGlDAtGVOtbUm

Query Parameters :
ParameterName: limit, ParameterValue: 5
ParameterName: sort, ParameterValue: id

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–4/33”, “Records”: [
  {
    "id": 1,
    "code": "0",
    "percent": 0,
    "co_contractor": false,
    "description_nl": "Niet onderworpen aan BTW",
    "description_en": "No subject to VAT",
    "description_fr": "Pas de TVA",
    "description_localized": "No subject to VAT"
  },
  {
    "id": 2,
    "code": "0M",
    "percent": 0,
    "co_contractor": true,
    "description_nl": "Verlegging van heffing",
    "description_en": "",
    "description_fr": "Report de la perception",
    "description_localized": ""
  }
,

]
}

/VATCodes/{id}

If everything succeeds the HTTP response status is 200
(200 OK)

If there is something wrong with the request, the response status and code is 400
(400 Bad Request)

If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)

If you forget to send the Authorization, the response status is 401
(401 Unauthorized)

If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/VATCodes/38

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: klOfWxfPDtzSfffGjfzRqOkIfkrtGfkjfttbzOmOmlUffkbjtt

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–0/1”, “Records”: [
  {
    "id": 38,
    "code": "6N",
    "percent": 6,
    "co_contractor": false,
    "description_nl": "",
    "description_en": "",
    "description_fr": "Pas de TVA",
    "description_localized": ""
  }
]
}