GET api/discounts/{discountID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
discountID

integer

Required

Body Parameters

None.

Response Information

Resource Description

DiscountData
NameDescriptionTypeAdditional information
ClientID

integer

None.

StartDate

date

None.

EndDate

date

None.

Type

string

None.

Value

decimal number

None.

MinAmountToPurchase

decimal number

None.

MaxAmountToDiscount

decimal number

None.

ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ClientID": 1,
  "StartDate": "2025-08-02T19:23:40.5768798+00:00",
  "EndDate": "2025-08-02T19:23:40.5768798+00:00",
  "Type": "sample string 1",
  "Value": 1.0,
  "MinAmountToPurchase": 1.0,
  "MaxAmountToDiscount": 1.0,
  "ID": 1
}

text/xml

Sample:
<DiscountData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data.Discount">
  <ID xmlns="http://schemas.datacontract.org/2004/07/StackBase.Common.Data">1</ID>
  <ClientID>1</ClientID>
  <EndDate>2025-08-02T19:23:40.5768798+00:00</EndDate>
  <MaxAmountToDiscount>1</MaxAmountToDiscount>
  <MinAmountToPurchase>1</MinAmountToPurchase>
  <StartDate>2025-08-02T19:23:40.5768798+00:00</StartDate>
  <Type>sample string 1</Type>
  <Value>1</Value>
</DiscountData>