POST apiwba/bataxi/kmvehicle

Request Information

URI Parameters

None.

Body Parameters

ReportKmVehicleI
NameDescriptionTypeAdditional information
XNCode

integer

None.

Data

Collection of ApiVehicleKmIp

None.

Username

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "XNCode": 1,
  "Data": [
    {
      "VehiclePlate": "sample string 1",
      "StartTime": "2026-04-04T18:17:32.1799798+07:00",
      "EndTime": "2026-04-04T18:17:32.1799798+07:00"
    },
    {
      "VehiclePlate": "sample string 1",
      "StartTime": "2026-04-04T18:17:32.1799798+07:00",
      "EndTime": "2026-04-04T18:17:32.1799798+07:00"
    }
  ],
  "Username": "sample string 2",
  "Password": "sample string 3"
}

application/xml, text/xml

Sample:
<ReportKmVehicleI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
  <Password xmlns="http://schemas.datacontract.org/2004/07/Entities.Common">sample string 3</Password>
  <Username xmlns="http://schemas.datacontract.org/2004/07/Entities.Common">sample string 2</Username>
  <Data>
    <ApiVehicleKmIp>
      <EndTime>2026-04-04T18:17:32.1799798+07:00</EndTime>
      <StartTime>2026-04-04T18:17:32.1799798+07:00</StartTime>
      <VehiclePlate>sample string 1</VehiclePlate>
    </ApiVehicleKmIp>
    <ApiVehicleKmIp>
      <EndTime>2026-04-04T18:17:32.1799798+07:00</EndTime>
      <StartTime>2026-04-04T18:17:32.1799798+07:00</StartTime>
      <VehiclePlate>sample string 1</VehiclePlate>
    </ApiVehicleKmIp>
  </Data>
  <XNCode>1</XNCode>
</ReportKmVehicleI>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiVehicleKmResult
NameDescriptionTypeAdditional 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:17:32.1799798+07:00",
      "EndTime": "2026-04-04T18:17:32.1799798+07:00"
    },
    {
      "TotalKm": 1.1,
      "PrivateCode": "sample string 2",
      "VehiclePlate": "sample string 3",
      "StartTime": "2026-04-04T18:17:32.1799798+07:00",
      "EndTime": "2026-04-04T18:17:32.1799798+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:17:32.1799798+07:00</EndTime>
      <StartTime>2026-04-04T18:17:32.1799798+07:00</StartTime>
      <VehiclePlate>sample string 3</VehiclePlate>
      <TotalKm>1.1</TotalKm>
    </ApiVehicleKm>
    <ApiVehicleKm>
      <EndTime>2026-04-04T18:17:32.1799798+07:00</EndTime>
      <StartTime>2026-04-04T18:17:32.1799798+07:00</StartTime>
      <VehiclePlate>sample string 3</VehiclePlate>
      <TotalKm>1.1</TotalKm>
    </ApiVehicleKm>
  </Data>
  <IsSucceed>true</IsSucceed>
  <MessageResult>sample string 1</MessageResult>
</ApiVehicleKmResult>