POST api/Purchase
Request Information
URI Parameters
None.
Body Parameters
Purchase| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Date | date |
None. |
|
| BillNumber | string |
None. |
|
| VendorId | integer |
None. |
|
| Vendor | string |
None. |
|
| Amount | decimal number |
None. |
|
| IsActive | boolean |
None. |
|
| AuditId | integer |
None. |
|
| Status | string |
None. |
|
| CreatedBy | integer |
None. |
|
| LastModifiedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Date": "2026-08-05T12:03:53.0826445+05:30",
"BillNumber": "sample string 3",
"VendorId": 4,
"Vendor": "sample string 5",
"Amount": 6.0,
"IsActive": true,
"AuditId": 8,
"Status": "sample string 9",
"CreatedBy": 10,
"LastModifiedBy": 1
}
application/xml, text/xml
Sample:
<Purchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IKimWebService.Domain"> <CreatedBy>10</CreatedBy> <LastModifiedBy>1</LastModifiedBy> <Amount>6</Amount> <AuditId>8</AuditId> <BillNumber>sample string 3</BillNumber> <Date>2026-08-05T12:03:53.0826445+05:30</Date> <Id>1</Id> <IsActive>true</IsActive> <Status>sample string 9</Status> <Vendor>sample string 5</Vendor> <VendorId>4</VendorId> </Purchase>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |