POST api/gps/kmvehicle
Request Information
URI Parameters
None.
Body Parameters
JsonReportKmVehicleInput| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of ApiVehicleKmIp |
None. |
|
| CustomerCode | string |
None. |
|
| Key | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Data": [
{
"VehiclePlate": "sample string 1",
"StartTime": "2026-04-04T18:11:35.0792237+07:00",
"EndTime": "2026-04-04T18:11:35.0792237+07:00"
},
{
"VehiclePlate": "sample string 1",
"StartTime": "2026-04-04T18:11:35.0792237+07:00",
"EndTime": "2026-04-04T18:11:35.0792237+07:00"
}
],
"CustomerCode": "sample string 1",
"Key": "sample string 2"
}
application/xml, text/xml
Sample:
<JsonReportKmVehicleInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
<CustomerCode>sample string 1</CustomerCode>
<Key>sample string 2</Key>
<Data>
<ApiVehicleKmIp>
<EndTime>2026-04-04T18:11:35.0792237+07:00</EndTime>
<StartTime>2026-04-04T18:11:35.0792237+07:00</StartTime>
<VehiclePlate>sample string 1</VehiclePlate>
</ApiVehicleKmIp>
<ApiVehicleKmIp>
<EndTime>2026-04-04T18:11:35.0792237+07:00</EndTime>
<StartTime>2026-04-04T18:11:35.0792237+07:00</StartTime>
<VehiclePlate>sample string 1</VehiclePlate>
</ApiVehicleKmIp>
</Data>
</JsonReportKmVehicleInput>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiVehicleKmResult| Name | Description | Type | Additional information |
|---|---|---|---|
| MessageResult | string |
None. |
|
| IsSucceed | boolean |
None. |
|
| Data | Collection of ApiVehicleKm |
None. |
Response Formats
application/json, text/json
Sample:
{
"MessageResult": "sample string 1",
"IsSucceed": true,
"Data": [
{
"TotalKm": 1.1,
"PrivateCode": "sample string 2",
"VehiclePlate": "sample string 3",
"StartTime": "2026-04-04T18:11:35.0792237+07:00",
"EndTime": "2026-04-04T18:11:35.0792237+07:00"
},
{
"TotalKm": 1.1,
"PrivateCode": "sample string 2",
"VehiclePlate": "sample string 3",
"StartTime": "2026-04-04T18:11:35.0792237+07:00",
"EndTime": "2026-04-04T18:11:35.0792237+07:00"
}
]
}
application/xml, text/xml
Sample:
<ApiVehicleKmResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
<Data>
<ApiVehicleKm>
<EndTime>2026-04-04T18:11:35.0792237+07:00</EndTime>
<StartTime>2026-04-04T18:11:35.0792237+07:00</StartTime>
<VehiclePlate>sample string 3</VehiclePlate>
<TotalKm>1.1</TotalKm>
</ApiVehicleKm>
<ApiVehicleKm>
<EndTime>2026-04-04T18:11:35.0792237+07:00</EndTime>
<StartTime>2026-04-04T18:11:35.0792237+07:00</StartTime>
<VehiclePlate>sample string 3</VehiclePlate>
<TotalKm>1.1</TotalKm>
</ApiVehicleKm>
</Data>
<IsSucceed>true</IsSucceed>
<MessageResult>sample string 1</MessageResult>
</ApiVehicleKmResult>