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

URLhttps://odata-api.fledge.nl/v2-8/RelationContactPersonTypes
Keycontact_person_type_idrelation_contact_person_idrelation_idsequence
AdministrationShared by all administrations.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesBASIS
ScopesFLEDGE_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

FieldTypeDescription
sequencekeyInt32Volgorde

The order within the role, used after is_primary.

contact_person_type_idkeyInt32Rol kontaktpers.: Rol van de kontaktpersoon (verwijzing naar krol)
relation_contact_person_idkeyInt32Kontaktpers.: Kontakt persoon nummer
relation_idkeyInt32Relatie
is_primaryBooleanPrimaire 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.

NavigationEntity set
ContactPersonTypeContactPersonTypesone
RelationRelationsone
RelationContactPersonRelationContactPeopleone
Wingman