Label in Fledge: Artikel historie mutaties
| URL | https://odata-api.fledge.nl/v2-8/ArticleHistoryMutations |
|---|---|
| Key | administration_idarticle_history_mutation_idarticle_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/ArticleHistoryMutations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=article_history_mutation_id,article_id,quantity,modified_quantity,date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ArticleHistoryMutations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_history_mutation_id,article_id,quantity,modified_quantity,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/ArticleHistoryMutations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("article_history_mutation_id,article_id,quantity,modified_quantity,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/ArticleHistoryMutations(administration_id=1,article_history_mutation_id={article_history_mutation_id},article_id='{article_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
article_idkey | String | Artikelcode |
article_history_mutation_idkey | Int32 | Volgnummer |
quantity | Decimal | Aantal |
modified_quantity | Boolean | Aantal bijgewerkt (ja/nee) |
article_inventory_mutation_category_id | Int32 | Volgnummer |
date | Date | Datum |
lot_number | String | Lotnummer/partijregistratie |
price | Decimal | Prijs |
modified_price | Boolean | Prijs bijgewerkt (ja/nee) |
type | Int32 | Type (0 = handmatig; 1 = automatisch) |
user_id | Int32 | User |
warehouse_address_id | Int32 | Ontvangstadres |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Magazijnlocatie |