Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Fast Billing API
version: 0.1.0
tags:
- name: Billing
paths:
/api/billing/checkout:
post:
summary: Billing Checkout
description: 'Start a Stripe Checkout session for a plan upgrade.
Body: {"plan": "starter" | "pro"}. Returns {"url": ...} — the dashboard
redirects the browser there. Nothing changes on our side until the
webhook confirms payment.'
operationId: billing_checkout_api_billing_checkout_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Billing
/api/billing/webhook:
post:
summary: Billing Webhook
description: 'Stripe webhook — the ONLY writer that activates paid plans.
No Authorization header: authenticity comes from the Stripe-Signature
HMAC, verified manually against the raw body. Handles
checkout.session.completed, customer.subscription.updated,
customer.subscription.deleted and invoice.paid (plan switches only); every
other event type is acknowledged and
ignored. Always answers 200 fast once the signature checks out —
processing errors are logged (source=''billing''), never re-raised, and
never include payloads or keys.'
operationId: billing_webhook_api_billing_webhook_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Billing
/api/billing/portal:
post:
summary: Billing Portal
description: 'Open the Stripe customer portal (update card, invoices, switch plan, cancel).
Returns {"url": ...}; 404 with a friendly message when the user has never
paid (no Stripe customer yet); 409 for an account billed through Shopify.'
operationId: billing_portal_api_billing_portal_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Billing
/api/billing/summary:
get:
summary: Billing Summary
description: 'Billing overview for the dashboard. Never 500s — degrades to the
plan/subscription_end we already store when Stripe is unavailable or the
user has no Stripe customer yet.'
operationId: billing_summary_api_billing_summary_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Billing
/api/billing/invoices:
get:
summary: Billing Invoices
description: 'Recent invoices for the dashboard. Empty list when there''s no Stripe
customer yet; never 500s.'
operationId: billing_invoices_api_billing_invoices_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Billing