POST api/v1/DiscountSave

Request Information

URI Parameters

None.

Body Parameters

DiscountSaveInput
NameDescriptionTypeAdditional information
Mode

string

None.

DiscountID

integer

None.

LocID

integer

None.

CompID

integer

None.

UserID

integer

None.

DiscCode

string

None.

DiscType

string

None.

StartDate

date

None.

EndDate

date

None.

DiscPer

decimal number

None.

DiscAmount

decimal number

None.

MinCartValue

decimal number

None.

MaxDiscAmount

decimal number

None.

json

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mode": "sample string 1",
  "DiscountID": 2,
  "LocID": 3,
  "CompID": 4,
  "UserID": 5,
  "DiscCode": "sample string 6",
  "DiscType": "sample string 7",
  "StartDate": "2025-12-06T09:57:15.3932634+05:30",
  "EndDate": "2025-12-06T09:57:15.3932634+05:30",
  "DiscPer": 8.0,
  "DiscAmount": 9.0,
  "MinCartValue": 10.0,
  "MaxDiscAmount": 11.0,
  "json": "sample string 12"
}

application/xml, text/xml

Sample:
<DiscountSaveInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CompID>4</CompID>
  <DiscAmount>9</DiscAmount>
  <DiscCode>sample string 6</DiscCode>
  <DiscPer>8</DiscPer>
  <DiscType>sample string 7</DiscType>
  <DiscountID>2</DiscountID>
  <EndDate>2025-12-06T09:57:15.3932634+05:30</EndDate>
  <LocID>3</LocID>
  <MaxDiscAmount>11</MaxDiscAmount>
  <MinCartValue>10</MinCartValue>
  <Mode>sample string 1</Mode>
  <StartDate>2025-12-06T09:57:15.3932634+05:30</StartDate>
  <UserID>5</UserID>
  <json>sample string 12</json>
</DiscountSaveInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DiscountSaveInput'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.