POST api/DiscountCategory/Save

Request Information

URI Parameters

None.

Body Parameters

InvDiscountItem
NameDescriptionTypeAdditional information
IsActive

boolean

None.

EntryDate

date

None.

ModifyDate

date

None.

DiscPerncentage

decimal number

None.

CompanyId

integer

None.

EntryUserId

integer

None.

FinancialYearId

integer

None.

Id

integer

None.

ModifyUserId

integer

None.

OrganizationId

integer

None.

BranchesId

integer

None.

DiscountItemName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IsActive": true,
  "EntryDate": "2025-10-29T13:05:03.8488767+05:00",
  "ModifyDate": "2025-10-29T13:05:03.8488767+05:00",
  "DiscPerncentage": 4.1,
  "CompanyId": 5,
  "EntryUserId": 6,
  "FinancialYearId": 7,
  "Id": 8,
  "ModifyUserId": 9,
  "OrganizationId": 10,
  "BranchesId": 11,
  "DiscountItemName": "sample string 12"
}

application/xml, text/xml

Sample:
<InvDiscountItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Architecture.Model.Inventory">
  <BranchesId>11</BranchesId>
  <CompanyId>5</CompanyId>
  <DiscPerncentage>4.1</DiscPerncentage>
  <DiscountItemName>sample string 12</DiscountItemName>
  <EntryDate>2025-10-29T13:05:03.8488767+05:00</EntryDate>
  <EntryUserId>6</EntryUserId>
  <FinancialYearId>7</FinancialYearId>
  <Id>8</Id>
  <IsActive>true</IsActive>
  <ModifyDate>2025-10-29T13:05:03.8488767+05:00</ModifyDate>
  <ModifyUserId>9</ModifyUserId>
  <OrganizationId>10</OrganizationId>
</InvDiscountItem>

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 'InvDiscountItem'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.