GET api/clients/{clientId}/Faring/AccountInfo

Gets client's pre-paid fare information.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

integer

Required

Body Parameters

None.

Response Information

Resource Description

The client's pre-paid fare information.

ClientFareInfo
NameDescriptionTypeAdditional information
PrepaidFaringAllowed

Whether prepaid faring is permitted for this client.

boolean

None.

AccountBalance

The client's account balance

decimal number

None.

LastDepositTime

The time of the last transaction where the client deposited money.

date

None.

LastTransactionTime

THe time of the last transaction by the client.

date

None.

Response Formats

application/json, text/json

Sample:
{
  "prepaidFaringAllowed": true,
  "accountBalance": 2.0,
  "lastDepositTime": "2024-12-23T11:48:26.4572833-07:00",
  "lastTransactionTime": "2024-12-23T11:48:26.4572833-07:00"
}

application/xml, text/xml

Sample:
<ClientFareInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
  <AccountBalance>2</AccountBalance>
  <LastDepositTime>2024-12-23T11:48:26.4572833-07:00</LastDepositTime>
  <LastTransactionTime>2024-12-23T11:48:26.4572833-07:00</LastTransactionTime>
  <PrepaidFaringAllowed>true</PrepaidFaringAllowed>
</ClientFareInfo>