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": "2021-06-24T03:39:01.3240555-06:00",
  "lastTransactionTime": "2021-06-24T03:39:01.3240555-06: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>2021-06-24T03:39:01.3240555-06:00</LastDepositTime>
  <LastTransactionTime>2021-06-24T03:39:01.3240555-06:00</LastTransactionTime>
  <PrepaidFaringAllowed>true</PrepaidFaringAllowed>
</ClientFareInfo>