Skip to main content
The Reporting API is the core of the MerchantSpring Public API. Reports are generated asynchronously: you create a report, poll its status, and download the result when it’s ready. Some reports also offer instant JSON views.

Step 1 — Identify the channel

Many of our endpoints require you to provide two MerchantSpring channel identifiers - merchantId & channelId. In order to know what these parameters are we provide a /channels endpoint at the first point of contact for all report requests. The response from the channels endpoint will looks like the following:
You can use the displayName and countryCode to identify the record you wish to request data for.

Step 2 — Create a report

Create a report by calling POST /reports/create/<reportName>. The call returns a reportId:
Each report’s exact request body (date ranges, view options, columns) is documented on its API Reference page.

Step 3 — Poll for status

Call GET /reports/status/{reportId} until the report is finished:
The status field moves through startedinProgressdone (or errored if it fails).

Step 4 — Download

When status is done, the response includes a downloadUrl. Open it (or fetch it) to retrieve the report — reports are delivered as CSV.