Read it,then ship it.
709 endpoints across 35 resources. One API key, one response envelope, a reference generated from the running API.
# create your first customerconst res = await fetch("https://api.subinclabs.com/api/v1/customers", {method: "POST",headers: {"X-API-Key": SUBINC_API_KEY, // sk_… from your environment"Idempotency-Key": crypto.randomUUID(),"Content-Type": "application/json",},body: JSON.stringify({ email: "ada@example.com", name: "Ada Lovelace", currency: "USD" }),});const { data: customer } = await res.json();→ customer.id // a retry with the same Idempotency-Key creates nothing new
- 1Get a key
Create an account, then Developers → API keys. Sandbox keys bill nothing.
- 2Send a request
Every call carries
X-API-Key; mutations get anIdempotency-Keyso retries collapse to one effect. - 3Go live
Live is a paired tenant with its own keys, not a header. Reconcile the sandbox ledger first, then switch keys.
Reference, by area
Generated from the running API. Every endpoint is callable with an API key; each area names the cheapest plan it starts on.
Compose several products into one purchasable bundle with its own price.
Rich-text contract templates with e-signature workflow.
Create discount coupons and apply them to subscriptions or invoices.
Issue credit notes against invoices for adjustments.
Manage customer records, billing contacts, and balance ledger.
Configure payment retry strategies for failed charges.
Generate, finalize, void, and download invoices.
Manage one-time purchase orders with fulfillment tracking.
Recurring, one-time, tiered and usage prices attached to products; the unit every subscription and invoice line bills against.
Define products with pricing tiers, plans, and catalog management.
Generate price quotes and convert them to invoices.
Add, change or remove the priced lines inside a running subscription, with proration.
Plan future changes to a subscription — upgrades, downgrades, cancellations — to take effect at a set date.
Create and manage recurring billing subscriptions.
Validate tax IDs (VAT/GST) and calculate tax rates.
Subscription add-ons for upsell and feature extensions.
Supported currencies and real-time exchange rates.
Query feature entitlements based on subscription plan.
Double-entry journals, accounting periods and general-ledger exports behind every invoice, payment and payout.
Define meters and ingest usage events for metered billing.
Bank accounts and other destinations payouts settle to, with verification.
Manage payout destinations and trigger disbursements.
Report and query metered usage for usage-based billing.
Prepaid wallet balances with top-up, debit, and transfer.
Your tenant's available, pending and reserved balance across gateways.
Create hosted checkout sessions for one-time or recurring payments.
Chargebacks and inquiries raised by cardholders, with evidence submission and outcome tracking.
Connect your own Stripe, Adyen, Braintree or GoPay account; inbound webhooks are registered per credential.
Shareable payment links for quick collection.
Store and manage customer payment instruments.
Process charges, capture authorizations, and manage disputes.
Issue full or partial refunds against payments.
SDKs
Typed client over the published surface: retries, idempotency keys, pagination, webhook signature verification.
Not on npm yet — use the HTTP API aboveProducts, checkout and portal links from the browser, with card tokenization for Stripe, Braintree and Adyen.
npm i @subinclabs/billing-jsProvider, pricing table, checkout button, card element and customer portal on top of billing-js.
npm i @subinclabs/billing-reactTriggers on customer, payment, subscription and invoice events; actions to create or upsert customers and subscriptions.
Search “subinc” in Zapier