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

URLhttps://odata-api.fledge.nl/v2-8/ServiceObjects
Keyadministration_idservice_object_id
AdministrationRows belong to one administration: always filter on administration_id.
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/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

FieldTypeDescription
administration_idkeyInt32Administratienummer
service_object_idkeyStringService object code

The service object number, such as SO000001.

article_idStringArtikelcode
date_in_useDateDatum in gebruik: Datum ingebruikname service object

The date the object was taken into use.

date_next_maintenanceDateDatum volgende onderhoud service object

The next maintenance date (volgend onderhoud), typed in by hand; nothing moves it.

debtor_idInt32Debiteurnummer

The owner, a customer.

description_1StringOmschrijving 1
description_2StringOmschrijving 2
description_3StringOmschrijving 3
free_field_text_1StringVrij veld 1
free_field_text_10StringVrij veld 1
free_field_text_11StringVrij veld 1
free_field_text_12StringVrij veld 1
free_field_text_13StringVrij veld 1
free_field_text_14StringVrij veld 1
free_field_text_15StringVrij veld 1
free_field_text_16StringVrij veld 1
free_field_text_17StringVrij veld 1
free_field_text_18StringVrij veld 1
free_field_text_19StringVrij veld 1
free_field_text_2StringVrij veld 1
free_field_text_20StringVrij veld 1
free_field_text_21StringVrij veld 1
free_field_text_22StringVrij veld 1
free_field_text_23StringVrij veld 1
free_field_text_24StringVrij veld 1
free_field_text_25StringVrij veld 1
free_field_text_26StringVrij veld 1
free_field_text_27StringVrij veld 1
free_field_text_28StringVrij veld 1
free_field_text_29StringVrij veld 1
free_field_text_3StringVrij veld 1
free_field_text_30StringVrij veld 1
free_field_text_4StringVrij veld 1
free_field_text_5StringVrij veld 1
free_field_text_6StringVrij veld 1
free_field_text_7StringVrij veld 1
free_field_text_8StringVrij veld 1
free_field_text_9StringVrij veld 1
info_memoStringInfo
is_activeBooleanActief (j/n)

Active; objects made from a sales order may be inactive by default.

location_contact_personInt32Contactpersoon bij relatie
memoStringMemo
parts_list_header_idStringCalculatienummer
production_order_header_idStringOrder nummer

The production order that built the object, not a service order.

registration_numberStringRegistratienr.: Registratienummer

A free registration number.

relation_address_idInt32Adresnr.

The owner's address.

relation_address_locationInt32Adresnr.: Adres van relatie

The address where the object stands.

relation_contact_person_idInt32Contactpersoonnr.
relation_with_physical_service_objectInt32Relatienr.: 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_idStringVerkoopordernummer

The sales order the object was sold on.

sales_order_line_idInt32Regelnummer
search_nameStringZoeknaam service object
service_object_type_idInt32SO-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.

NavigationEntity set
AdministrationAdministrationsone
ArticleArticlesone
DebtorDebtorsone
LocationRelationRelationsone
PartsListHeaderPartsListHeadersone
ProductionOrderHeaderProductionOrderHeadersone
SalesOrderHeaderSalesOrderHeadersone
SalesOrderLineSalesOrderLinesone
ServiceObjectTypeServiceObjectTypesone
ServiceProductionLinksServiceProductionLinksmany

Actions

nextId

GET https://odata-api.fledge.nl/v2-8/ServiceObjects/nextId(…)

Returns ServiceObjectNextIdResultDto

Licenses: BASIS

Wingman