Retrieves the article discount with the specified key.
Request Information
URI Parameters :
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The article discount id. |
globally unique identifier |
Required |
Body Parameters :
None.
Response Information
Resource Description :
IHttpActionResult containing the article discount, or 404 Not Found if it doesn't exist.
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": "5bfcc7c5-87b1-4cd2-b599-2bed8225bcbe",
"company_discount_family_id": "f5ef4397-f1d6-4bdb-8335-7cbed194c77f",
"company_id": "7bca1731-f8a4-4fe8-8913-6de651c3bb1c",
"article_category_id": "6c70ce06-3fb4-4416-b68e-16d7c03a22f4",
"article_id": "4f9274e3-b069-4ec1-9dfc-697046a18850",
"article_price_label_id": "6130a547-00ab-42ba-8aee-414de22420c1",
"quantity_min": 7,
"quantity_max": 8,
"price": 9.0,
"discount": 10.0,
"date_from": "2026-11-12T14:28:43.2914269+00:00",
"date_to": "2026-11-12T14:28:43.2914269+00:00",
"modified_dateutc": "2026-11-12T14:28:43.2914269+00:00"
}
application/xml, text/xml
<article_discount xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <article_category_id>6c70ce06-3fb4-4416-b68e-16d7c03a22f4</article_category_id> <article_id>4f9274e3-b069-4ec1-9dfc-697046a18850</article_id> <article_price_label_id>6130a547-00ab-42ba-8aee-414de22420c1</article_price_label_id> <company_discount_family_id>f5ef4397-f1d6-4bdb-8335-7cbed194c77f</company_discount_family_id> <company_id>7bca1731-f8a4-4fe8-8913-6de651c3bb1c</company_id> <date_from>2026-11-12T14:28:43.291Z</date_from> <date_to>2026-11-12T14:28:43.291Z</date_to> <discount>10</discount> <id>5bfcc7c5-87b1-4cd2-b599-2bed8225bcbe</id> <modified_dateutc>2026-11-12T14:28:43.291Z</modified_dateutc> <price>9</price> <quantity_max>8</quantity_max> <quantity_min>7</quantity_min> </article_discount>