# RelationContactPersonTypes

> The roles of a relation's contact persons: one row per person and contact person type (ContactPersonTypes).

Subject: Relations.

The roles of a relation's contact persons: one row per person and contact person type (ContactPersonTypes). Which type is the invoice, delivery, quotation or confirmation contact is configured per administration: read_setting ADDRESSES_PEOPLE_ROLES_INITIAL. Unlike addresses, a role can have no primary or several.

Label in Fledge: Relatie contactpersoon rollen.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/RelationContactPersonTypes` |
| Key | `contact_person_type_id`, `relation_contact_person_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/RelationContactPersonTypes?$select=contact_person_type_id,relation_contact_person_id,relation_id,sequence,is_primary&$top=50
GET https://odata-api.fledge.nl/v2-8/RelationContactPersonTypes(contact_person_type_id={contact_person_type_id},relation_contact_person_id={relation_contact_person_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. |
| `contact_person_type_id` (key) | Int32 | Rol kontaktpers.: Rol van de kontaktpersoon (verwijzing naar krol) |
| `relation_contact_person_id` (key) | Int32, not null | Kontaktpers.: Kontakt persoon nummer |
| `relation_id` (key) | Int32 | Relatie |
| `is_primary` | Boolean | Primaire kontaktpersoon. The person to use for this role, when one is marked. |

## Relations

- `ContactPersonType` → [ContactPersonTypes](https://docs.fledge.nl/en/api/reference/ContactPersonTypes.md) (one)
- `Relation` → [Relations](https://docs.fledge.nl/en/api/reference/Relations.md) (one)
- `RelationContactPerson` → [RelationContactPeople](https://docs.fledge.nl/en/api/reference/RelationContactPeople.md) (one)

---

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