Design Refund Processing for Returned Orders Across Payment Methods

Last updated: November 29, 2026

Quick Overview

Design the service that issues refunds when a return is accepted, sending money back to the original card, gift card balance or split payment, at the right time and exactly once.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design the service that issues refunds when a return is accepted, sending money back to the original card, gift card balance or split payment, at the right time and exactly once.

Returns are a daily reality at Amazon, so refund flow design is a good screening question. The interviewer wants a clear trigger, correct splitting across tenders, idempotent calls to payment processors, and customer-visible status.

What the Interviewer Expects
  • Identify the trigger: carrier scan, drop-off, or warehouse receipt
  • Allocate the refund across original tenders in a defined order
  • Use idempotency keys per refund per tender
  • Track refund status and notify the customer
  • Handle processor failures and partial refunds
Key Topics to Cover
Payments
Idempotency
Workflow
Notifications
Error Handling
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • When would Amazon refund at drop-off instead of on warehouse receipt, and what are the risks?
  • How do you refund a card that has since expired?
  • How would you handle a partial return of a multi-item order with a promotion applied?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: on an accepted return, compute the refund amount (item price, tax, maybe shipping, minus restocking fees), split it across the original payment tenders, call each processor, and show statu...

High-Level Design

The Returns service emits ReturnAccepted with the order id and returned items. A Refund service consumes it, calculates the amount using the order's price breakdown, creates a Refund record with all...


Submit Your Answer
Markdown supported