Grokking the System Design Interview, Volume II
Vote

0% completed

Payment System: Detailed Component Design

Step 6: Detailed Component Design

Now we’ll explore key components in detail.

6.1 API EndPoints

  • POST /v1/charges – create a charge
  • GET /v1/charges/{id} – retrieve charge status
  • POST /v1/charges/{id}/refund – create a refund (or /v1/refunds separate)
  • GET /v1/balance – get current merchant balance
  • GET /v1/transactions?filter... – list transactions (possibly paginated, etc.)
  • etc. (Also endpoints to save cards, manage customers, etc.)

These all funnel through the gateway to appropriate internal handlers.

.....

.....

.....

Like the course? Get enrolled and start learning!