# VatCodes

> A VAT code (btw-code) in a financial year: percentage, kind and the ledger accounts its VAT is booked on.

Subject: Finance.

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_id`, `financial_year`, `vat_code_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/VatCodes?$filter=administration_id eq 1&$select=financial_year,vat_code_id,abbreviation,general_ledger_purchase,general_ledger_sales&$top=50
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_id` (key) | Int32 | Administratienummer |
| `financial_year` (key) | Int32, not null | Boekjaar |
| `vat_code_id` (key) | Int32, not null | 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). Values: 1 = High rate (hoog); 2 = Low rate (laag); 3 = Other rate (overig); 4 = No VAT (geen) |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/VatCodes
