POST api/transinvoice/insert
Request Information
URI Parameters
None.
Body Parameters
TransInvInsertRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TransInvMasterID | integer |
None. |
|
| BranchID | integer |
None. |
|
| FinancialYearID | integer |
None. |
|
| UserID | integer |
None. |
|
| TransactionNumberID | integer |
None. |
|
| TransactionDate | date |
None. |
|
| Time | string |
None. |
|
| VehicleID | integer |
None. |
|
| SalesAreaID | integer |
None. |
|
| DriverID | integer |
None. |
|
| SupplierLedgerID | integer |
None. |
|
| CustomerLedgerID | integer |
None. |
|
| StartKM | decimal number |
None. |
|
| EndKM | decimal number |
None. |
|
| Rent | decimal number |
None. |
|
| Bata | decimal number |
None. |
|
| SendWhatsApp | boolean |
None. |
|
| SupRemarks | string |
None. |
|
| SupPaymentModeID | integer |
None. |
|
| SupTotalGross | decimal number |
None. |
|
| SupDiscount | decimal number |
None. |
|
| SupTotal | decimal number |
None. |
|
| SupGrandTotal | decimal number |
None. |
|
| CustRemarks | string |
None. |
|
| CustPaymentModeID | integer |
None. |
|
| CustTotalGross | decimal number |
None. |
|
| CustDiscount | decimal number |
None. |
|
| CustTotal | decimal number |
None. |
|
| CustGrandTotal | decimal number |
None. |
|
| CashReceived | decimal number |
None. |
|
| SalesAccountID | integer |
None. |
|
| BankAccountID | integer |
None. |
|
| CustomerName | string |
None. |
|
| CustomerGSTNo | string |
None. |
|
| Address | string |
None. |
|
| Phone | string |
None. |
|
| SupplierItems | Collection of TransInvItemModel |
None. |
|
| CustomerItems | Collection of TransInvItemModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"TransInvMasterID": 1,
"BranchID": 2,
"FinancialYearID": 3,
"UserID": 4,
"TransactionNumberID": 5,
"TransactionDate": "2026-10-15T11:11:33.292115-07:00",
"Time": "sample string 7",
"VehicleID": 8,
"SalesAreaID": 1,
"DriverID": 1,
"SupplierLedgerID": 9,
"CustomerLedgerID": 10,
"StartKM": 1.0,
"EndKM": 1.0,
"Rent": 1.0,
"Bata": 11.0,
"SendWhatsApp": true,
"SupRemarks": "sample string 13",
"SupPaymentModeID": 1,
"SupTotalGross": 14.0,
"SupDiscount": 15.0,
"SupTotal": 16.0,
"SupGrandTotal": 17.0,
"CustRemarks": "sample string 18",
"CustPaymentModeID": 19,
"CustTotalGross": 20.0,
"CustDiscount": 21.0,
"CustTotal": 22.0,
"CustGrandTotal": 23.0,
"CashReceived": 24.0,
"SalesAccountID": 1,
"BankAccountID": 1,
"CustomerName": "sample string 25",
"CustomerGSTNo": "sample string 26",
"Address": "sample string 27",
"Phone": "sample string 28",
"SupplierItems": [
{
"ProductID": 1,
"Quantity": 2.0,
"UnitID": 3,
"UnitPrice": 4.0,
"SGST": 5.0,
"CGST": 6.0,
"IGST": 7.0,
"VAT": 8.0,
"TaxAmt": 9.0,
"GrossValue": 10.0,
"DiscountAmt": 11.0,
"NetValue": 12.0
},
{
"ProductID": 1,
"Quantity": 2.0,
"UnitID": 3,
"UnitPrice": 4.0,
"SGST": 5.0,
"CGST": 6.0,
"IGST": 7.0,
"VAT": 8.0,
"TaxAmt": 9.0,
"GrossValue": 10.0,
"DiscountAmt": 11.0,
"NetValue": 12.0
}
],
"CustomerItems": [
{
"ProductID": 1,
"Quantity": 2.0,
"UnitID": 3,
"UnitPrice": 4.0,
"SGST": 5.0,
"CGST": 6.0,
"IGST": 7.0,
"VAT": 8.0,
"TaxAmt": 9.0,
"GrossValue": 10.0,
"DiscountAmt": 11.0,
"NetValue": 12.0
},
{
"ProductID": 1,
"Quantity": 2.0,
"UnitID": 3,
"UnitPrice": 4.0,
"SGST": 5.0,
"CGST": 6.0,
"IGST": 7.0,
"VAT": 8.0,
"TaxAmt": 9.0,
"GrossValue": 10.0,
"DiscountAmt": 11.0,
"NetValue": 12.0
}
]
}
application/xml, text/xml
Sample:
<TransInvInsertRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
<Address>sample string 27</Address>
<BankAccountID>1</BankAccountID>
<Bata>11</Bata>
<BranchID>2</BranchID>
<CashReceived>24</CashReceived>
<CustDiscount>21</CustDiscount>
<CustGrandTotal>23</CustGrandTotal>
<CustPaymentModeID>19</CustPaymentModeID>
<CustRemarks>sample string 18</CustRemarks>
<CustTotal>22</CustTotal>
<CustTotalGross>20</CustTotalGross>
<CustomerGSTNo>sample string 26</CustomerGSTNo>
<CustomerItems>
<TransInvItemModel>
<CGST>6</CGST>
<DiscountAmt>11</DiscountAmt>
<GrossValue>10</GrossValue>
<IGST>7</IGST>
<NetValue>12</NetValue>
<ProductID>1</ProductID>
<Quantity>2</Quantity>
<SGST>5</SGST>
<TaxAmt>9</TaxAmt>
<UnitID>3</UnitID>
<UnitPrice>4</UnitPrice>
<VAT>8</VAT>
</TransInvItemModel>
<TransInvItemModel>
<CGST>6</CGST>
<DiscountAmt>11</DiscountAmt>
<GrossValue>10</GrossValue>
<IGST>7</IGST>
<NetValue>12</NetValue>
<ProductID>1</ProductID>
<Quantity>2</Quantity>
<SGST>5</SGST>
<TaxAmt>9</TaxAmt>
<UnitID>3</UnitID>
<UnitPrice>4</UnitPrice>
<VAT>8</VAT>
</TransInvItemModel>
</CustomerItems>
<CustomerLedgerID>10</CustomerLedgerID>
<CustomerName>sample string 25</CustomerName>
<DriverID>1</DriverID>
<EndKM>1</EndKM>
<FinancialYearID>3</FinancialYearID>
<Phone>sample string 28</Phone>
<Rent>1</Rent>
<SalesAccountID>1</SalesAccountID>
<SalesAreaID>1</SalesAreaID>
<SendWhatsApp>true</SendWhatsApp>
<StartKM>1</StartKM>
<SupDiscount>15</SupDiscount>
<SupGrandTotal>17</SupGrandTotal>
<SupPaymentModeID>1</SupPaymentModeID>
<SupRemarks>sample string 13</SupRemarks>
<SupTotal>16</SupTotal>
<SupTotalGross>14</SupTotalGross>
<SupplierItems>
<TransInvItemModel>
<CGST>6</CGST>
<DiscountAmt>11</DiscountAmt>
<GrossValue>10</GrossValue>
<IGST>7</IGST>
<NetValue>12</NetValue>
<ProductID>1</ProductID>
<Quantity>2</Quantity>
<SGST>5</SGST>
<TaxAmt>9</TaxAmt>
<UnitID>3</UnitID>
<UnitPrice>4</UnitPrice>
<VAT>8</VAT>
</TransInvItemModel>
<TransInvItemModel>
<CGST>6</CGST>
<DiscountAmt>11</DiscountAmt>
<GrossValue>10</GrossValue>
<IGST>7</IGST>
<NetValue>12</NetValue>
<ProductID>1</ProductID>
<Quantity>2</Quantity>
<SGST>5</SGST>
<TaxAmt>9</TaxAmt>
<UnitID>3</UnitID>
<UnitPrice>4</UnitPrice>
<VAT>8</VAT>
</TransInvItemModel>
</SupplierItems>
<SupplierLedgerID>9</SupplierLedgerID>
<Time>sample string 7</Time>
<TransInvMasterID>1</TransInvMasterID>
<TransactionDate>2026-10-15T11:11:33.292115-07:00</TransactionDate>
<TransactionNumberID>5</TransactionNumberID>
<UserID>4</UserID>
<VehicleID>8</VehicleID>
</TransInvInsertRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.