Getting Started

Reports API

ReportsApi is the RESTfull service that allows you to retrieve report data in supported formats (application/json, application/xml).
Reports API grabs specific request parameters directly from the URL.
Use Get method to inquire a specific report.

Making API Calls

To pass the report service authorization, send login and password in the Authorization transaction request header.

To call the method – enter URL address of controller with values of filter and other parameters.
Controller will process incoming request with parameters and return response with requested report in XML or JSON format.

URL format:

http://host/application/controller_name?parameter1=value&parameter2&..&parameterN=value

Request Example:

https://reports-api.4levers.com/api/Reports/account-balances?DateFrom=2019-07-23&DateTo=2019-07-24

Service Response:

Service returns response in JSON format. See attached Json code snippet.

URLs:

REST Sandbox URL: https://sandbox.4levers.com/NewReportsApi
REST Production URL: https://reports-api.4levers.com

				
					{
  "CreationTime": "2022-08-04T23:25:24",
  "AccountID": "201",
  "SubAccountID": "1",
  "CommissionFeeTypeID": "26",
  "CommissionFeeTypeDescription": "Installment Fee",
  "Amount": "10.00",
  "Currency": "USD",
  "CurrencySymbol": "$",
  "AccountName": "New Name",
  "SubAccountName": "Sub-AccountID - Sub-Account Name",
  "TransactionID": "2010000000252204",
  "ValueDate": "2022-08-04T23:25:24",
  "AccountData": "201.1",
  "SourceActivityErrorID": "0"
}