Grokking the System Design Interview, Volume II
0% completed
Payment System: Detailed Component Design
Step 6: Detailed Component Design
The high-level design gave us the shape of the system. Now we open its key parts one at a time, and look at how each one actually works.
6.1 API endpoints
Five endpoints cover the core flow:
POST /v1/chargescreates a charge.GET /v1/charges/{id}returns the status of a charge.POST /v1/charges/{id}/refundcreates a refund. A separate/v1/refundsresource also works.GET /v1/balancereturns the merchant's current balance.GET /v1/transactions?filter...lists transactions, usually in pages.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%