POST api/IUDPurchase

Request Information

URI Parameters

None.

Body Parameters

PurchaseModel
NameDescriptionTypeAdditional information
OP

integer

None.

BDID

integer

None.

BillNo

integer

None.

BillDate

date

None.

Billtype

string

None.

PartyId

integer

None.

ProductId

integer

None.

Qty

decimal number

None.

Rate

decimal number

None.

DTax

decimal number

None.

DTaxRs

decimal number

None.

DSurcharge

decimal number

None.

DDisc

decimal number

None.

DDiscRs

decimal number

None.

Amount

decimal number

None.

BestPrice

decimal number

None.

Remarks

string

None.

TaxAmount

decimal number

None.

Surcharge

decimal number

None.

DiscRs

decimal number

None.

Freight

decimal number

None.

Labour

decimal number

None.

Others

decimal number

None.

Round

decimal number

None.

NetAmount

decimal number

None.

Recieved

decimal number

None.

Balance

decimal number

None.

Type

string

None.

Description

string

None.

Invoice

string

None.

Batch

string

None.

Expiry

date

None.

Request Formats

application/json, text/json

Sample:
{
  "OP": 1,
  "BDID": 2,
  "BillNo": 3,
  "BillDate": "2025-12-10T09:57:39.125592+05:30",
  "Billtype": "sample string 5",
  "PartyId": 6,
  "ProductId": 7,
  "Qty": 8.0,
  "Rate": 9.0,
  "DTax": 10.0,
  "DTaxRs": 11.0,
  "DSurcharge": 12.0,
  "DDisc": 13.0,
  "DDiscRs": 14.0,
  "Amount": 15.0,
  "BestPrice": 16.0,
  "Remarks": "sample string 17",
  "TaxAmount": 18.0,
  "Surcharge": 19.0,
  "DiscRs": 20.0,
  "Freight": 21.0,
  "Labour": 22.0,
  "Others": 23.0,
  "Round": 24.0,
  "NetAmount": 25.0,
  "Recieved": 26.0,
  "Balance": 27.0,
  "Type": "sample string 28",
  "Description": "sample string 29",
  "Invoice": "sample string 30",
  "Batch": "sample string 31",
  "Expiry": "2025-12-10T09:57:39.125592+05:30"
}

application/xml, text/xml

Sample:
<PurchaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/handyman.Controllers">
  <Amount>15</Amount>
  <BDID>2</BDID>
  <Balance>27</Balance>
  <Batch>sample string 31</Batch>
  <BestPrice>16</BestPrice>
  <BillDate>2025-12-10T09:57:39.125592+05:30</BillDate>
  <BillNo>3</BillNo>
  <Billtype>sample string 5</Billtype>
  <DDisc>13</DDisc>
  <DDiscRs>14</DDiscRs>
  <DSurcharge>12</DSurcharge>
  <DTax>10</DTax>
  <DTaxRs>11</DTaxRs>
  <Description>sample string 29</Description>
  <DiscRs>20</DiscRs>
  <Expiry>2025-12-10T09:57:39.125592+05:30</Expiry>
  <Freight>21</Freight>
  <Invoice>sample string 30</Invoice>
  <Labour>22</Labour>
  <NetAmount>25</NetAmount>
  <OP>1</OP>
  <Others>23</Others>
  <PartyId>6</PartyId>
  <ProductId>7</ProductId>
  <Qty>8</Qty>
  <Rate>9</Rate>
  <Recieved>26</Recieved>
  <Remarks>sample string 17</Remarks>
  <Round>24</Round>
  <Surcharge>19</Surcharge>
  <TaxAmount>18</TaxAmount>
  <Type>sample string 28</Type>
</PurchaseModel>

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

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.