- Print
- PDF
ACE remote API access enables external calls using the SQL Reporting Engine in ACE. This procedure covers generating an API key, fetching a report, and filtering data from a SQL report using JSON parameters.
Note
A SQL report must already exist for this procedure. Additionally, a basic understanding of JSON is required to work with the JSON parameters in the API calls.
Generating API Key for Remote API Access
Generate a remote API access key in the user profile.
Save the user after generating the key.
For enhanced security, regenerate the key every 120 days.
View Generate API Key for user for details.
Grab the Report Identifier
Go to Reports → SQL Designer.
Copy the Report Identifier from the field.
Fetching a Report: Constructing the URL
This procedure covers developing the URL to pull a report without filtering data.
Go to Help → API Documentation.
Navigate to the Reports section.
Click "Post" and then click "Try it out".
Fill in the required information:
customerID*
identifier* (Report Identifier)
type* (Custom,Inventory )
generate* (true)
Click "Execute" and copy the requested URL.
Open new web browser, paste the URL to view the report.
Passing Report Parameters via API: Applying Date Range Filters
To generate a report with date range filters, follow these steps:
Identify the parameters needed to filter data from the SQL report. For example, the createDate parameter.
Use a tool like https://www.urlencoder.org/ to encode the JSON parameters.
Enter the JSON parameters in the tool and click Encode.
[{ "name": "createDate", "valueStart": "01/01/2023", "valueEnd": "07/01/2023" }]
Construct the final URL: paste the original URL into a browser, add "¶ms=" then append the encoded parameter.
Test and verify the report URL.
Original URL:
https://test.interprose.com/report/runner.do?customerID=GINA&identifier=VIEWED_ACCOUNTS&type=CUSTOM&generate=true
Encoded parameters:
%5B%7B%0A%20%20"name"%3A%20"createDate"%2C%0A%20%20"valueStart"%3A%20"01%2F01%2F2023"%2C%0A%20%20"valueEnd"%3A%20"07%2F01%2F2023"%0A%7D%5D%0A%5B%7B%0A%20%20"name"%3A%20"DateRange"%2C%0A%20%20"valueStart"%3A%20"01%2F01%2F2023"%2C%0A%20%20"valueEnd"%3A%20"07%2F01%2F2023"%0A%7D%5D%0A
Final URL with encoded parameters:
https://test.interprose.com/report/runner.do?customerID=GINA&identifier=VIEWED_ACCOUNTS&type=CUSTOM&generate=true¶ms=%5B%7B%0A%20%20%22name%22%3A%20%22createDate%22%2C%0A%20%20%22valueStart%22%3A%20%2201%2F01%2F2023%22%2C%0A%20%20%22valueEnd%22%3A%20%2207%2F01%2F2023%22%0A%7D%5D%0A%5B%7B%0A%20%20%22name%22%3A%20%22DateRange%22%2C%0A%20%20%22valueStart%22%3A%20%2201%2F01%2F2023%22%2C%0A%20%20%22valueEnd%22%3A%20%2207%2F01%2F2023%22%0A%7D%5D%0A
Parameter and URL Details
Ensure that the parameter names, URL string values, and variables are correctly provided:
"customerID": Your ACE Customer ID (e.g., &customerID=CUSTID)
"type": Defines the type of ACE report (e.g., Custom, Inventory)
"identifier": Represents the report identifier (e.g., &identifier=REPORT_IDENTIFIER)
"apiKey": The key generated on the user page. Save the user after generating the key and use it as a Bearer token.
"generate": A value of "true" instructs the report engine to execute.
"params": Allows passing report parameters/options as a JSON array (e.g., ¶ms=[{name:"agencyNumber",value:"123456721"}])
The API call will run as the user associated with the API key.
For any questions or assistance, contact our Support team.