POST api/PurchaseDetail

Request Information

URI Parameters

None.

Body Parameters

PurchaseDetail
NameDescriptionTypeAdditional information
PurchaseId

integer

None.

ItemId

integer

None.

Quantity

decimal number

None.

Rate

decimal number

None.

CGSTPercentage

decimal number

None.

CGSTAmount

decimal number

None.

SGSTPercentage

decimal number

None.

SGSTAmount

decimal number

None.

IGSTPercentage

decimal number

None.

IGSTAmount

decimal number

None.

Id

integer

None.

Active

boolean

None.

CreatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseId": 1,
  "ItemId": 2,
  "Quantity": 3.0,
  "Rate": 4.0,
  "CGSTPercentage": 5.0,
  "CGSTAmount": 6.0,
  "SGSTPercentage": 7.0,
  "SGSTAmount": 8.0,
  "IGSTPercentage": 9.0,
  "IGSTAmount": 10.0,
  "Id": 11,
  "Active": true,
  "CreatedBy": "sample string 13"
}

application/xml, text/xml

Sample:
<PurchaseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrueCodeAPI.Model">
  <Active>true</Active>
  <CreatedBy>sample string 13</CreatedBy>
  <Id>11</Id>
  <CGSTAmount>6</CGSTAmount>
  <CGSTPercentage>5</CGSTPercentage>
  <IGSTAmount>10</IGSTAmount>
  <IGSTPercentage>9</IGSTPercentage>
  <ItemId>2</ItemId>
  <PurchaseId>1</PurchaseId>
  <Quantity>3</Quantity>
  <Rate>4</Rate>
  <SGSTAmount>8</SGSTAmount>
  <SGSTPercentage>7</SGSTPercentage>
</PurchaseDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.