OpenAI·Software Engineer·Onsite - System Design / Architecture
- Design a payment system for in-store card-swipe (POS) scenarios, covering both authorization holds and end-of-day batch capture processing.
- How would you design the APIs for authorization, capture, void, and refund operations, and how do you handle idempotency across these?
- How do you handle retries and partial failures when forwarding a batch of captures to the credit card provider at midnight?
- How do you reconcile authorization holds against captures, and what happens when there's a mismatch?
- Walk through your data model for transactions, holds, captures, and settlements, and what consistency guarantees does it provide?
- How would you scale this system across many merchants, and what observability would you build in?
- How does your system handle fraud detection and declined authorizations from the credit card provider?
“This was the whole interview, basically.”