VismaBouwsoftAPICalls.v1_GET_PurchaseInvoices Method
v1_GET_PurchaseInvoices() as String

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

HTTP method API version
GET v1

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

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

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

Fields

The following fields are available:

Field Name Type
id Number
company_id Number
nr Number
date String
expirationdate String
nr_supplier String
concerning String
paymentnotification String
ledger Number
depreciation Number
accountnumber String
address_id Number
address_name String
address_address String
address_addressline2 String
address_countrycode String
address_zipcode String
address_city String
address_vatnr String
commercialdiscount Number
cashdiscount Number
cashdiscount_amount Number
cashdiscount_approved Boolean
basis1 Number
vatid1 Number
vatcode1 String
vatpercent1 Number
vatcocontractor1 Boolean
amountexclvat1 Number
taxableamount1 Number
vatamount1 Number
amountinclvat1 Number
basis2 Number
vatid2 Number
vatcode2 String
vatpercent2 Number
vatcocontractor2 Boolean
amountexclvat2 Number
taxableamount2 Number
vatamount2 Number
amountinclvat2 Number
basis3 Number
vatid3 Number
vatcode3 String
vatpercent3 Number
vatcocontractor3 Boolean
amountexclvat3 Number
taxableamount3 Number
vatamount3 Number
amountinclvat3 Number
basis4 Number
vatid4 Number
vatcode4 String
vatpercent4 Number
vatcocontractor4 Boolean
amountexclvat4 Number
taxableamount4 Number
vatamount4 Number
amountinclvat4 Number
basis5 Number
vatid5 Number
vatcode5 String
vatpercent5 Number
vatcocontractor5 Boolean
amountexclvat5 Number
taxableamount5 Number
vatamount5 Number
amountinclvat5 Number
totalsbasedonvatcodebreakdown Boolean
amountexclvat_total Number
vatamount_total Number
amountinclvat_total Number
paid Boolean
amountoutstanding Number
amountpaid Number
ts_lastupdate String

/PurchaseInvoices/

API Path: /PurchaseInvoices/

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/PurchaseInvoices

with the following parameters :

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

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

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–4/600”, “Records”: [
  {
    "id": 2,
    "company_id": 2,
    "nr": 20140007,
    "date": "2012–04–18",
    "expirationdate": "2012–05–18",
    "nr_supplier": "AF123456",
    "concerning": "",
    "paymentnotification": "lkhdflkqdjhs",
    "ledger": 600,
    "depreciation": 100,
    "accountnumber": "",
    "address_id": 25,
    "address_name": "Levis Verplancke",
    "address_address": "Julius Delaplacestraat 20",
    "address_addressline2": "",
    "address_countrycode": "BE",
    "address_zipcode": "8310",
    "address_city": "Assebroek (Brugge)",
    "address_vatnr": "",
    "commercialdiscount": 0,
    "cashdiscount": 0,
    "cashdiscount_amount": 0.0,
    "cashdiscount_approved": false,
    "basis1": 0.0,
    "vatid1": 1,
    "vatcode1": "0",
    "vatpercent1": 0,
    "vatcocontractor1": false,
    "amountexclvat1": 0.0,
    "taxableamount1": 0.0,
    "vatamount1": 0.0,
    "amountinclvat1": 0.0,
    "basis2": 0.0,
    "vatid2": 3,
    "vatcode2": "6",
    "vatpercent2": 6,
    "vatcocontractor2": false,
    "amountexclvat2": 0.0,
    "taxableamount2": 0.0,
    "vatamount2": 0.0,
    "amountinclvat2": 0.0,
    "basis3": 0.0,
    "vatid3": 4,
    "vatcode3": "6M",
    "vatpercent3": 6,
    "vatcocontractor3": true,
    "amountexclvat3": 0.0,
    "taxableamount3": 0.0,
    "vatamount3": 0.0,
    "amountinclvat3": 0.0,
    "basis4": 1000.0,
    "vatid4": 7,
    "vatcode4": "21",
    "vatpercent4": 21,
    "vatcocontractor4": false,
    "amountexclvat4": 1000.0,
    "taxableamount4": 1000.0,
    "vatamount4": 210.0,
    "amountinclvat4": 1210.0,
    "basis5": 0.0,
    "vatid5": 8,
    "vatcode5": "21M",
    "vatpercent5": 21,
    "vatcocontractor5": true,
    "amountexclvat5": 0.0,
    "taxableamount5": 0.0,
    "vatamount5": 0.0,
    "amountinclvat5": 0.0,
    "totalsbasedonvatcodebreakdown": true,
    "amountexclvat_total": 1000.0,
    "vatamount_total": 210.0,
    "amountinclvat_total": 1210.0,
    "paid": false,
    "amountoutstanding": 0.0,
    "amountpaid": 1210.0,
    "ts_lastupdate": "2023–09–06 14:49:21"
  },
  {
    "id": 11,
    "company_id": 3,
    "nr": 20120001,
    "date": "2012–06–15",
    "expirationdate": "2012–07–15",
    "nr_supplier": "",
    "concerning": "",
    "paymentnotification": "",
    "ledger": 0,
    "depreciation": 100,
    "accountnumber": "",
    "address_id": 34,
    "address_name": "A. OTTE EN ZOON",
    "address_address": "HAVENWEG 20",
    "address_addressline2": "",
    "address_countrycode": "",
    "address_zipcode": "",
    "address_city": "",
    "address_vatnr": "NL 813209791B01",
    "commercialdiscount": 0,
    "cashdiscount": 0,
    "cashdiscount_amount": 0.0,
    "cashdiscount_approved": false,
    "basis1": 0.0,
    "vatid1": 1,
    "vatcode1": "0",
    "vatpercent1": 0,
    "vatcocontractor1": false,
    "amountexclvat1": 0.0,
    "taxableamount1": 0.0,
    "vatamount1": 0.0,
    "amountinclvat1": 0.0,
    "basis2": 0.0,
    "vatid2": 3,
    "vatcode2": "6",
    "vatpercent2": 6,
    "vatcocontractor2": false,
    "amountexclvat2": 0.0,
    "taxableamount2": 0.0,
    "vatamount2": 0.0,
    "amountinclvat2": 0.0,
    "basis3": 0.0,
    "vatid3": 10,
    "vatcode3": "12",
    "vatpercent3": 12.5,
    "vatcocontractor3": false,
    "amountexclvat3": 0.0,
    "taxableamount3": 0.0,
    "vatamount3": 0.0,
    "amountinclvat3": 0.0,
    "basis4": 5410.0,
    "vatid4": 7,
    "vatcode4": "21",
    "vatpercent4": 21,
    "vatcocontractor4": false,
    "amountexclvat4": 5410.0,
    "taxableamount4": 5410.0,
    "vatamount4": 1136.099999999999909,
    "amountinclvat4": 6546.100000000000364,
    "basis5": 0.0,
    "vatid5": 8,
    "vatcode5": "21M",
    "vatpercent5": 21,
    "vatcocontractor5": true,
    "amountexclvat5": 0.0,
    "taxableamount5": 0.0,
    "vatamount5": 0.0,
    "amountinclvat5": 0.0,
    "totalsbasedonvatcodebreakdown": true,
    "amountexclvat_total": 5410.0,
    "vatamount_total": 1136.099999999999909,
    "amountinclvat_total": 6546.100000000000364,
    "paid": true,
    "amountoutstanding": 6546.100000000000364,
    "amountpaid": 0.0,
    "ts_lastupdate": "2023–09–06 14:49:21"
  }
,

]
}

