AI & Technical question

Create an API design for third-party integration for payments.

Practice this question out loud. An AI interviewer asks it, follows up like a real interviewer would, and scores your answer. Type or speak.

Start a mock interview on this question · Mock interview from a job description

What this question tests

Tests PM-level API design thinking for a payments integration: what a third-party developer needs, and how security and reliability shape the contract.

How to approach it

  1. Clarify the use case: a third-party merchant or app wants to accept payments through this platform via a REST API, not a full white-label payment stack.
  2. Define the core endpoints: create a payment intent, confirm a payment, handle refunds, and retrieve transaction status, mirroring how real payment APIs like Stripe are structured.
  3. Define authentication: API keys scoped per merchant, with a separate secret key for server-side calls and a publishable key for client-side tokenization, keeping raw card data off the merchant's servers.
  4. Address reliability: idempotency keys on payment creation so a retried request after a timeout doesn't double-charge the customer.
  5. Address webhooks: asynchronous events like payment.succeeded or payment.failed pushed to the merchant's server, since payment confirmation can be delayed by bank processing.
  6. Define success: third-party integration time-to-first-successful-payment, and API error/failure rate in production.

What a strong answer includes

Common mistakes

Likely follow-up questions

More ai & technical questions

More questions from Microsoft

Learn the skill behind it

Chapters of the AI PM course that teach what this question tests.

Preparing for a specific role?

Book summaries for this kind of question

Browse all 4,000+ questions in the bank