PracHub
QuestionsPremiumLearningGuidesCheatsheetNEW
|Home/System Design/OpenAI

Design a payment system with holds and batching

Last updated: Apr 7, 2026

Quick Overview

This question evaluates a candidate's competency in designing reliable, auditable payment workflows, covering authorization holds, batch settlement, immediate charges, idempotency, failure handling, reconciliation, and security within the system design domain.

  • hard
  • OpenAI
  • System Design
  • Software Engineer

Design a payment system with holds and batching

Company: OpenAI

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

## Scenario Design a payment system that supports: 1. **Hold payment (authorization)**: Place a temporary hold on a customer’s payment method for a given amount. 2. **Batch process funds (settlement)**: Capture/settle authorized holds in batch (e.g., end-of-day) and move funds to the merchant. 3. **Charge payment (direct charge)**: Charge immediately (auth + capture) when batching is not desired. The system must be reliable, idempotent, and auditable. ## What to cover - APIs and core data model - End-to-end flows (hold, capture/batch settlement, direct charge, cancel/release hold, refunds) - Consistency guarantees and failure handling - Idempotency strategy - Handling duplicates, retries, partial failures - Observability and reconciliation - Security/compliance considerations (high level)

Quick Answer: This question evaluates a candidate's competency in designing reliable, auditable payment workflows, covering authorization holds, batch settlement, immediate charges, idempotency, failure handling, reconciliation, and security within the system design domain.

Related Interview Questions

  • Design a Distributed Rate Limiter - OpenAI
  • Design a Distributed Crossword Solver - OpenAI (medium)
  • Design Mobile Model Usage Quotas - OpenAI (medium)
  • Design a Slack-Like Messaging System - OpenAI (medium)
  • Design a Real-Time Chess Service - OpenAI (medium)
OpenAI logo
OpenAI
Mar 1, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
81
0
Loading...

Scenario

Design a payment system that supports:

  1. Hold payment (authorization) : Place a temporary hold on a customer’s payment method for a given amount.
  2. Batch process funds (settlement) : Capture/settle authorized holds in batch (e.g., end-of-day) and move funds to the merchant.
  3. Charge payment (direct charge) : Charge immediately (auth + capture) when batching is not desired.

The system must be reliable, idempotent, and auditable.

What to cover

  • APIs and core data model
  • End-to-end flows (hold, capture/batch settlement, direct charge, cancel/release hold, refunds)
  • Consistency guarantees and failure handling
  • Idempotency strategy
  • Handling duplicates, retries, partial failures
  • Observability and reconciliation
  • Security/compliance considerations (high level)

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More OpenAI•More Software Engineer•OpenAI Software Engineer•OpenAI System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.