You can add one to 16 Tariff Steps for selected Tariff Package.
A Tariff Step is defined either by a Duration (in minutes) or Ticks (purchased Tickets). This functionality can be used for displaying tariff package intervals in a third party application.
Note that Duration and Ticks cannot be mixed. |
API to GET TariffSteps
Note: Specifications for Tariff web service must take into consideration that an MPP can make a request for tariffs of different parks. |
Due to the structure of an MPP, the same tariff Id can be used in different companies. The request from the MPP for tariff computation must indicate the park code to make the tariff Id unique.
URI - http://{Host}/Cwo2SystemIntegrationService/TariffSteps/1/TariffStepsService.svc/GetTariffSteps
Request parameters:
Parameter |
Type |
|
Description |
---|---|---|---|
parkingId |
string |
Man |
Parking id for the company to which parking space belongs |
tariffPackageGuid |
Int |
Man |
Reference to the tariff used for the parking space. |
startTime |
datetime |
Man |
Start date of the active parking session on the space |
devicetype |
string |
Opt |
Not needed if this API is going to be used only by the flowbird app |
duration* |
int |
Opt |
If this is provided, we return computed tariffs |
endTime* |
datetime |
Opt |
End date of the active parking session. If this is provided, we return computed tariffs |
nbSteps* |
int |
Opt |
Max. Number of steps. Note - Based on the duration/number of steps |
*) At least one of the parameters Duration, endTime, or nbSteps must be specified
Response:
If duration or endTime is provided, the response returns one iteration of the parameters listed below. Otherwise it returns a list of steps.
Parameter |
Type |
Description |
---|---|---|
amount |
double |
Amount paid for the session |
duration |
Int |
Time selection for the session |
paidDuration |
Int |
Amount paid for a duration of time |
taxAmount |
Int |
Amount of tax included in the price paid |
currency |
String |
Type of currency |
endtime |
Datetime |
End date of the parking session |
startTime |
Datetime |
Start date of the parking session |