POST api/TruckLocations
Request Information
URI Parameters
None.
Body Parameters
TruckLocation| Name | Description | Type | Additional information |
|---|---|---|---|
| truckLocationId | integer |
None. |
|
| truckId | string |
None. |
|
| username | string |
None. |
|
| deviceName | string |
None. |
|
| longitude | decimal number |
None. |
|
| latitude | decimal number |
None. |
|
| date | date |
None. |
|
| customerNumber | string |
None. |
|
| shipTo | string |
None. |
|
| sellType | string |
None. |
|
| comments | string |
None. |
|
| issale | boolean |
None. |
|
| isvisit | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"truckLocationId": 1,
"truckId": "sample string 2",
"username": "sample string 3",
"deviceName": "sample string 4",
"longitude": 5.0,
"latitude": 6.0,
"date": "2025-12-10T16:40:59.1019275-04:00",
"customerNumber": "sample string 8",
"shipTo": "sample string 9",
"sellType": "sample string 10",
"comments": "sample string 11",
"issale": true,
"isvisit": true
}
application/xml, text/xml
Sample:
<TruckLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EGas.WebAPI.Models"> <comments>sample string 11</comments> <customerNumber>sample string 8</customerNumber> <date>2025-12-10T16:40:59.1019275-04:00</date> <deviceName>sample string 4</deviceName> <issale>true</issale> <isvisit>true</isvisit> <latitude>6</latitude> <longitude>5</longitude> <sellType>sample string 10</sellType> <shipTo>sample string 9</shipTo> <truckId>sample string 2</truckId> <truckLocationId>1</truckLocationId> <username>sample string 3</username> </TruckLocation>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.