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:
displayName and countryCode to identify the record you wish to request data for.
Step 2 — Create a report
Create a report by callingPOST /reports/create/<reportName>. The call returns a reportId:
Step 3 — Poll for status
CallGET /reports/status/{reportId} until the report is finished:
status field moves through started → inProgress → done (or errored if it fails).
Step 4 — Download
Whenstatus is done, the response includes a downloadUrl. Open it (or fetch it) to retrieve the report — reports are delivered as CSV.