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
| URL | https://odata-api.fledge.nl/v2-8/VatCodes |
|---|---|
| Key | administration_idfinancial_yearvat_code_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | FINANCIEELBEHEER |
| Scopes | FLEDGE_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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
vat_code_idkey | Int32 | BTW nummer |
abbreviation | String | BTW kode The short code shown in the app (btw-code). |
description | String | Omschrijving |
general_ledger_purchase | String | GB inkoop: GB rekening inkoop The ledger account for the VAT on purchases. |
general_ledger_sales | String | GB verkoop: GB rekening verkoop The ledger account for the VAT on sales. |
is_default | Boolean | Default BTW-kode |
percentage | Decimal | BTW perc%: BTW percentage |
type | Int32 | Type (rubriek)
|
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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |