惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
I
InfoQ
Jina AI
Jina AI
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
量子位
月光博客
月光博客
罗磊的独立博客
雷峰网
雷峰网
The Cloudflare Blog
V
V2EX
小众软件
小众软件
人人都是产品经理
人人都是产品经理
博客园 - Franky
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How I Automated Amazon's "Request a Review" Button with t...
Bobonajaf · 2026-06-23 · via DEV Community
Cover image for How I Automated Amazon's "Request a Review" Button with the SP-API

Bobonajaf

Every Amazon order has a "Request a Review" button in Seller Central. When you click it, Amazon sends a standardised email to the buyer asking for a product review and seller feedback. It's compliant, it works, and it's tedious at scale.

I built Reevy to automate this. Here's how the SP-API Solicitations endpoint works and what I learned building around it.

The endpoint

Amazon's Selling Partner API has a Solicitations section. The key call:

POST /solicitations/v1/orders/{orderId}/solicitations/productReviewAndSellerFeedback

This triggers the exact same review request as clicking the button manually. Amazon handles the email content, language localisation, and delivery. You just tell it which order.

Authentication

SP-API uses a two-layer auth system:

  1. Login with Amazon (LWA) — OAuth2 flow to get a refresh token from the seller
  2. AWS IAM — your app signs requests with AWS credentials (STS AssumeRole)

The seller authorises your app once. You store their refresh token, exchange it for access tokens as needed, and sign every API call with your IAM role. Standard OAuth + AWS SigV4 — straightforward if you've done either before, a bit of a maze if you're new to both.

Eligibility rules

You can't request a review for every order. Amazon enforces:

  • Timing window: 5–30 days after delivery. Too early or too late and the API returns a 403.
  • One request per order: Call it twice and you get a 403 on the second attempt.
  • Order status: Must be delivered (not shipped, not cancelled, not returned).

This means you need to track delivery dates and manage a queue of eligible orders. I poll the Orders API daily, filter by delivery date, and queue orders that fall within my configured window (default: 7–14 days post-delivery).

Rate limits

The Solicitations endpoint has a rate limit of 1 request per second per seller, with a burst of 5. At scale (hundreds of orders per day per seller), this means you need to throttle your queue and handle 429 responses gracefully.

My approach: a cron job processes the queue every hour, sending requests with a 1.2-second delay between calls. Failed requests (429s, 5xx errors) go back in the queue with exponential backoff.

Multi-marketplace

A single seller often sells on Amazon US, UK, DE, FR, IT, ES, and more. Each marketplace has its own SP-API endpoint:

  • North America: sellingpartnerapi-na.amazon.com
  • Europe: sellingpartnerapi-eu.amazon.com
  • Far East: sellingpartnerapi-fe.amazon.com

The seller authorises once per region, and you route API calls to the correct endpoint based on the marketplace. Orders from Amazon.de go through the EU endpoint; orders from Amazon.com go through NA.

What I'd do differently

  • Don't poll the Orders API on a schedule. Use SP-API notifications (SQS) to get real-time order updates. I started with polling because it was simpler, but at scale the notification approach is more efficient and reduces API calls.
  • Store raw API responses. When something goes wrong (and it will — Amazon's API has occasional inconsistencies), having the raw response makes debugging much faster.
  • Test with sandbox first. SP-API has a sandbox environment. Use it before hitting production, especially for the Solicitations endpoint where a bad call can burn a seller's one-per-order request.

The product

This became Reevy — a standalone tool that automates the Request a Review button across all 21 Amazon marketplaces. Built with PHP and MariaDB, Stripe for billing, deployed on Krystal hosting. Listed in the Amazon Selling Partner Appstore.

If you're building on Amazon's SP-API and have questions about the auth flow, rate limiting, or the Solicitations endpoint specifically — happy to answer in the comments.