POST api/discounts/update
Request Information
URI Parameters
None.
Body Parameters
DiscountDataName | Description | Type | Additional 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. |
Request Formats
application/json, text/json
Sample:
{ "ClientID": 1, "StartDate": "2025-08-02T19:20:18.7893653+00:00", "EndDate": "2025-08-02T19:20:18.7893653+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:20:18.7893653+00:00</EndDate> <MaxAmountToDiscount>1</MaxAmountToDiscount> <MinAmountToPurchase>1</MinAmountToPurchase> <StartDate>2025-08-02T19:20:18.7893653+00:00</StartDate> <Type>sample string 1</Type> <Value>1</Value> </DiscountData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DiscountDataName | Description | Type | Additional 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:20:18.7893653+00:00", "EndDate": "2025-08-02T19:20:18.7893653+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:20:18.7893653+00:00</EndDate> <MaxAmountToDiscount>1</MaxAmountToDiscount> <MinAmountToPurchase>1</MinAmountToPurchase> <StartDate>2025-08-02T19:20:18.7893653+00:00</StartDate> <Type>sample string 1</Type> <Value>1</Value> </DiscountData>