POST api/bataxi/trip

Request Information

URI Parameters

None.

Body Parameters

JsonTaxiApiInputTrip
NameDescriptionTypeAdditional information
XNCode

integer

None.

FromDate

date

None.

ToDate

date

None.

Username

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "XNCode": 1,
  "FromDate": "2026-04-08T17:14:32.5290379+07:00",
  "ToDate": "2026-04-08T17:14:32.5290379+07:00",
  "Username": "sample string 4",
  "Password": "sample string 5"
}

application/xml, text/xml

Sample:
<JsonTaxiApiInputTrip 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 5</Password>
  <Username xmlns="http://schemas.datacontract.org/2004/07/Entities.Common">sample string 4</Username>
  <FromDate>2026-04-08T17:14:32.5290379+07:00</FromDate>
  <ToDate>2026-04-08T17:14:32.5290379+07:00</ToDate>
  <XNCode>1</XNCode>
</JsonTaxiApiInputTrip>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonTaxiApiRsTrip
NameDescriptionTypeAdditional information
Trips

Collection of Trip

None.

MessageResult

string

None.

IsSucceed

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Trips": [
    {
      "VehiclePlate": "sample string 1",
      "StartLatitude": 1.1,
      "StartLongitude": 1.1,
      "StartAddress": "sample string 2",
      "StartTimeGPS": "2026-04-08T17:14:32.5290379+07:00",
      "StartTimeMeter": "2026-04-08T17:14:32.5290379+07:00",
      "EndLatitude": 1.1,
      "EndLongitude": 1.1,
      "EndAddress": "sample string 4",
      "EndTimeGPS": "2026-04-08T17:14:32.5290379+07:00",
      "EndTimeMeter": "2026-04-08T17:14:32.5290379+07:00",
      "WaitTime": 1,
      "MoneyOnMeter": 1,
      "MoneyReceiver": 1,
      "KmEmpty": 1.1,
      "KmHasGuestGPS": 1.1,
      "KmTotal": 2.2
    },
    {
      "VehiclePlate": "sample string 1",
      "StartLatitude": 1.1,
      "StartLongitude": 1.1,
      "StartAddress": "sample string 2",
      "StartTimeGPS": "2026-04-08T17:14:32.5290379+07:00",
      "StartTimeMeter": "2026-04-08T17:14:32.5290379+07:00",
      "EndLatitude": 1.1,
      "EndLongitude": 1.1,
      "EndAddress": "sample string 4",
      "EndTimeGPS": "2026-04-08T17:14:32.5290379+07:00",
      "EndTimeMeter": "2026-04-08T17:14:32.5290379+07:00",
      "WaitTime": 1,
      "MoneyOnMeter": 1,
      "MoneyReceiver": 1,
      "KmEmpty": 1.1,
      "KmHasGuestGPS": 1.1,
      "KmTotal": 2.2
    }
  ],
  "MessageResult": "sample string 1",
  "IsSucceed": true
}

application/xml, text/xml

Sample:
<JsonTaxiApiRsTrip xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Model">
  <IsSucceed>true</IsSucceed>
  <MessageResult>sample string 1</MessageResult>
  <Trips xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataAccess.Entities.Reports.Taxi">
    <d2p1:Trip>
      <d2p1:EndAddress>sample string 4</d2p1:EndAddress>
      <d2p1:EndLatitude>1.1</d2p1:EndLatitude>
      <d2p1:EndLongitude>1.1</d2p1:EndLongitude>
      <d2p1:EndTimeGPS>2026-04-08T17:14:32.5290379+07:00</d2p1:EndTimeGPS>
      <d2p1:EndTimeMeter>2026-04-08T17:14:32.5290379+07:00</d2p1:EndTimeMeter>
      <d2p1:KmEmpty>1.1</d2p1:KmEmpty>
      <d2p1:KmHasGuestGPS>1.1</d2p1:KmHasGuestGPS>
      <d2p1:MoneyOnMeter>1</d2p1:MoneyOnMeter>
      <d2p1:MoneyReceiver>1</d2p1:MoneyReceiver>
      <d2p1:StartAddress>sample string 2</d2p1:StartAddress>
      <d2p1:StartLatitude>1.1</d2p1:StartLatitude>
      <d2p1:StartLongitude>1.1</d2p1:StartLongitude>
      <d2p1:StartTimeGPS>2026-04-08T17:14:32.5290379+07:00</d2p1:StartTimeGPS>
      <d2p1:StartTimeMeter>2026-04-08T17:14:32.5290379+07:00</d2p1:StartTimeMeter>
      <d2p1:VehiclePlate>sample string 1</d2p1:VehiclePlate>
      <d2p1:WaitTime>1</d2p1:WaitTime>
    </d2p1:Trip>
    <d2p1:Trip>
      <d2p1:EndAddress>sample string 4</d2p1:EndAddress>
      <d2p1:EndLatitude>1.1</d2p1:EndLatitude>
      <d2p1:EndLongitude>1.1</d2p1:EndLongitude>
      <d2p1:EndTimeGPS>2026-04-08T17:14:32.5290379+07:00</d2p1:EndTimeGPS>
      <d2p1:EndTimeMeter>2026-04-08T17:14:32.5290379+07:00</d2p1:EndTimeMeter>
      <d2p1:KmEmpty>1.1</d2p1:KmEmpty>
      <d2p1:KmHasGuestGPS>1.1</d2p1:KmHasGuestGPS>
      <d2p1:MoneyOnMeter>1</d2p1:MoneyOnMeter>
      <d2p1:MoneyReceiver>1</d2p1:MoneyReceiver>
      <d2p1:StartAddress>sample string 2</d2p1:StartAddress>
      <d2p1:StartLatitude>1.1</d2p1:StartLatitude>
      <d2p1:StartLongitude>1.1</d2p1:StartLongitude>
      <d2p1:StartTimeGPS>2026-04-08T17:14:32.5290379+07:00</d2p1:StartTimeGPS>
      <d2p1:StartTimeMeter>2026-04-08T17:14:32.5290379+07:00</d2p1:StartTimeMeter>
      <d2p1:VehiclePlate>sample string 1</d2p1:VehiclePlate>
      <d2p1:WaitTime>1</d2p1:WaitTime>
    </d2p1:Trip>
  </Trips>
</JsonTaxiApiRsTrip>