# DebtorBranches

> Debiteur branches

Subject: Relations.

Debiteur branches

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/DebtorBranches` |
| Key | `administration_id`, `debtor_branch_id`, `debtor_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/DebtorBranches?$filter=administration_id eq 1&$select=debtor_branch_id,debtor_id,sequence,main_or_sub&$top=50
GET https://odata-api.fledge.nl/v2-8/DebtorBranches(administration_id=1,debtor_branch_id='{debtor_branch_id}',debtor_id={debtor_id},sequence={sequence})
```

## Fields

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

## Relations

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

---

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