POST api/Trips/PostMeterData

Request Information

URI Parameters

None.

Body Parameters

PostMeterData
NameDescriptionTypeAdditional information
APIKey

string

None.

MeterTime

date

None.

TabletID

string

None.

DriverID

integer

None.

DriverName

string

None.

DriverNumber

string

None.

VehicleID

integer

None.

VehicleNumber

string

None.

TripID

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Speed

integer

None.

Direction

integer

None.

FareAmount

decimal number

None.

WaitAmount

decimal number

None.

WaitCounter

integer

None.

CurrentMiles

decimal number

None.

MileAmount

decimal number

None.

MeterStatus

string

None.

CurrentMeters

decimal number

None.

WaitFee

decimal number

None.

BaseRate

decimal number

None.

WaitSpan

integer

None.

CostPerMile

decimal number

None.

LinkID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "APIKey": "sample string 1",
  "MeterTime": "2024-11-20T07:23:41.2796072-05:00",
  "TabletID": "sample string 3",
  "DriverID": 4,
  "DriverName": "sample string 5",
  "DriverNumber": "sample string 6",
  "VehicleID": 7,
  "VehicleNumber": "sample string 8",
  "TripID": 9,
  "Latitude": 10.0,
  "Longitude": 11.0,
  "Speed": 12,
  "Direction": 13,
  "FareAmount": 14.0,
  "WaitAmount": 15.0,
  "WaitCounter": 16,
  "CurrentMiles": 17.0,
  "MileAmount": 18.0,
  "MeterStatus": "sample string 19",
  "CurrentMeters": 20.0,
  "WaitFee": 21.0,
  "BaseRate": 22.0,
  "WaitSpan": 23,
  "CostPerMile": 24.0,
  "LinkID": "sample string 25"
}

application/xml, text/xml

Sample:
<TripsModel.PostMeterData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProCADMobileService.Models">
  <APIKey>sample string 1</APIKey>
  <BaseRate>22</BaseRate>
  <CostPerMile>24</CostPerMile>
  <CurrentMeters>20</CurrentMeters>
  <CurrentMiles>17</CurrentMiles>
  <Direction>13</Direction>
  <DriverID>4</DriverID>
  <DriverName>sample string 5</DriverName>
  <DriverNumber>sample string 6</DriverNumber>
  <FareAmount>14</FareAmount>
  <Latitude>10</Latitude>
  <LinkID>sample string 25</LinkID>
  <Longitude>11</Longitude>
  <MeterStatus>sample string 19</MeterStatus>
  <MeterTime>2024-11-20T07:23:41.2796072-05:00</MeterTime>
  <MileAmount>18</MileAmount>
  <Speed>12</Speed>
  <TabletID>sample string 3</TabletID>
  <TripID>9</TripID>
  <VehicleID>7</VehicleID>
  <VehicleNumber>sample string 8</VehicleNumber>
  <WaitAmount>15</WaitAmount>
  <WaitCounter>16</WaitCounter>
  <WaitFee>21</WaitFee>
  <WaitSpan>23</WaitSpan>
</TripsModel.PostMeterData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PostMeterReturn
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

ReturnCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "ReturnCode": 3
}

application/xml, text/xml

Sample:
<TripsModel.PostMeterReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProCADMobileService.Models">
  <ReturnCode>3</ReturnCode>
  <message>sample string 2</message>
  <status>true</status>
</TripsModel.PostMeterReturn>