POST api/Purchase
Request Information
URI Parameters
None.
Body Parameters
Purchase| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseCode | integer |
None. |
|
| PurchaseDate | date |
None. |
|
| AccountId | integer |
None. |
|
| PurchaseType | string |
None. |
|
| Referance | string |
None. |
|
| BillNo | decimal number |
None. |
|
| BillDate | date |
None. |
|
| SubTotal | decimal number |
None. |
|
| Total | 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. |
|
| FrightCGST | decimal number |
None. |
|
| FrightSGST | decimal number |
None. |
|
| FrightIGST | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| RouterOf | decimal number |
None. |
|
| IsLocked | boolean |
None. |
|
| Id | integer |
None. |
|
| Active | boolean |
None. |
|
| CreatedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PurchaseCode": 1,
"PurchaseDate": "2025-12-15T21:20:08.9341702+05:30",
"AccountId": 3,
"PurchaseType": "sample string 4",
"Referance": "sample string 5",
"BillNo": 6.0,
"BillDate": "2025-12-15T21:20:08.9341702+05:30",
"SubTotal": 8.0,
"Total": 9.0,
"CGSTPercentage": 10.0,
"CGSTAmount": 11.0,
"SGSTPercentage": 12.0,
"SGSTAmount": 13.0,
"IGSTPercentage": 14.0,
"IGSTAmount": 15.0,
"FrightCGST": 16.0,
"FrightSGST": 17.0,
"FrightIGST": 18.0,
"Discount": 19.0,
"RouterOf": 20.0,
"IsLocked": true,
"Id": 22,
"Active": true,
"CreatedBy": "sample string 24"
}
application/xml, text/xml
Sample:
<Purchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrueCodeAPI.Model"> <Active>true</Active> <CreatedBy>sample string 24</CreatedBy> <Id>22</Id> <AccountId>3</AccountId> <BillDate>2025-12-15T21:20:08.9341702+05:30</BillDate> <BillNo>6</BillNo> <CGSTAmount>11</CGSTAmount> <CGSTPercentage>10</CGSTPercentage> <Discount>19</Discount> <FrightCGST>16</FrightCGST> <FrightIGST>18</FrightIGST> <FrightSGST>17</FrightSGST> <IGSTAmount>15</IGSTAmount> <IGSTPercentage>14</IGSTPercentage> <IsLocked>true</IsLocked> <PurchaseCode>1</PurchaseCode> <PurchaseDate>2025-12-15T21:20:08.9341702+05:30</PurchaseDate> <PurchaseType>sample string 4</PurchaseType> <Referance>sample string 5</Referance> <RouterOf>20</RouterOf> <SGSTAmount>13</SGSTAmount> <SGSTPercentage>12</SGSTPercentage> <SubTotal>8</SubTotal> <Total>9</Total> </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. |