Label in Fledge: Serienummers
| URL | https://odata-api.fledge.nl/v2-8/SerialNumbers |
|---|---|
| Key | administration_idautomatic_serial_number |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BEHEER |
| 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/SerialNumbers" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=automatic_serial_number,amount,amount_issued,creation_date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/SerialNumbers');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'automatic_serial_number,amount,amount_issued,creation_date');
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/SerialNumbers" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("automatic_serial_number,amount,amount_issued,creation_date"),
"$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/SerialNumbers(administration_id=1,automatic_serial_number={automatic_serial_number})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
automatic_serial_numberkey | Int32 | Serienummer autom.: Serienummer automatisch |
amount | Decimal | Aantal in calculatieeenheid |
amount_issued | Decimal | Aantal uitgegeven in calculatieeenheid |
article_id | String | Artikelcode |
article_location_lot_number | String | Lotnummer/partijregistratie |
batch_number | String | Partijnummer |
calculation_unit | Int32 | Calculatie eenheid |
created_user | Int32 | User aanmaak |
creation_date | DateTimeOffset | Aangemaakt: Aanmaakdatum en -tijd |
delivery_note_header_id | String | Pakbonnummer |
delivery_note_line_id | Int32 | Volgnummer |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving 2 |
description_3 | String | Omschrijving 3 |
heat_number | String | Charge nummer |
is_active | Int32 | Actief |
material_certificate | String | Materiaalcertificaat |
material_outsourcing_buy_make_type | Int32 | MUK-type: Materiaal, uitbesteding of koopmaakdeel |
parent | Int32 | Parent |
post_calculation_buy_make_part_id | Int32 | Volgnummer |
post_calculation_material_id | Int32 | Volgnummer |
post_calculation_outsourced_item_id | Int32 | Volgnummer |
pre_calculation_buy_make_part_id | Int32 | Order koopdeel nummer |
pre_calculation_materials_id | Int32 | Mat.nummer: Materiaal nummer |
pre_calculation_outsourced_item_id | Int32 | Uitbestdings nr.: Uitbestedings nummer |
production_order_assemblies_id | Int32 | Schrapnummer |
production_order_assembly_id_origin | Int32 | Schrap herkomst: Schrapnummer herkomst |
production_order_assembly_status_id | Int32 | Volgnummer |
production_order_header_id | String | Order nummer |
production_order_header_id_origin | String | Order herkomst: Productieordernummer herkomst |
purchase_order_header_id | String | Ordernummer |
purchase_order_invoice_header_bookyear | Int32 | Boekjaar |
purchase_order_invoice_header_id | String | Factuurnummer |
purchase_order_invoice_line_id | Int32 | Volgnummer |
purchase_order_line_id | Int32 | Regelnummer |
purchase_order_receipt_header_id | String | Pakbon |
purchase_order_receipt_line_id | Int32 | Regelnummer |
purchase_order_status_line_id | Int32 | Volgnummer |
sales_invoice_header_bookyear | Int32 | Boekjaar |
sales_invoice_header_id | String | Factuur nummer |
sales_invoice_line_id | Int32 | Factuurregelnummer |
sales_order_header_id | String | Verkoopordernummer |
sales_order_line_id | Int32 | Regelnummer |
sales_order_line_status_id | Int32 | Volgnummer |
serial_number_id | String | Serienummer |
service_object_id | String | Service object code |
status | Int32 | Status |
type | Int32 | Type serienummer |
warehouse_address_id | Int32 | Adresnummer |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
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 |
DeliveryNoteHeader | DeliveryNoteHeaders | one |
DeliveryNoteLine | DeliveryNoteLines | one |
PostCalculationBuyMakePart | PostCalculationBuyMakeParts | one |
PostCalculationMaterial | PostCalculationMaterials | one |
PostCalculationOutsourcedItem | PostCalculationOutsourcedItems | one |
PreCalculationBuyMakePart | PreCalculationBuyMakeParts | one |
PreCalculationMaterial | PreCalculationMaterials | one |
PreCalculationOutsourcedItem | PreCalculationOutsourcedItems | one |
ProductionOrderAssembly | ProductionOrderAssemblies | one |
ProductionOrderAssemblyStatus | ProductionOrderAssemblyStatuses | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
PurchaseOrderHeader | PurchaseOrderHeaders | one |
PurchaseOrderLine | PurchaseOrderLines | one |
PurchaseOrderLineStatus | PurchaseOrderLineStatuses | one |
PurchaseOrderReceiptHeader | PurchaseOrderReceiptHeaders | one |
PurchaseOrderReceiptLine | PurchaseOrderReceiptLines | one |
SalesOrderHeader | SalesOrderHeaders | one |
SalesOrderLine | SalesOrderLines | one |
SalesOrderLineStatus | SalesOrderLineStatuses | one |
ServiceObject | ServiceObjects | one |