PUT api/Discounts/UpdateDiscount?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
DiscountDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ProductId | integer |
None. |
|
| DiscountTriggerTypeId | integer |
Required |
|
| DiscountTriggerValue | string |
String length: inclusive between 0 and 150 |
|
| DiscountRewardTypeId | integer |
Required |
|
| DiscountRewardValue | string |
String length: inclusive between 0 and 150 |
|
| DateStart | date |
None. |
|
| DateEnd | date |
None. |
|
| ClientId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ProductId": 1,
"DiscountTriggerTypeId": 2,
"DiscountTriggerValue": "sample string 3",
"DiscountRewardTypeId": 4,
"DiscountRewardValue": "sample string 5",
"DateStart": "2026-04-29T22:08:46.131552+00:00",
"DateEnd": "2026-04-29T22:08:46.131552+00:00",
"ClientId": 1
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| Result | Object |
None. |
|
| StatusCode | integer |
None. |
|
| StatusGroup | string |
None. |
|
| Details | Collection of Object |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.