POST api/DiscountType/Save

Request Information

URI Parameters

None.

Body Parameters

InvDiscountType
NameDescriptionTypeAdditional information
IsActive

boolean

None.

EntryDate

date

None.

ModifyDate

date

None.

CompanyId

integer

None.

EntryUserId

integer

None.

FinancialYearId

integer

None.

BranchesId

integer

None.

Id

integer

None.

ModifyUserId

integer

None.

OrganizationId

integer

None.

DiscountTypeCode

string

None.

DiscountTypeDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IsActive": true,
  "EntryDate": "2025-10-29T13:14:35.8068226+05:00",
  "ModifyDate": "2025-10-29T13:14:35.8068226+05:00",
  "CompanyId": 4,
  "EntryUserId": 5,
  "FinancialYearId": 6,
  "BranchesId": 7,
  "Id": 8,
  "ModifyUserId": 9,
  "OrganizationId": 10,
  "DiscountTypeCode": "sample string 11",
  "DiscountTypeDescription": "sample string 12"
}

application/xml, text/xml

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

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.