A named set of document layouts: one each for confirmation, picklist, delivery note, invoice, quotation and the purchase documents.
Label in Fledge: Layouts
| URL | https://odata-api.fledge.nl/v2-8/LayoutSets |
|---|---|
| Key | administration_idlayout_set_id |
| 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/LayoutSets" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=layout_set_id,description,invoice_reminder_layout_id,order_confirmation_layout_id' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/LayoutSets');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'layout_set_id,description,invoice_reminder_layout_id,order_confirmation_layout_id');
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/LayoutSets" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("layout_set_id,description,invoice_reminder_layout_id,order_confirmation_layout_id"),
"$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/LayoutSets(administration_id=1,layout_set_id={layout_set_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
layout_set_idkey | Int32 | Layout |
description | String | Omschrijving |
invoice_reminder_layout_id | Int32 | Nummer layout |
order_confirmation_layout_id | Int32 | Orderbevestigingsnummer |
picklist_layout_id | Int32 | Picklistlayout |
purchase_delivery_note_layout_id | Int32 | Layout |
purchase_invoice_layout_id | Int32 | Layout |
purchase_order_layout_id | Int32 | Layout |
purchase_quotation_layout_id | Int32 | Layoutnummer |
sales_delivery_note_layout_id | Int32 | Layout |
sales_invoice_layout_id | Int32 | Faktuur layout nummer |
sales_quotation_layout_id | Int32 | Layoutnummer |
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 |