ForSURE.reports.create_report.create_report_endpoint

baseURL = '/reports/create'

Base URL for all requests

GET {baseURL}/country_times
async def get_timeperiod_and_countries()

Get the minimum and maximum available time and the list of countries from the uploaded data or live data.

Returns

Successful response
    [
        "2022-07-01",
        "2024-02-26",
        [
            "NL",
            "DE",
            "BE"
        ]
    ]
    

GET {baseURL}/get_report_progress
async def get_report_progress()

Get whether a report is being generated for you right now

Returns

True if successful, else False

POST {baseURL}/create_report_user
async def create_report_user()

Create a report based on the given time frame, country and category. If applicable, you can also provide a report_id instead, and it will (re)create that report.

Parameters
  • country_id: Country Code, e.g. DE
  • start_date: Start date of the data to be considered in the report
  • end_date: End date of the data to be considered in the report
  • report_id: If set, use the country, start and end date and category from there instead
  • category: One of Batteries, WEEE, Packaging