Bill for APIs with Stripe¶
WSO2 API Platform works alongside Stripe Billing. Sell paid API subscription plans, and report usage to Stripe for metered billing.
End-to-end guides¶
A step-by-step guide for billing with Stripe.
-
Monetize a REST API with Stripe
Publish an API with a pay-as-you-go plan and let the platform sync per-request usage to Stripe.
Guide · Stripe billing · Cloud
Stripe billing for APIs¶
In WSO2 Cloud, API Platform creates the Stripe products and prices for your plans and reports usage to Stripe, so you don't write billing code.
Connect your Stripe account¶
Add your Stripe publishable key and a secret key at the organization level.
Create paid plans¶
Define the paid subscription plans and pricing that consumers can choose from.
Let consumers subscribe¶
Consumers pick a paid plan in the Developer Portal and pay through Stripe.
Track billing and usage¶
See what each subscriber used and what they were billed.
Use a restricted key
Create a restricted Stripe secret key with only the permissions listed in Get started with API monetization, instead of a standard secret key with full access to your Stripe account.
Architecture and responsibility model¶
WSO2 API Platform and Stripe split the work like this:
| Scenario | WSO2 role | Stripe role | Runtime traffic |
|---|---|---|---|
| API monetization | Manages plans and subscriptions, and syncs per-request usage | Holds products and prices, invoices consumers, and collects payment | API calls go through the WSO2 gateway, and usage records go to Stripe |
Learn more¶
Related pages in the Stripe documentation:
To browse every guide by goal, see the Guides overview.