Stripe interview question

Design an API to support transactions