POST api/product/insert

Request Information

URI Parameters

None.

Body Parameters

InsertProductsRequestModel
NameDescriptionTypeAdditional information
ProductID

integer

None.

BranchID

integer

None.

HSNCodeID

integer

None.

FinancialYearID

integer

None.

ProductCode

string

None.

ProductType

string

None.

ProductName

string

None.

BasicUnitID

integer

None.

TaxCategoryID

integer

None.

ProductionCost

decimal number

None.

MarginPerc

decimal number

None.

SalesPrice

decimal number

None.

OpeningStock

decimal number

None.

OSDate

string

None.

Remarks

string

None.

UserID

integer

None.

ReorderLevel

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductID": 1,
  "BranchID": 2,
  "HSNCodeID": 3,
  "FinancialYearID": 4,
  "ProductCode": "sample string 5",
  "ProductType": "sample string 6",
  "ProductName": "sample string 7",
  "BasicUnitID": 8,
  "TaxCategoryID": 9,
  "ProductionCost": 10.0,
  "MarginPerc": 11.0,
  "SalesPrice": 12.0,
  "OpeningStock": 13.0,
  "OSDate": "sample string 14",
  "Remarks": "sample string 15",
  "UserID": 16,
  "ReorderLevel": 17.0
}

application/xml, text/xml

Sample:
<InsertProductsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <BasicUnitID>8</BasicUnitID>
  <BranchID>2</BranchID>
  <FinancialYearID>4</FinancialYearID>
  <HSNCodeID>3</HSNCodeID>
  <MarginPerc>11</MarginPerc>
  <OSDate>sample string 14</OSDate>
  <OpeningStock>13</OpeningStock>
  <ProductCode>sample string 5</ProductCode>
  <ProductID>1</ProductID>
  <ProductName>sample string 7</ProductName>
  <ProductType>sample string 6</ProductType>
  <ProductionCost>10</ProductionCost>
  <Remarks>sample string 15</Remarks>
  <ReorderLevel>17</ReorderLevel>
  <SalesPrice>12</SalesPrice>
  <TaxCategoryID>9</TaxCategoryID>
  <UserID>16</UserID>
</InsertProductsRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.