A service object: a machine or installation of a customer that we maintain. The owner is a customer (debtor_id); where it stands is a relation (relation_with_physical_service_object).
Label in Fledge: Service object
| URL | https://odata-api.fledge.nl/v2-8/ServiceObjects |
|---|---|
| Key | administration_idservice_object_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| 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/ServiceObjects" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=service_object_id,date_in_use,date_next_maintenance,debtor_id' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ServiceObjects');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'service_object_id,date_in_use,date_next_maintenance,debtor_id');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/ServiceObjects" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("service_object_id,date_in_use,date_next_maintenance,debtor_id"));
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/ServiceObjects(administration_id=1,service_object_id='{service_object_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
service_object_idkey | String | Service object code The service object number, such as SO000001. |
article_id | String | Artikelcode |
date_in_use | Date | Datum in gebruik: Datum ingebruikname service object The date the object was taken into use. |
date_next_maintenance | Date | Datum volgende onderhoud service object The next maintenance date (volgend onderhoud), typed in by hand; nothing moves it. |
debtor_id | Int32 | Debiteurnummer The owner, a customer. |
description_1 | String | Omschrijving 1 |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
free_field_text_1 | String | Vrij veld 1 |
free_field_text_10 | String | Vrij veld 1 |
free_field_text_11 | String | Vrij veld 1 |
free_field_text_12 | String | Vrij veld 1 |
free_field_text_13 | String | Vrij veld 1 |
free_field_text_14 | String | Vrij veld 1 |
free_field_text_15 | String | Vrij veld 1 |
free_field_text_16 | String | Vrij veld 1 |
free_field_text_17 | String | Vrij veld 1 |
free_field_text_18 | String | Vrij veld 1 |
free_field_text_19 | String | Vrij veld 1 |
free_field_text_2 | String | Vrij veld 1 |
free_field_text_20 | String | Vrij veld 1 |
free_field_text_21 | String | Vrij veld 1 |
free_field_text_22 | String | Vrij veld 1 |
free_field_text_23 | String | Vrij veld 1 |
free_field_text_24 | String | Vrij veld 1 |
free_field_text_25 | String | Vrij veld 1 |
free_field_text_26 | String | Vrij veld 1 |
free_field_text_27 | String | Vrij veld 1 |
free_field_text_28 | String | Vrij veld 1 |
free_field_text_29 | String | Vrij veld 1 |
free_field_text_3 | String | Vrij veld 1 |
free_field_text_30 | String | Vrij veld 1 |
free_field_text_4 | String | Vrij veld 1 |
free_field_text_5 | String | Vrij veld 1 |
free_field_text_6 | String | Vrij veld 1 |
free_field_text_7 | String | Vrij veld 1 |
free_field_text_8 | String | Vrij veld 1 |
free_field_text_9 | String | Vrij veld 1 |
info_memo | String | Info |
is_active | Boolean | Actief (j/n) Active; objects made from a sales order may be inactive by default. |
location_contact_person | Int32 | Contactpersoon bij relatie |
memo | String | Memo |
parts_list_header_id | String | Calculatienummer |
production_order_header_id | String | Order nummer The production order that built the object, not a service order. |
registration_number | String | Registratienr.: Registratienummer A free registration number. |
relation_address_id | Int32 | Adresnr. The owner's address. |
relation_address_location | Int32 | Adresnr.: Adres van relatie The address where the object stands. |
relation_contact_person_id | Int32 | Contactpersoonnr. |
relation_with_physical_service_object | Int32 | Relatienr.: Relatienummer waar service object nu fysiek is The relation where the object stands and who uses it; can differ from the owner. |
sales_order_header_id | String | Verkoopordernummer The sales order the object was sold on. |
sales_order_line_id | Int32 | Regelnummer |
search_name | String | Zoeknaam service object |
service_object_type_id | Int32 | SO-type: Serviceobject type |
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 | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
Debtor | Debtors | one |
LocationRelation | Relations | one |
PartsListHeader | PartsListHeaders | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
SalesOrderHeader | SalesOrderHeaders | one |
SalesOrderLine | SalesOrderLines | one |
ServiceObjectType | ServiceObjectTypes | one |
ServiceProductionLinks | ServiceProductionLinks | many |
Actions
nextId
GET https://odata-api.fledge.nl/v2-8/ServiceObjects/nextId(…)Returns ServiceObjectNextIdResultDto
Licenses: BASIS