POST api/InvoiceMain
Request Information
URI Parameters
None.
Body Parameters
InvoiceMain| Name | Description | Type | Additional information |
|---|---|---|---|
| BuCode | integer |
None. |
|
| InvoiceNo | integer |
None. |
|
| InvoiceType | string |
None. |
|
| SessionCode | integer |
None. |
|
| Dated | date |
None. |
|
| BillNo | string |
None. |
|
| BillDate | date |
None. |
|
| PartyCode | integer |
None. |
|
| PartyType | string |
None. |
|
| ByName | string |
None. |
|
| PaymentMethod | InoicePaymentMethod |
None. |
|
| Remarks | string |
None. |
|
| BilityNo | string |
None. |
|
| BilityAmount | decimal number |
None. |
|
| OthersAmount | decimal number |
None. |
|
| OthersRemarks | string |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedByName | string |
None. |
|
| CreatedAt | date |
None. |
|
| MachineName | string |
None. |
|
| TotalAmount | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| NetAmount | decimal number |
None. |
|
| Received | decimal number |
None. |
|
| Returned | decimal number |
None. |
|
| AccountTransId | integer |
None. |
|
| LstInvDetail | Collection of InvoiceDetail |
None. |
|
| UploadCount | integer |
None. |
|
| buCodeObject | BusinessUnit |
None. |
Request Formats
application/json, text/json
Sample:
{
"buCodeObject": {
"BuCode": 1,
"Title": "sample string 2",
"CashAccount": 3,
"BankAccount": 4,
"IsDefault": 5
},
"BuCode": 1,
"InvoiceNo": 2,
"InvoiceType": "sample string 3",
"SessionCode": 4,
"Dated": "2026-03-06T19:27:53.6856121+05:00",
"BillNo": "sample string 6",
"BillDate": "2026-03-06T19:27:53.6856121+05:00",
"PartyCode": 8,
"PartyType": "sample string 9",
"ByName": "sample string 10",
"PaymentMethod": 0,
"Remarks": "sample string 11",
"BilityNo": "sample string 12",
"BilityAmount": 13.1,
"OthersAmount": 14.1,
"OthersRemarks": "sample string 15",
"CreatedBy": 16,
"CreatedByName": "sample string 17",
"CreatedAt": "2026-03-06T19:27:53.7012384+05:00",
"MachineName": "sample string 19",
"TotalAmount": 20.1,
"Discount": 21.1,
"NetAmount": 22.1,
"Received": 23.1,
"Returned": 24.1,
"AccountTransId": 25,
"LstInvDetail": [
{
"BuCode": 1,
"InvoiceNo": 2,
"InvoiceType": "sample string 3",
"SessionCode": 4,
"SrNo": 64,
"SiteCode": 6,
"ProductCode": 7,
"ProductType": "sample string 8",
"PackModeCode": 9,
"InventoryQty": 10.1,
"Qty": 11.1,
"Rate": 12.1,
"DiscountPercentage": 13.1,
"DiscountAmount": 14.1,
"TotalAmount": 15.1,
"SalesTaxRate": 16.1,
"SalesTaxAmount": 17.1,
"NetAmount": 18.1,
"TrackId": 19.1
},
{
"BuCode": 1,
"InvoiceNo": 2,
"InvoiceType": "sample string 3",
"SessionCode": 4,
"SrNo": 64,
"SiteCode": 6,
"ProductCode": 7,
"ProductType": "sample string 8",
"PackModeCode": 9,
"InventoryQty": 10.1,
"Qty": 11.1,
"Rate": 12.1,
"DiscountPercentage": 13.1,
"DiscountAmount": 14.1,
"TotalAmount": 15.1,
"SalesTaxRate": 16.1,
"SalesTaxAmount": 17.1,
"NetAmount": 18.1,
"TrackId": 19.1
}
],
"UploadCount": 26
}
text/html
Sample:
{"buCodeObject":{"BuCode":1,"Title":"sample string 2","CashAccount":3,"BankAccount":4,"IsDefault":5},"BuCode":1,"InvoiceNo":2,"InvoiceType":"sample string 3","SessionCode":4,"Dated":"2026-03-06T19:27:53.6856121+05:00","BillNo":"sample string 6","BillDate":"2026-03-06T19:27:53.6856121+05:00","PartyCode":8,"PartyType":"sample string 9","ByName":"sample string 10","PaymentMethod":0,"Remarks":"sample string 11","BilityNo":"sample string 12","BilityAmount":13.1,"OthersAmount":14.1,"OthersRemarks":"sample string 15","CreatedBy":16,"CreatedByName":"sample string 17","CreatedAt":"2026-03-06T19:27:53.7012384+05:00","MachineName":"sample string 19","TotalAmount":20.1,"Discount":21.1,"NetAmount":22.1,"Received":23.1,"Returned":24.1,"AccountTransId":25,"LstInvDetail":[{"BuCode":1,"InvoiceNo":2,"InvoiceType":"sample string 3","SessionCode":4,"SrNo":64,"SiteCode":6,"ProductCode":7,"ProductType":"sample string 8","PackModeCode":9,"InventoryQty":10.1,"Qty":11.1,"Rate":12.1,"DiscountPercentage":13.1,"DiscountAmount":14.1,"TotalAmount":15.1,"SalesTaxRate":16.1,"SalesTaxAmount":17.1,"NetAmount":18.1,"TrackId":19.1},{"BuCode":1,"InvoiceNo":2,"InvoiceType":"sample string 3","SessionCode":4,"SrNo":64,"SiteCode":6,"ProductCode":7,"ProductType":"sample string 8","PackModeCode":9,"InventoryQty":10.1,"Qty":11.1,"Rate":12.1,"DiscountPercentage":13.1,"DiscountAmount":14.1,"TotalAmount":15.1,"SalesTaxRate":16.1,"SalesTaxAmount":17.1,"NetAmount":18.1,"TrackId":19.1}],"UploadCount":26}
application/xml, text/xml
Sample:
<InvoiceMain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveStock.WebApi.Models">
<AccountTransId>25</AccountTransId>
<BilityAmount>13.1</BilityAmount>
<BilityNo>sample string 12</BilityNo>
<BillDate>2026-03-06T19:27:53.6856121+05:00</BillDate>
<BillNo>sample string 6</BillNo>
<BuCode>1</BuCode>
<ByName>sample string 10</ByName>
<CreatedAt>2026-03-06T19:27:53.7012384+05:00</CreatedAt>
<CreatedBy>16</CreatedBy>
<CreatedByName>sample string 17</CreatedByName>
<Dated>2026-03-06T19:27:53.6856121+05:00</Dated>
<Discount>21.1</Discount>
<InvoiceNo>2</InvoiceNo>
<InvoiceType>sample string 3</InvoiceType>
<LstInvDetail>
<InvoiceDetail>
<BuCode>1</BuCode>
<DiscountAmount>14.1</DiscountAmount>
<DiscountPercentage>13.1</DiscountPercentage>
<InventoryQty>10.1</InventoryQty>
<InvoiceNo>2</InvoiceNo>
<InvoiceType>sample string 3</InvoiceType>
<NetAmount>18.1</NetAmount>
<PackModeCode>9</PackModeCode>
<ProductCode>7</ProductCode>
<ProductType>sample string 8</ProductType>
<Qty>11.1</Qty>
<Rate>12.1</Rate>
<SalesTaxAmount>17.1</SalesTaxAmount>
<SalesTaxRate>16.1</SalesTaxRate>
<SessionCode>4</SessionCode>
<SiteCode>6</SiteCode>
<SrNo>64</SrNo>
<TotalAmount>15.1</TotalAmount>
<TrackId>19.1</TrackId>
</InvoiceDetail>
<InvoiceDetail>
<BuCode>1</BuCode>
<DiscountAmount>14.1</DiscountAmount>
<DiscountPercentage>13.1</DiscountPercentage>
<InventoryQty>10.1</InventoryQty>
<InvoiceNo>2</InvoiceNo>
<InvoiceType>sample string 3</InvoiceType>
<NetAmount>18.1</NetAmount>
<PackModeCode>9</PackModeCode>
<ProductCode>7</ProductCode>
<ProductType>sample string 8</ProductType>
<Qty>11.1</Qty>
<Rate>12.1</Rate>
<SalesTaxAmount>17.1</SalesTaxAmount>
<SalesTaxRate>16.1</SalesTaxRate>
<SessionCode>4</SessionCode>
<SiteCode>6</SiteCode>
<SrNo>64</SrNo>
<TotalAmount>15.1</TotalAmount>
<TrackId>19.1</TrackId>
</InvoiceDetail>
</LstInvDetail>
<MachineName>sample string 19</MachineName>
<NetAmount>22.1</NetAmount>
<OthersAmount>14.1</OthersAmount>
<OthersRemarks>sample string 15</OthersRemarks>
<PartyCode>8</PartyCode>
<PartyType>sample string 9</PartyType>
<PaymentMethod>Credit</PaymentMethod>
<Received>23.1</Received>
<Remarks>sample string 11</Remarks>
<Returned>24.1</Returned>
<SessionCode>4</SessionCode>
<TotalAmount>20.1</TotalAmount>
<UploadCount>26</UploadCount>
<buCodeObject>
<BankAccount>4</BankAccount>
<BuCode>1</BuCode>
<CashAccount>3</CashAccount>
<IsDefault>5</IsDefault>
<Title>sample string 2</Title>
</buCodeObject>
</InvoiceMain>
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. |