# RelationAddressTypes

> The roles of a relation's addresses: one row per address and address type (AddressTypes).

Subject: Relations.

The roles of a relation's addresses: one row per address and address type (AddressTypes). One address can play several roles and one role can be on several addresses. Which address type is the invoice, delivery, quotation or confirmation address is configured per administration: read_setting ADDRESSES_PEOPLE_ROLES_INITIAL.

Label in Fledge: Relatie adres rollen.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/RelationAddressTypes` |
| Key | `address_type_id`, `relation_address_id`, `relation_id`, `sequence` |
| Administration-specific | no |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/RelationAddressTypes?$select=address_type_id,relation_address_id,relation_id,sequence,is_primary&$top=50
GET https://odata-api.fledge.nl/v2-8/RelationAddressTypes(address_type_id={address_type_id},relation_address_id={relation_address_id},relation_id={relation_id},sequence={sequence})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `sequence` (key) | Int32, not null | Volgorde. The order within the role, used after is_primary. |
| `address_type_id` (key) | Int32 | Rol aders: Rol van het adres (verwijzing naar arol). The role (AddressTypes). 1 is always visit (bezoek), 2 post; the other ids are configured. |
| `relation_address_id` (key) | Int32, not null | Adresnummer |
| `relation_id` (key) | Int32 | Relatie |
| `is_primary` | Boolean | Primaire adres. The address to use for this role. Setting one primary clears the others of the relation and type. |

## Relations

- `AddressType` → [AddressTypes](https://docs.fledge.nl/en/api/reference/AddressTypes.md) (one)
- `Relation` → [Relations](https://docs.fledge.nl/en/api/reference/Relations.md) (one)
- `RelationAddress` → [RelationAddresses](https://docs.fledge.nl/en/api/reference/RelationAddresses.md) (one)

---

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