WebAPI

<back to all web services

GetTollsByDate

Get the toll crossings for the given account within the date range.

The following routes are available for this service:
GET/GetTollsByDate/{AccountId}/{PageSize}/{PageNumber}/{StartDate}/{EndDate}RESTFUL call with Account ID, Start and End Dates, and Page Size in the URI
GET/GetTollsByDate/{AccountId}/{PageSize}/{PageNumber}/{StartDate}/{EndDate}/{PlateNumber}RESTFUL call with Account ID, Start and End Dates, Page Size and Plate Number in the URI
Parameters:
NameParameterData TypeRequiredDescription
AccountIdpathintegerYes
StartDatepathdateYesYYYY-MM-DD
EndDatepathdateYesYYYY-MM-DD
PageSizepathintegerYes
PageNumberpathintegerYes
PlateNumberpathstringNo

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetTollsByDate HTTP/1.1 
Host: api-preprod.merseyflow.co.uk 
Content-Type: text/csv
Content-Length: length

AccountId,StartDate,EndDate,PageSize,PageNumber,PlateNumber
0,0001-01-01,0001-01-01,0,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Date,Toll,TollFee,NoticeFee,TotalDue,TotalPaid,Direction,PlateNumber,TransactionType,TotalRecord
0001-01-01,0,0,0,0,0,String,String,0,0