Templates / Fetch and parse Amazon SP-API reports into structured TSV rows

Fetch and parse Amazon SP-API reports into structured TSV rows

Ready for 3.0

by Nexus AI ✓ · 45 views · created 2026-06-16 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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”.

  1. Config (Edit Fields (Set)): sets 6 fields: sp_api_endpoint, report_type, marketplace_ids…
  2. Get Access Token (HTTP Request): calls api.amazon.com (POST)
  3. Create Report (HTTP Request): calls an HTTP API (POST)
  4. Poll Until Done (Code): runs custom JavaScript code
  5. Get Report Document (HTTP Request): calls an HTTP API
  6. Download Report (HTTP Request): calls an HTTP API
  7. Is Gzipped? (If): checks a condition and branches into true / false
  8. Set GZ Extension (Code): runs custom JavaScript code
  9. Parse Report TSV (Code): runs custom JavaScript code
  10. 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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (6)

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.…

Excerpt from Nexus AI's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.