# CreditorBranches

> Crediteur branches

Subject: Relations.

Crediteur branches

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/CreditorBranches` |
| Key | `administration_id`, `branch_id`, `creditor_id`, `sequence` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | FINANCIEEL |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/CreditorBranches?$filter=administration_id eq 1&$select=branch_id,creditor_id,sequence,main_or_sub&$top=50
GET https://odata-api.fledge.nl/v2-8/CreditorBranches(administration_id=1,branch_id='{branch_id}',creditor_id={creditor_id},sequence={sequence})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `branch_id` (key) | String, not null | Branchekode |
| `sequence` (key) | Int32, not null | Volgorde |
| `creditor_id` (key) | Int32, not null | Crediteurnummer |
| `main_or_sub` | Boolean | Hoofd/Sub: Hoofd- of subbranche |

## Relations

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

---

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