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_idrelation_contact_person_idrelation_idsequence |
| Administration | Shared by all administrations. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/RelationContactPersonTypes" \
--data-urlencode '$select=contact_person_type_id,relation_contact_person_id,relation_id,sequence,is_primary' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/RelationContactPersonTypes');
url.searchParams.set('$select', 'contact_person_type_id,relation_contact_person_id,relation_id,sequence,is_primary');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/RelationContactPersonTypes" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("contact_person_type_id,relation_contact_person_id,relation_id,sequence,is_primary"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
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 |
|---|---|---|
sequencekey | Int32 | Volgorde The order within the role, used after is_primary. |
contact_person_type_idkey | Int32 | Rol kontaktpers.: Rol van de kontaktpersoon (verwijzing naar krol) |
relation_contact_person_idkey | Int32 | Kontaktpers.: Kontakt persoon nummer |
relation_idkey | Int32 | Relatie |
is_primary | Boolean | Primaire kontaktpersoon The person to use for this role, when one is marked. |
Relations
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
ContactPersonType | ContactPersonTypes | one |
Relation | Relations | one |
RelationContactPerson | RelationContactPeople | one |