Skip to content

Payments · openapi

Stripe API Mock Server

Payments API

Boot a stateful mock of the Stripe API in one command. Create customers, charges, and subscriptions; Carbon persists them across requests so integration tests behave like the real thing without hitting Stripe.

Quickstart

npx carbon-api emulate --catalog stripe

Runs on http://localhost:8787 by default. No account, no signup.

Try it

Real HTTP against the local replica.

Create a customer

curl -X POST http://localhost:8787/customers \
  -H 'content-type: application/json' \
  -d '{"name":"example"}'

List them back (state persists)

curl http://localhost:8787/customers

What's covered

Carbon compiles the entire spec — these are just the resources most integrations reach for first.

  • customers
  • charges
  • subscriptions
  • invoices

Under the hood

Everything Carbon gives you comes with this emulator — for free.

  • · Stateful CRUD — writes persist across requests.
  • · Snapshots — freeze and restore the whole world with one command.
  • · Chaos presets — inject latency, 5xx, and network errors on demand.
  • · Deterministic — the same requests produce the same responses in CI.