POST api/transtrip/insert

Request Information

URI Parameters

None.

Body Parameters

TransTripInsertRequestModel
NameDescriptionTypeAdditional information
TransTripID

integer

None.

BranchID

integer

None.

FinancialYearID

integer

None.

UserID

integer

None.

TransactionNumberID

integer

None.

TripDate

date

None.

Time

string

None.

StartLocationID

integer

None.

StartKM

decimal number

None.

ProductID

integer

None.

EndLocationID

integer

None.

EndKM

decimal number

None.

Rent

decimal number

None.

TaxCategoryID

integer

None.

SGST

decimal number

None.

CGST

decimal number

None.

IGST

decimal number

None.

VAT

decimal number

None.

TaxAmt

decimal number

None.

RentTotal

decimal number

None.

DriverID

integer

None.

Bata

decimal number

None.

CustomerLedgerID

integer

None.

Remarks

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TransTripID": 1,
  "BranchID": 2,
  "FinancialYearID": 3,
  "UserID": 4,
  "TransactionNumberID": 5,
  "TripDate": "2026-10-15T11:11:38.0109708-07:00",
  "Time": "sample string 7",
  "StartLocationID": 8,
  "StartKM": 1.0,
  "ProductID": 9,
  "EndLocationID": 10,
  "EndKM": 1.0,
  "Rent": 11.0,
  "TaxCategoryID": 1,
  "SGST": 12.0,
  "CGST": 13.0,
  "IGST": 14.0,
  "VAT": 15.0,
  "TaxAmt": 16.0,
  "RentTotal": 17.0,
  "DriverID": 1,
  "Bata": 18.0,
  "CustomerLedgerID": 1,
  "Remarks": "sample string 19"
}

application/xml, text/xml

Sample:
<TransTripInsertRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <Bata>18</Bata>
  <BranchID>2</BranchID>
  <CGST>13</CGST>
  <CustomerLedgerID>1</CustomerLedgerID>
  <DriverID>1</DriverID>
  <EndKM>1</EndKM>
  <EndLocationID>10</EndLocationID>
  <FinancialYearID>3</FinancialYearID>
  <IGST>14</IGST>
  <ProductID>9</ProductID>
  <Remarks>sample string 19</Remarks>
  <Rent>11</Rent>
  <RentTotal>17</RentTotal>
  <SGST>12</SGST>
  <StartKM>1</StartKM>
  <StartLocationID>8</StartLocationID>
  <TaxAmt>16</TaxAmt>
  <TaxCategoryID>1</TaxCategoryID>
  <Time>sample string 7</Time>
  <TransTripID>1</TransTripID>
  <TransactionNumberID>5</TransactionNumberID>
  <TripDate>2026-10-15T11:11:38.0109708-07:00</TripDate>
  <UserID>4</UserID>
  <VAT>15</VAT>
</TransTripInsertRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TransTripInsertRequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.