/PurchaseInvoices/{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/PurchaseInvoices/884

with the following parameters :

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

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–0/1”, “Records”: [
  {
    "id": 884,
    "company_id": 1,
    "nr": 202000122,
    "date": "2017–04–20",
    "expirationdate": "2017–04–21",
    "nr_supplier": "",
    "concerning": "",
    "paymentnotification": "000000513490",
    "ledger": 0,
    "depreciation": 100,
    "accountnumber": "",
    "address_id": 328892,
    "address_name": "DirkAPISupp",
    "address_address": "Molleweg 9",
    "address_addressline2": "",
    "address_countrycode": "BE",
    "address_zipcode": "8377",
    "address_city": "Meetkerke",
    "address_vatnr": "",
    "commercialdiscount": 5,
    "cashdiscount": 3.356115,
    "cashdiscount_amount": 4.8,
    "cashdiscount_approved": true,
    "basis1": 150.550000000000011,
    "vatid1": 7,
    "vatcode1": "21",
    "vatpercent1": 21,
    "vatcocontractor1": false,
    "amountexclvat1": 143.02000000000001,
    "taxableamount1": 138.219999999999999,
    "vatamount1": 29.030000000000001,
    "amountinclvat1": 172.050000000000011,
    "basis2": 0.0,
    "vatid2": 23,
    "vatcode2": "21B",
    "vatpercent2": 21,
    "vatcocontractor2": false,
    "amountexclvat2": 0.0,
    "taxableamount2": 0.0,
    "vatamount2": 0.0,
    "amountinclvat2": 0.0,
    "basis3": 0.0,
    "vatid3": 8,
    "vatcode3": "21M",
    "vatpercent3": 21,
    "vatcocontractor3": true,
    "amountexclvat3": 0.0,
    "taxableamount3": 0.0,
    "vatamount3": 0.0,
    "amountinclvat3": 0.0,
    "basis4": 0.0,
    "vatid4": 28,
    "vatcode4": "6B",
    "vatpercent4": 6,
    "vatcocontractor4": false,
    "amountexclvat4": 0.0,
    "taxableamount4": 0.0,
    "vatamount4": 0.0,
    "amountinclvat4": 0.0,
    "basis5": 0.0,
    "vatid5": 1,
    "vatcode5": "0",
    "vatpercent5": 0,
    "vatcocontractor5": false,
    "amountexclvat5": 0.0,
    "taxableamount5": 0.0,
    "vatamount5": 0.0,
    "amountinclvat5": 0.0,
    "totalsbasedonvatcodebreakdown": true,
    "amountexclvat_total": 150.550000000000011,
    "vatamount_total": 29.030000000000001,
    "amountinclvat_total": 172.050000000000011,
    "paid": false,
    "amountoutstanding": 0.0,
    "amountpaid": 167.25,
    "ts_lastupdate": "2025–02–12 14:28:58"
  }
]
}