Skip to content

Payments

Stripe mock API

Stripe payments API: customers, products, prices, payment methods, payment intents, charges, refunds, subscriptions, invoices, Checkout sessions and signed webhooks.

At a glance

Operations
612
Stateful operations
51
Stateful resources
11
Webhook events
14
Vendor API version
2026-09-30.endive
Verification
Spec-verified

How it works

Use Stripe without calling Stripe, Inc.

Authorization: Bearer sk_test_YourSecretKey

State

Resources that remember

Writes persist per caller, so a create followed by a read returns what you created.

ResourceOperations
Customers6
Products5
Prices4
Payment methods6
Payment intents7
Charges3
Refunds4
Subscriptions5
Invoices2
Checkout sessions4
Webhook endpoints5

Webhooks

Events your handlers can receive

Deliveries are signed with the stripe scheme, so your verification code runs unchanged.

Coverage

612 operations

51 of them are stateful. The largest groups:

GroupOperations
Other operations561
Payment intents7
Customers6
Payment methods6
Products5
Subscriptions5

Verification

Spec-verified

Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.

Source and limits

License, source and limits

Each collection holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: customers, products, prices, payment methods, payment intents, charges, refunds, subscriptions, invoices, Checkout sessions and webhook endpoints; every other operation answers a schema-valid sample. Not reproduced: expand[] (accepted, ignored), confirm=true on payment-intent create (call /confirm), 3-D Secure and async payment states, proration and billing periods (one fixed period per interval), invoices beyond the one generated by a subscription, search endpoints (sample data), the failed charge object of a declined payment. Leniencies: references to ids that were never created (a price on a subscription, a charge on a refund, a customer on a payment intent) are accepted on create; confirming an already-authorised intent is a no-op; Idempotency-Key replays return the current object, scoped per API key. Objects created in the same second list oldest-first. Test cards: pm_card_visa, pm_card_visa_debit, pm_card_chargeDeclined and card tokens tok_visa, tok_visa_debit, tok_mastercard, tok_chargeDeclined.

MaxoPerf is not affiliated with, endorsed by, or sponsored by Stripe, Inc. Stripe is a trademark of its owner.