POST api/sales/invtransaction/insert
Request Information
URI Parameters
None.
Body Parameters
InsertInvTransactionRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| InvTransactionMasterID | integer |
None. |
|
| TransactionNumberID | integer |
None. |
|
| InvTransactionNumberID | integer |
None. |
|
| ProjectManagementID | integer |
None. |
|
| CounterSessionID | integer |
None. |
|
| Invoiced | integer |
None. |
|
| VoucherType | string |
None. |
|
| VoucherForm | string |
None. |
|
| TransactionDate | date |
None. |
|
| LedgerID | integer |
None. |
|
| IsInclusive | integer |
None. |
|
| PassID | integer |
None. |
|
| VehicleID | integer |
None. |
|
| VehicleName | string |
None. |
|
| DriverID | integer |
None. |
|
| Rent | decimal number |
None. |
|
| SalesAreaID | integer |
None. |
|
| TaxCategoryID | integer |
None. |
|
| EmployeeID | integer |
None. |
|
| CustomerName | string |
None. |
|
| CustomerGSTNo | string |
None. |
|
| Address | string |
None. |
|
| Phone | string |
None. |
|
| ReferenceNumber | string |
None. |
|
| ReferenceDate | date |
None. |
|
| PaymentModeID | integer |
None. |
|
| CashAccountID | integer |
None. |
|
| BankAccountID | integer |
None. |
|
| SalesAccountID | integer |
None. |
|
| TotalGross | decimal number |
None. |
|
| BillDiscount | decimal number |
None. |
|
| TotalTax | decimal number |
None. |
|
| GrandTotal | decimal number |
None. |
|
| CashReceived | decimal number |
None. |
|
| ByCash | decimal number |
None. |
|
| Bata | decimal number |
None. |
|
| Permit | decimal number |
None. |
|
| Remarks | string |
None. |
|
| BranchID | integer |
None. |
|
| FinancialYearID | integer |
None. |
|
| UserID | integer |
None. |
|
| Items | Collection of InvTransactionItemModel |
None. |
|
| SpareLocations | Collection of PurchaseSpareLocationModel |
None. |
|
| Time | string |
None. |
|
| PermitAccountID | integer |
None. |
|
| SalesDiscountLedgerID | integer |
None. |
|
| PurchaseDiscountLedgerID | integer |
None. |
|
| BataAccountID | integer |
None. |
|
| RoundOffLedgerID | integer |
None. |
|
| RoundOff | decimal number |
None. |
|
| TransporterID | integer |
None. |
|
| RentType | string |
None. |
|
| IsTransportIncluded | boolean |
None. |
|
| RentExpenseAccountID | integer |
None. |
|
| RentIncomeAccountID | integer |
None. |
|
| SalesOrderID | integer |
None. |
|
| EwayState | string |
None. |
|
| EwayStateCode | integer |
None. |
|
| EwayPlace | string |
None. |
|
| EwayPinCode | integer |
None. |
|
| EwayDistance | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"InvTransactionMasterID": 1,
"TransactionNumberID": 2,
"InvTransactionNumberID": 3,
"ProjectManagementID": 4,
"CounterSessionID": 5,
"Invoiced": 6,
"VoucherType": "sample string 7",
"VoucherForm": "sample string 8",
"TransactionDate": "2026-10-15T11:13:33.6336241-07:00",
"LedgerID": 10,
"IsInclusive": 11,
"PassID": 12,
"VehicleID": 1,
"VehicleName": "sample string 13",
"DriverID": 1,
"Rent": 1.0,
"SalesAreaID": 1,
"TaxCategoryID": 1,
"EmployeeID": 1,
"CustomerName": "sample string 14",
"CustomerGSTNo": "sample string 15",
"Address": "sample string 16",
"Phone": "sample string 17",
"ReferenceNumber": "sample string 18",
"ReferenceDate": "2026-10-15T11:13:33.6336241-07:00",
"PaymentModeID": 19,
"CashAccountID": 1,
"BankAccountID": 1,
"SalesAccountID": 20,
"TotalGross": 21.0,
"BillDiscount": 22.0,
"TotalTax": 23.0,
"GrandTotal": 24.0,
"CashReceived": 25.0,
"ByCash": 26.0,
"Bata": 27.0,
"Permit": 28.0,
"Remarks": "sample string 29",
"BranchID": 30,
"FinancialYearID": 31,
"UserID": 32,
"Items": [
{
"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
}
],
"SpareLocations": [
{
"ProductID": 1,
"Quantity": 2.0,
"StockRoomID": 3,
"StockShelfID": 4,
"StockRackID": 5
},
{
"ProductID": 1,
"Quantity": 2.0,
"StockRoomID": 3,
"StockShelfID": 4,
"StockRackID": 5
}
],
"Time": "sample string 33",
"PermitAccountID": 34,
"SalesDiscountLedgerID": 35,
"PurchaseDiscountLedgerID": 36,
"BataAccountID": 37,
"RoundOffLedgerID": 38,
"RoundOff": 39.0,
"TransporterID": 1,
"RentType": "sample string 40",
"IsTransportIncluded": true,
"RentExpenseAccountID": 42,
"RentIncomeAccountID": 43,
"SalesOrderID": 44,
"EwayState": "sample string 45",
"EwayStateCode": 46,
"EwayPlace": "sample string 47",
"EwayPinCode": 48,
"EwayDistance": 49
}
application/xml, text/xml
Sample:
<InsertInvTransactionRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
<Address>sample string 16</Address>
<BankAccountID>1</BankAccountID>
<Bata>27</Bata>
<BataAccountID>37</BataAccountID>
<BillDiscount>22</BillDiscount>
<BranchID>30</BranchID>
<ByCash>26</ByCash>
<CashAccountID>1</CashAccountID>
<CashReceived>25</CashReceived>
<CounterSessionID>5</CounterSessionID>
<CustomerGSTNo>sample string 15</CustomerGSTNo>
<CustomerName>sample string 14</CustomerName>
<DriverID>1</DriverID>
<EmployeeID>1</EmployeeID>
<EwayDistance>49</EwayDistance>
<EwayPinCode>48</EwayPinCode>
<EwayPlace>sample string 47</EwayPlace>
<EwayState>sample string 45</EwayState>
<EwayStateCode>46</EwayStateCode>
<FinancialYearID>31</FinancialYearID>
<GrandTotal>24</GrandTotal>
<InvTransactionMasterID>1</InvTransactionMasterID>
<InvTransactionNumberID>3</InvTransactionNumberID>
<Invoiced>6</Invoiced>
<IsInclusive>11</IsInclusive>
<IsTransportIncluded>true</IsTransportIncluded>
<Items>
<InvTransactionItemModel>
<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>
</InvTransactionItemModel>
<InvTransactionItemModel>
<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>
</InvTransactionItemModel>
</Items>
<LedgerID>10</LedgerID>
<PassID>12</PassID>
<PaymentModeID>19</PaymentModeID>
<Permit>28</Permit>
<PermitAccountID>34</PermitAccountID>
<Phone>sample string 17</Phone>
<ProjectManagementID>4</ProjectManagementID>
<PurchaseDiscountLedgerID>36</PurchaseDiscountLedgerID>
<ReferenceDate>2026-10-15T11:13:33.6336241-07:00</ReferenceDate>
<ReferenceNumber>sample string 18</ReferenceNumber>
<Remarks>sample string 29</Remarks>
<Rent>1</Rent>
<RentExpenseAccountID>42</RentExpenseAccountID>
<RentIncomeAccountID>43</RentIncomeAccountID>
<RentType>sample string 40</RentType>
<RoundOff>39</RoundOff>
<RoundOffLedgerID>38</RoundOffLedgerID>
<SalesAccountID>20</SalesAccountID>
<SalesAreaID>1</SalesAreaID>
<SalesDiscountLedgerID>35</SalesDiscountLedgerID>
<SalesOrderID>44</SalesOrderID>
<SpareLocations>
<PurchaseSpareLocationModel>
<ProductID>1</ProductID>
<Quantity>2</Quantity>
<StockRackID>5</StockRackID>
<StockRoomID>3</StockRoomID>
<StockShelfID>4</StockShelfID>
</PurchaseSpareLocationModel>
<PurchaseSpareLocationModel>
<ProductID>1</ProductID>
<Quantity>2</Quantity>
<StockRackID>5</StockRackID>
<StockRoomID>3</StockRoomID>
<StockShelfID>4</StockShelfID>
</PurchaseSpareLocationModel>
</SpareLocations>
<TaxCategoryID>1</TaxCategoryID>
<Time>sample string 33</Time>
<TotalGross>21</TotalGross>
<TotalTax>23</TotalTax>
<TransactionDate>2026-10-15T11:13:33.6336241-07:00</TransactionDate>
<TransactionNumberID>2</TransactionNumberID>
<TransporterID>1</TransporterID>
<UserID>32</UserID>
<VehicleID>1</VehicleID>
<VehicleName>sample string 13</VehicleName>
<VoucherForm>sample string 8</VoucherForm>
<VoucherType>sample string 7</VoucherType>
</InsertInvTransactionRequestModel>
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.