subincサブインク
Connecting gateway01 / 04
Loading ledger0%
subinc
Documentation

Read it,then ship it.

709 endpoints across 35 resources. One API key, one response envelope, a reference generated from the running API.

quickstarttypescript
# create your first customer
const 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
  1. 1Get a key

    Create an account, then Developers → API keys. Sandbox keys bill nothing.

  2. 2Send a request

    Every call carries X-API-Key; mutations get an Idempotency-Key so retries collapse to one effect.

  3. 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.

Core billing
Bundles7 endpoints

Compose several products into one purchasable bundle with its own price.

from FreeReference
Contract Templates10 endpoints
from ScaleReference
Contracts82 endpoints

Rich-text contract templates with e-signature workflow.

from FreeReference
Coupons24 endpoints

Create discount coupons and apply them to subscriptions or invoices.

from Pay as you growReference
Credit Notes19 endpoints

Issue credit notes against invoices for adjustments.

from Pay as you growReference
Customers33 endpoints

Manage customer records, billing contacts, and balance ledger.

from FreeReference
Dunning52 endpoints

Configure payment retry strategies for failed charges.

from FreeReference
Invoices28 endpoints

Generate, finalize, void, and download invoices.

from FreeReference
Orders23 endpoints

Manage one-time purchase orders with fulfillment tracking.

from Pay as you growReference
Prices22 endpoints

Recurring, one-time, tiered and usage prices attached to products; the unit every subscription and invoice line bills against.

from FreeReference
Products25 endpoints

Define products with pricing tiers, plans, and catalog management.

from FreeReference
Quotes31 endpoints

Generate price quotes and convert them to invoices.

from Pay as you growReference
Subscription Items4 endpoints

Add, change or remove the priced lines inside a running subscription, with proration.

from FreeReference
Subscription Schedules3 endpoints

Plan future changes to a subscription — upgrades, downgrades, cancellations — to take effect at a set date.

from FreeReference
Subscriptions30 endpoints

Create and manage recurring billing subscriptions.

from FreeReference
Tax23 endpoints

Validate tax IDs (VAT/GST) and calculate tax rates.

from FreeReference
Revenue
Risk & payments

SDKs

@subinclabs/api-client
Server · TypeScript · secret key

Typed client over the published surface: retries, idempotency keys, pagination, webhook signature verification.

Not on npm yet — use the HTTP API above
@subinclabs/billing-js
Browser · TypeScript · publishable key

Products, checkout and portal links from the browser, with card tokenization for Stripe, Braintree and Adyen.

npm i @subinclabs/billing-js
@subinclabs/billing-react
React · publishable key

Provider, pricing table, checkout button, card element and customer portal on top of billing-js.

npm i @subinclabs/billing-react
Zapier
No-code · secret key

Triggers on customer, payment, subscription and invoice events; actions to create or upsert customers and subscriptions.

Search “subinc” in Zapier