693 endpoints across 35 resources. One API key, one response envelope, a reference generated from the running API.
# install the server SDKnpm install @subinclabs/api-client# create your first customerimport { createClient, unwrap } from "@subinclabs/api-client";const subinc = createClient({ apiKey: SUBINC_API_KEY }); // sk_… from your environmentconst { data: customer } = unwrap(await subinc.raw.POST("/customers", {body: { email: "[email protected]", name: "Ada Lovelace", currency: "USD" },}),);→ customer.id // an Idempotency-Key was added for you
Create an account, then Developers → API keys. Sandbox keys bill nothing.
Every call carries X-API-Key; mutations get an Idempotency-Key so retries collapse to one effect.
Live is a paired tenant with its own keys, not a header. Reconcile the sandbox ledger first, then switch keys.
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.
Typed client over the published surface: retries, idempotency keys, pagination, webhook signature verification.
npm i @subinclabs/api-clientProducts, 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