Retrieves the article discount with the specified key.

Request Information

URI Parameters :

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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

Sample:
{
  "id": "e15d0950-c81b-4436-9422-cf69818d9761",
  "company_discount_family_id": "e05dd9d2-55a9-4f0b-b5d9-e12ab6464d40",
  "company_id": "49f709ae-ff2d-407a-911b-b2f72bdd6cb4",
  "article_category_id": "4a7e544b-ff14-42ac-8b07-a6a044548fd7",
  "article_id": "0e99c071-251f-4f3b-8e70-14ad7a453982",
  "article_price_label_id": "2291ffe9-11cb-4795-8b66-027eaed505a4",
  "quantity_min": 7,
  "quantity_max": 8,
  "price": 9.0,
  "discount": 10.0,
  "date_from": "2026-09-16T08:36:22.9433876+00:00",
  "date_to": "2026-09-16T08:36:22.9433876+00:00",
  "modified_dateutc": "2026-09-16T08:36:22.9433876+00:00"
}

application/xml, text/xml

Sample:
<article_discount xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <article_category_id>4a7e544b-ff14-42ac-8b07-a6a044548fd7</article_category_id>
  <article_id>0e99c071-251f-4f3b-8e70-14ad7a453982</article_id>
  <article_price_label_id>2291ffe9-11cb-4795-8b66-027eaed505a4</article_price_label_id>
  <company_discount_family_id>e05dd9d2-55a9-4f0b-b5d9-e12ab6464d40</company_discount_family_id>
  <company_id>49f709ae-ff2d-407a-911b-b2f72bdd6cb4</company_id>
  <date_from>2026-09-16T08:36:22.943Z</date_from>
  <date_to>2026-09-16T08:36:22.943Z</date_to>
  <discount>10</discount>
  <id>e15d0950-c81b-4436-9422-cf69818d9761</id>
  <modified_dateutc>2026-09-16T08:36:22.943Z</modified_dateutc>
  <price>9</price>
  <quantity_max>8</quantity_max>
  <quantity_min>7</quantity_min>
</article_discount>