Retrieves all article discounts, optionally filtered via OData query options.
Request Information
URI Parameters :
None.
Body Parameters :
None.
Response Information
Resource Description :
IHttpActionResult containing the list of article discounts.
article_discount| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier |
Required |
| company_discount_family_id |
Foreign key of the discount family this rule applies to (when scoped by discount family rather than a single company). |
globally unique identifier | |
| company_id |
Foreign key of the company this discount rule applies to. |
globally unique identifier | |
| article_category_id |
Foreign key of the article category this discount rule applies to, when scoped to a whole category rather than a single article. |
globally unique identifier | |
| article_id |
Foreign key of the specific article this discount rule applies to. |
globally unique identifier | |
| article_price_label_id |
Foreign key of the price label/list this rule's overrides. |
globally unique identifier | |
| quantity_min |
Minimum order quantity for this discount rule to apply. |
integer | |
| quantity_max |
Maximum order quantity for this discount rule to apply. |
integer | |
| price |
Overridden unit price to apply when this rule matches. |
decimal number | |
| discount |
Discount amount/percentage to apply when this rule matches. |
decimal number | |
| date_from |
Date and time from which this discount rule becomes valid. |
date | |
| date_to |
Date and time until which this discount rule remains valid. |
date | |
| modified_dateutc |
Readonly system field managed by the database, filled with GetUtcDate when adding,updating |
date |
Response Formats
application/json, text/json
{
"id": "9c515465-4de8-4584-a779-15cdefb6638a",
"company_discount_family_id": "c552ce07-8884-43b3-9b49-1c0c8c155a28",
"company_id": "827fccc9-8a87-4b4f-80db-34cea774e2bb",
"article_category_id": "cb08730b-0525-48ed-a3ea-b1f95a9b4254",
"article_id": "30cbb177-4410-4cf7-a716-3f577eed7d1c",
"article_price_label_id": "6a106ccc-228a-42e7-b8bb-1505cea258f7",
"quantity_min": 7,
"quantity_max": 8,
"price": 9.0,
"discount": 10.0,
"date_from": "2026-11-12T14:27:57.5563448+00:00",
"date_to": "2026-11-12T14:27:57.5563448+00:00",
"modified_dateutc": "2026-11-12T14:27:57.5563448+00:00"
}
application/xml, text/xml
<article_discount xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <article_category_id>cb08730b-0525-48ed-a3ea-b1f95a9b4254</article_category_id> <article_id>30cbb177-4410-4cf7-a716-3f577eed7d1c</article_id> <article_price_label_id>6a106ccc-228a-42e7-b8bb-1505cea258f7</article_price_label_id> <company_discount_family_id>c552ce07-8884-43b3-9b49-1c0c8c155a28</company_discount_family_id> <company_id>827fccc9-8a87-4b4f-80db-34cea774e2bb</company_id> <date_from>2026-11-12T14:27:57.556Z</date_from> <date_to>2026-11-12T14:27:57.556Z</date_to> <discount>10</discount> <id>9c515465-4de8-4584-a779-15cdefb6638a</id> <modified_dateutc>2026-11-12T14:27:57.556Z</modified_dateutc> <price>9</price> <quantity_max>8</quantity_max> <quantity_min>7</quantity_min> </article_discount>