Reports API overview
Request on-demand reports, schedule recurring reports, run Data Kiosk queries and get sales metrics for your Walmart Marketplace business.
The Reports API lets you request reports about your items, inventory, orders, pricing, promotions, fulfillment and more, then download the finished file. Reports are processed asynchronously: you submit a request, Walmart builds the report in the background, and you download it when it's ready. You can also schedule reports to run on a recurring basis.
The reports and analytics family also includes Data Kiosk, for submitting analytics queries, and the Sales API, for aggregated order metrics.
Business use cases
- Audit your catalog. Pull an item report to check what's published and find listing issues.
- Monitor inventory. Get inventory reports to spot low-stock items before they go out of stock.
- Review performance. Request order, cancellation, delivery defect or item performance reports to track your service levels.
- Price competitively. Use pricing insights and Buy Box reports to adjust prices.
- Automate recurring data pulls. Schedule reports daily or weekly instead of requesting them by hand.
- Analyze sales trends. Get order metrics by hour, day, week, month or year.
How it works
- Get an access token. See Authentication.
- Create a report with
POST /v4/reports, naming thereportTypeand, optionally, a data time range. You get back areportIdwith status202 Accepted. - Poll
GET /v4/reports/{report-id}untilprocessingStatusisDONE,CANCELLEDorFATAL. - When the status is
DONE, readreportDocumentIdfrom the report. - Call
GET /v4/reports/documents/{document-id}to get a pre-signed download URL. - Download the file from the URL. If
compressionAlgorithmisGZIP, decompress it.
Key concepts
Processing status
Every report and Data Kiosk query moves through these statuses:
processingStatus | Meaning |
|---|---|
IN_QUEUE | The request is waiting to be processed |
IN_PROGRESS | The report is being built |
DONE | The report is ready. reportDocumentId is present |
CANCELLED | The request was cancelled |
FATAL | Processing failed |
You can cancel a report only while it is IN_QUEUE or IN_PROGRESS.
Report and document IDs
A reportId identifies your request. A reportDocumentId identifies the finished file. They are different values:
always use the reportDocumentId from a DONE report to get the download URL.
Report types
You choose what a report contains with reportType, for example ITEM, INVENTORY, ORDER, BUYBOX,
PRICING_INSIGHTS, CANCELLATION, RETURN_OVERRIDES, WFS_INVENTORY_LOG or SETTLEMENT. See
Request and download reports for the full list.
Schedules
A report schedule creates a new report of a given type at a fixed interval, expressed as an ISO 8601 duration such as
P1D (daily) or P7D (weekly). Reports created by a schedule carry its reportScheduleId.
Scopes
| Scope | Grants |
|---|---|
reports:read | Read and download reports and schedules |
reports:write | Create and cancel reports and schedules |
analytics:read | Submit and retrieve Data Kiosk queries and documents |
API operations
| Operation | Method & path | Use it to |
|---|---|---|
| Create report | POST /v4/reports | Request a report |
| Get reports | GET /v4/reports | List your reports by type, status and creation date |
| Get report | GET /v4/reports/{report-id} | Check a report's processing status |
| Cancel report | DELETE /v4/reports/{report-id} | Cancel a queued or in-progress report |
| Get report document | GET /v4/reports/documents/{document-id} | Get the download URL for a finished report |
| Create report schedule | POST /v4/reports/report-schedules | Schedule a recurring report |
| Get report schedules | GET /v4/reports/report-schedules | List your schedules |
| Get report schedule | GET /v4/reports/report-schedules/{schedule-id} | Get one schedule |
| Cancel report schedule | DELETE /v4/reports/report-schedules/{schedule-id} | Stop a schedule |
| Create query | POST /data-kiosk/v4/queries | Submit a Data Kiosk query |
| Get queries | GET /data-kiosk/v4/queries | List your Data Kiosk queries |
| Get query | GET /data-kiosk/v4/queries/{queryId} | Check a query's status |
| Cancel query | DELETE /data-kiosk/v4/queries/{queryId} | Cancel a queued or in-progress query |
| Get document | GET /data-kiosk/v4/documents/{documentId} | Get the download URL for query results |
| Get order metrics | GET /sales/v4/orderMetrics | Get aggregated order metrics for a time interval |
Best practices
- Poll at a sensible interval. Reports take time to build. Wait between status checks rather than polling in a
tight loop, and back off when you get
429 Too Many Requests. - Narrow the time range. Set
dataStartTimeanddataEndTimeso the report covers only the data you need. - Reuse finished reports. Call
GET /v4/reportswithprocessingStatuses=DONEto find an existing report before you request a new one. - Protect download URLs. The document URL is pre-signed and grants access to your data. Don't log it or share it.
- Schedule instead of polling for routine data. If you need the same report every day, create a schedule.
