SpinTheMic
Pro

Interview practice question

Representing money in APIs

System Design · APIs and Communication · Experienced

How should an API represent money amounts and currencies?

What a strong answer covers

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

  • Avoid floating point.
  • Integer minor units (cents/paise) or decimal strings.
  • Always include currency code (ISO 4217).
  • Be explicit about rounding.
  • Consistent across all endpoints.
Practise this topic

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

See all topics