A VAT code (btw-code) in a financial year: percentage, kind and the ledger accounts its VAT is booked on. Codes 1 to 5 are the five VAT categories on invoices.

Label in Fledge: BTW-codes

URLhttps://odata-api.fledge.nl/v2-8/VatCodes
Keyadministration_idfinancial_yearvat_code_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesFINANCIEELBEHEER
ScopesFLEDGE_PORTAL

Example requests

A page of rows, with only the fields you need. See Authentication for the token.

curl -G "https://odata-api.fledge.nl/v2-8/VatCodes" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=financial_year,vat_code_id,abbreviation,general_ledger_purchase,general_ledger_sales' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/VatCodes');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,vat_code_id,abbreviation,general_ledger_purchase,general_ledger_sales');
url.searchParams.set('$top', '50');

const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();
var url = "https://odata-api.fledge.nl/v2-8/VatCodes" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("financial_year,vat_code_id,abbreviation,general_ledger_purchase,general_ledger_sales"),
    "$top=" + Uri.EscapeDataString("50"));

http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);

One row by its key:

GET https://odata-api.fledge.nl/v2-8/VatCodes(administration_id=1,financial_year={financial_year},vat_code_id={vat_code_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
vat_code_idkeyInt32BTW nummer
abbreviationStringBTW kode

The short code shown in the app (btw-code).

descriptionStringOmschrijving
general_ledger_purchaseStringGB inkoop: GB rekening inkoop

The ledger account for the VAT on purchases.

general_ledger_salesStringGB verkoop: GB rekening verkoop

The ledger account for the VAT on sales.

is_defaultBooleanDefault BTW-kode
percentageDecimalBTW perc%: BTW percentage
typeInt32Type (rubriek)
  • 1 High rate (hoog)
  • 2 Low rate (laag)
  • 3 Other rate (overig)
  • 4 No VAT (geen)

Relations

Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.

NavigationEntity set
AdministrationAdministrationsone
Wingman