PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Circle

Design banking payment scheduling system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates system design and reliability competencies in the payments domain, including payment orchestration, state-machine design, idempotency semantics, concurrency control, durable audit/event modeling, data migration planning, and loss-reporting aggregation.

  • hard
  • Circle
  • System Design
  • Software Engineer

Design banking payment scheduling system

Company: Circle

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Take-home Project

##### Question Design and implement a banking payment system that: Adds a cancelPayment operation able to cancel a previously-scheduled payment. Extends schedulePayment to report and persist both success and failure results. Removes obsolete payment cases as required. Produces a report of outgoing transactions sorted by total loss amount.

Quick Answer: This question evaluates system design and reliability competencies in the payments domain, including payment orchestration, state-machine design, idempotency semantics, concurrency control, durable audit/event modeling, data migration planning, and loss-reporting aggregation.

Related Interview Questions

  • Design in-memory DB with TTL and backup - Circle (hard)
  • Design flight-price search service - Circle (hard)
  • Trace and reduce redundant curl requests - Circle (medium)
Circle logo
Circle
Aug 4, 2025, 10:55 AM
Software Engineer
Take-home Project
System Design
9
0

System Design: Banking Payment System Enhancements

Context

You are building a minimal bank-transfer payment orchestration service (e.g., ACH/SEPA) that schedules and executes outgoing payments. The system persists all state and exposes a simple HTTP API. Payments move through a state machine (e.g., SCHEDULED → QUEUED → PROCESSING → SENT → SETTLED/FAILED), and are executed by background workers.

Requirements

Design and implement the following features:

  1. cancelPayment
    • Add an operation to cancel a previously scheduled payment.
    • Only payments that haven't been irreversibly sent downstream can be canceled.
    • Define idempotent behavior, allowed states for cancellation, and race-condition handling.
  2. Extend schedulePayment
    • Ensure schedulePayment reports and persists both success and failure results (for both the scheduling action itself and the downstream execution attempts).
    • Include idempotency for client retries and durable audit logs for all results.
  3. Remove obsolete payment cases
    • Identify and remove any legacy/obsolete payment states or code paths.
    • Propose a safe data and code migration plan so production data remains consistent.
  4. Reporting
    • Produce a report of outgoing transactions sorted by total loss amount.
    • Define "loss" precisely, including returns/chargebacks and fees, and how recoveries/refunds affect it.
    • Provide a query or computation plan that aggregates and sorts by loss.

Deliverables

  • API design for schedulePayment and cancelPayment (request/response, status codes, idempotency semantics).
  • Payment state machine and concurrency rules.
  • Data model (tables/entities) for payments, attempts, events/audit, fees/returns.
  • Reporting definition with a query that produces the loss-sorted report.
  • Edge cases and validation strategy.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Circle•More Software Engineer•Circle Software Engineer•Circle System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ 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.