POST api/miscellaneous/insert

Request Information

URI Parameters

None.

Body Parameters

InsertMiscellaneousRequestModel
NameDescriptionTypeAdditional information
MiscellaneousID

integer

None.

BranchID

integer

None.

FinancialYearID

integer

None.

Code

string

None.

Name

string

None.

UnitID

integer

None.

UnitPrice

decimal number

None.

Remarks

string

None.

UserID

integer

None.

AccountID

integer

None.

HSNCodeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MiscellaneousID": 1,
  "BranchID": 2,
  "FinancialYearID": 3,
  "Code": "sample string 4",
  "Name": "sample string 5",
  "UnitID": 6,
  "UnitPrice": 7.0,
  "Remarks": "sample string 8",
  "UserID": 9,
  "AccountID": 10,
  "HSNCodeID": 11
}

application/xml, text/xml

Sample:
<InsertMiscellaneousRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <AccountID>10</AccountID>
  <BranchID>2</BranchID>
  <Code>sample string 4</Code>
  <FinancialYearID>3</FinancialYearID>
  <HSNCodeID>11</HSNCodeID>
  <MiscellaneousID>1</MiscellaneousID>
  <Name>sample string 5</Name>
  <Remarks>sample string 8</Remarks>
  <UnitID>6</UnitID>
  <UnitPrice>7</UnitPrice>
  <UserID>9</UserID>
</InsertMiscellaneousRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.