Fetch and parse Amazon SP-API reports into structured TSV rows
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.amazon.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Config (Edit Fields (Set)): sets 6 fields: sp_api_endpoint, report_type, marketplace_ids…
- Get Access Token (HTTP Request): calls api.amazon.com (POST)
- Create Report (HTTP Request): calls an HTTP API (POST)
- Poll Until Done (Code): runs custom JavaScript code
- Get Report Document (HTTP Request): calls an HTTP API
- Download Report (HTTP Request): calls an HTTP API
- Is Gzipped? (If): checks a condition and branches into true / false
- Set GZ Extension (Code): runs custom JavaScript code
- Parse Report TSV (Code): runs custom JavaScript code
- Decompress (Compression): uses Compression
HTTP calls to: api.amazon.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Compression
n8n-nodes-base.compression
From the author
Quick Overview This workflow manually requests an Amazon Selling Partner (SP-API) report, polls until it is ready, downloads the report document, optionally decompresses it if it is GZIP, and parses the TSV contents into one n8n item per row. How it works 1.…