SpinTheMic
Pro

Interview practice question

Retry-safe payment API

System Design · APIs and Communication · Intermediate

Design a payment creation API that mobile clients can safely retry on flaky networks.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • POST /payments with Idempotency-Key header.
  • Store key, request hash, response.
  • Return same response on retry.
  • 409 if same key different body.
  • Async status for slow processing.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics