POST api/Invoice
Request Information
URI Parameters
None.
Body Parameters
Invoice| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| invoiceno | string |
None. |
|
| customerid | string |
None. |
|
| customername | string |
None. |
|
| customer_mobile | string |
None. |
|
| customer_email | string |
None. |
|
| customer_address | string |
None. |
|
| sale_date | date |
None. |
|
| total_amount | decimal number |
None. |
|
| discount_amt | decimal number |
None. |
|
| tax_amount | decimal number |
None. |
|
| shippig_charge | decimal number |
None. |
|
| packing_charge | decimal number |
None. |
|
| paid_amt | decimal number |
None. |
|
| payment_mode | integer |
None. |
|
| transaction_no | string |
None. |
|
| due_amount | decimal number |
None. |
|
| placeofsupply | string |
None. |
|
| creatdedon | date |
None. |
|
| creatdedby | string |
None. |
|
| Detail | Collection of InvoiceDetail |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"invoiceno": "sample string 2",
"customerid": "sample string 3",
"customername": "sample string 4",
"customer_mobile": "sample string 5",
"customer_email": "sample string 6",
"customer_address": "sample string 7",
"sale_date": "2025-12-11T20:14:55.8489017+05:30",
"total_amount": 9.0,
"discount_amt": 10.0,
"tax_amount": 11.0,
"shippig_charge": 12.0,
"packing_charge": 13.0,
"paid_amt": 14.0,
"payment_mode": 15,
"transaction_no": "sample string 16",
"due_amount": 17.0,
"placeofsupply": "sample string 18",
"creatdedon": "2025-12-11T20:14:55.8489017+05:30",
"creatdedby": "sample string 20",
"Detail": [
{
"id": "sample string 1",
"invoiceid": "sample string 2",
"productid": "sample string 3",
"productname": "sample string 4",
"unitname": "sample string 5",
"purchaseDetailID": "sample string 6",
"purchase_price": 7.0,
"sal_qty": 8.0,
"sale_price": 9.0,
"tax_Amt": 10.0,
"discount_amt": 11.0,
"creatdedon": "2025-12-11T20:14:55.8499015+05:30",
"creatdedby": "sample string 13"
},
{
"id": "sample string 1",
"invoiceid": "sample string 2",
"productid": "sample string 3",
"productname": "sample string 4",
"unitname": "sample string 5",
"purchaseDetailID": "sample string 6",
"purchase_price": 7.0,
"sal_qty": 8.0,
"sale_price": 9.0,
"tax_Amt": 10.0,
"discount_amt": 11.0,
"creatdedon": "2025-12-11T20:14:55.8499015+05:30",
"creatdedby": "sample string 13"
}
]
}
application/xml, text/xml
Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models">
<Detail>
<InvoiceDetail>
<creatdedby>sample string 13</creatdedby>
<creatdedon>2025-12-11T20:14:55.8499015+05:30</creatdedon>
<discount_amt>11</discount_amt>
<id>sample string 1</id>
<invoiceid>sample string 2</invoiceid>
<productid>sample string 3</productid>
<productname>sample string 4</productname>
<purchaseDetailID>sample string 6</purchaseDetailID>
<purchase_price>7</purchase_price>
<sal_qty>8</sal_qty>
<sale_price>9</sale_price>
<tax_Amt>10</tax_Amt>
<unitname>sample string 5</unitname>
</InvoiceDetail>
<InvoiceDetail>
<creatdedby>sample string 13</creatdedby>
<creatdedon>2025-12-11T20:14:55.8499015+05:30</creatdedon>
<discount_amt>11</discount_amt>
<id>sample string 1</id>
<invoiceid>sample string 2</invoiceid>
<productid>sample string 3</productid>
<productname>sample string 4</productname>
<purchaseDetailID>sample string 6</purchaseDetailID>
<purchase_price>7</purchase_price>
<sal_qty>8</sal_qty>
<sale_price>9</sale_price>
<tax_Amt>10</tax_Amt>
<unitname>sample string 5</unitname>
</InvoiceDetail>
</Detail>
<creatdedby>sample string 20</creatdedby>
<creatdedon>2025-12-11T20:14:55.8489017+05:30</creatdedon>
<customer_address>sample string 7</customer_address>
<customer_email>sample string 6</customer_email>
<customer_mobile>sample string 5</customer_mobile>
<customerid>sample string 3</customerid>
<customername>sample string 4</customername>
<discount_amt>10</discount_amt>
<due_amount>17</due_amount>
<id>sample string 1</id>
<invoiceno>sample string 2</invoiceno>
<packing_charge>13</packing_charge>
<paid_amt>14</paid_amt>
<payment_mode>15</payment_mode>
<placeofsupply>sample string 18</placeofsupply>
<sale_date>2025-12-11T20:14:55.8489017+05:30</sale_date>
<shippig_charge>12</shippig_charge>
<tax_amount>11</tax_amount>
<total_amount>9</total_amount>
<transaction_no>sample string 16</transaction_no>
</Invoice>
application/x-www-form-urlencoded
Sample:
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. |