A contact person at a relation. Their roles (invoice contact, buyer, ...) are on RelationContactPersonTypes. relation_contact_person_id is numbered per relation: join on relation_id and relation_contact_person_id together.
Label in Fledge: Relatie contactpersonen
| URL | https://odata-api.fledge.nl/v2-8/RelationContactPeople |
|---|---|
| Key | relation_contact_person_idrelation_id |
| 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/RelationContactPeople" \
--data-urlencode '$select=relation_contact_person_id,relation_id,information,left_employment,name_1' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/RelationContactPeople');
url.searchParams.set('$select', 'relation_contact_person_id,relation_id,information,left_employment,name_1');
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/RelationContactPeople" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("relation_contact_person_id,relation_id,information,left_employment,name_1"),
"$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/RelationContactPeople(relation_contact_person_id={relation_contact_person_id},relation_id={relation_id})Fields
| Field | Type | Description |
|---|---|---|
relation_contact_person_idkey | Int32 | Kontaktpers.: Kontakt persoon nummer |
relation_idkey | Int32 | Relatie |
birth_date | Date | Geboorte datum |
device_number | Int32 | Toestelnummer |
email | String | |
fax_number | String | Faxnummer |
first_name | String | Voornaam persoon |
gender | String | Sexe (M, V, nvt) |
information | String | Informatie Free text about the person (informatie). |
initials | String | Voorletters |
is_decider | Boolean | Is kontaktpersoon een beslisser |
language_number | Int32 | Taalkode |
last_name_prefix | String | Voorvoegsels |
left_employment | Boolean | Uit dienst: Geeft aan of contactpersoon nog in dienst is of niet. The person no longer works there (uit dienst). Leave them out with left_employment eq false. |
mailing_number | Int32 | Mailingkode |
mobile_telephone | String | Telefoonnummer mobiel |
name_1 | String | Naam The last name. The full name is first_name, last_name_prefix and name_1. |
name_2 | String | Naam |
order | Int32 | Representatie volgordenummer |
personal_email | Boolean | Eigen nummers: Eigen nummer (telefoon, fax en email) of nummers van prel Whether email is the person's own address rather than the relation's. |
personal_fax_number | Boolean | Eigen nummers: Eigen nummer (telefoon, fax en email) of nummers van prel |
personal_telephone | Boolean | Eigen nummers: Eigen nummer (telefoon, fax en email) of nummers van prel Whether telephone is the person's own number rather than the relation's. |
telephone | String | Telefoonnummer |
title_id | Int32 | Titel |
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 | |
|---|---|---|
ContactPersonTitle | ContactPersonTitles | one |
Relation | Relations | one |
RelationContactPersonTypes | RelationContactPersonTypes | many |