PUT api/Discounts/UpdateDiscount?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DiscountDto
NameDescriptionTypeAdditional 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-09-10T00:32:05.5737342+00:00",
  "DateEnd": "2026-09-10T00:32:05.5737342+00:00",
  "ClientId": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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