Prerequisites
- An API key issued by MerchantSpring — see Authentication.
curlor any HTTP client.
Step 1 — Find your channels
Most endpoints identify a channel by two values:merchantId and channelId. Call POST /channels to list the channels your organisation can access.
merchantId and channelId you’ll pass to other endpoints. See the full schema and filter options on the endpoint reference page.
Step 2 — Request a report
Reports are generated asynchronously. You create a report, then poll for its status until a download URL is ready. For example, create a “sales by product” report:reportId.
Step 3 — Poll for the report
Check the status with thereportId:
status is started or inProgress. It ends as done — which includes a downloadUrl to the CSV — or errored if it failed:
Next steps
Reports guide
The full report lifecycle and the list of available reports.
API Reference
Every endpoint, with an interactive playground.
Profitability
Store and product P&L, and managing unit COGS.
Conventions
Pagination, dates, and error handling.