An address of a relation. Which roles it plays (visit, post, delivery, invoice, ...) is not on the address but on RelationAddressTypes. relation_address_id is numbered per relation: join on relation_id and relation_address_id together.
Label in Fledge: Relatie adressen
| URL | https://odata-api.fledge.nl/v2-8/RelationAddresses |
|---|---|
| Key | relation_address_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/RelationAddresses" \
--data-urlencode '$select=relation_address_id,relation_id,city_1,has_address_or_relation_telephone,house_number' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/RelationAddresses');
url.searchParams.set('$select', 'relation_address_id,relation_id,city_1,has_address_or_relation_telephone,house_number');
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/RelationAddresses" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("relation_address_id,relation_id,city_1,has_address_or_relation_telephone,house_number"),
"$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/RelationAddresses(relation_address_id={relation_address_id},relation_id={relation_id})Fields
| Field | Type | Description |
|---|---|---|
relation_address_idkey | Int32 | Adresnummer Numbered per relation, so not unique on its own. |
relation_idkey | Int32 | Relatie |
area_of_country | String | Landsdeel |
city_1 | String | Plaats The city. city_2 continues it. |
city_2 | String | Plaats |
country_code_id | Int32 | Landkode: verwijzing naar land |
delivery_code | String | Afleverkode |
district_id | Int32 | verwijzing naar tabel rayn (rayon) |
email | String | |
fax_number | String | Faxnummer |
has_address_or_relation_telephone | Boolean | Eigen nummers: Eigen nummer (telefoon, fax en email) of nummers van prel Whether the address has its own telephone, fax and email instead of the relation's. |
house_number | Int32 | Straatnummer The house number, as a number; house_number_addition holds the rest. |
house_number_addition | String | Nummer toevoeging |
language_code_id | Int32 | Taalkode |
mailbox | Boolean | Postbus ja/nee Whether the address is a PO box (postbus). |
postal_code | String | Eerste deel postcode |
route_id | Int32 | Routekode |
sequence | Int32 | Volgorde |
street_name_1 | String | Straat/Postb: Straat The street. street_name_2 continues it. |
street_name_2 | String | Straat |
telephone_number | String | Telefoonnummer |
transport_days | Int32 | Transportdagen |
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 | |
|---|---|---|
CountryCode | CountryCodes | one |
Relation | Relations | one |
Creditors | Creditors | many |
Debtors | Debtors | many |
RelationAddressTypes | RelationAddressTypes | many |