# UnitPay ## Docs - [AI setup](https://docs.useunitpay.com/documentation/ai-setup.md): Paste your pricing page URL and let Asterix draft your catalog — products, plans, and credits — in your sandbox. - [Authentication](https://docs.useunitpay.com/documentation/authentication.md): API keys, the x-api-key header, and the difference between sandbox and live. - [Billing](https://docs.useunitpay.com/documentation/billing.md): Plans, subscriptions, taking a card payment, and invoices — the dollar path for self-serve products. - [Denominations](https://docs.useunitpay.com/documentation/credits/denominations.md): Unit credits vs. fiat credits — two denominations that never mix. - [Grants & priority](https://docs.useunitpay.com/documentation/credits/grants-and-priority.md): What a grant is, the priority convention, and how deductions pick a grant to draw from. - [Credits overview](https://docs.useunitpay.com/documentation/credits/overview.md): The credit-billing path end to end — track, resolve, deduct FIFO, and ledger. - [Top-ups](https://docs.useunitpay.com/documentation/credits/top-ups.md): Refill a credit balance — manually, automatically, or by package — following the customer's collection method. - [Wallets & the ledger](https://docs.useunitpay.com/documentation/credits/wallets-and-ledger.md): Credit accounts as wallets, their lifecycle, and the append-only ledger behind every balance. - [Quickstart](https://docs.useunitpay.com/documentation/getting-started/setup.md): Set up a catalog, subscribe a customer, and watch credits burn — end to end in minutes. - [How UnitPay works](https://docs.useunitpay.com/documentation/how-it-works.md): One model behind both billing paths — and the two verbs your app calls at runtime. - [Customers & subscriptions](https://docs.useunitpay.com/node/customers.md): Read customers, their invoices, payment methods, credit wallets, and subscriptions. - [Errors, retries & pagination](https://docs.useunitpay.com/node/errors.md): Typed errors, built-in retries, pagination, webhook verification, and the SDK version. - [Introduction](https://docs.useunitpay.com/node/introduction.md): The @unitpay/node server SDK — customers, subscriptions, usage, and portal sessions. - [Portal sessions](https://docs.useunitpay.com/node/portal-sessions.md): Mint the short-lived token that @unitpay/react consumes to render customer-facing billing UI. - [Usage & ingestion](https://docs.useunitpay.com/node/usage.md): Track billable events one at a time, or batch them at high throughput. - [Catalog & pricing](https://docs.useunitpay.com/react/catalog-and-pricing.md): Read the merchant's live plans, products, public pricing matrix, and branding — for the org in context. - [Checkout](https://docs.useunitpay.com/react/checkout.md): Preview what the customer owes before they commit, then poll a hosted-form session to completion. - [Credits & wallets](https://docs.useunitpay.com/react/credits-and-wallets.md): Read wallet balances and grants, top up by amount or package, and automate refills — for the customer in context. - [Customer](https://docs.useunitpay.com/react/customer.md): Read the current customer and their entitlements, and run core account + billing actions. - [Entitlements & gates](https://docs.useunitpay.com/react/entitlements-and-gates.md): Read a customer's feature entitlements — as typed hooks — and gate UI with declarative components. - [Error handling](https://docs.useunitpay.com/react/errors.md): The SDK's typed error model - [Imperative API](https://docs.useunitpay.com/react/imperative.md): Reach the underlying UnitPayClient for ad-hoc and non-React billing calls. - [Introduction](https://docs.useunitpay.com/react/introduction.md): How the @unitpay/react hooks work - [Invoices](https://docs.useunitpay.com/react/invoices.md): List invoices, read one in detail, preview renewals, and collect payment. - [Next.js adapter](https://docs.useunitpay.com/react/next-adapter.md): Proxy SDK requests through your own backend - [Payment methods](https://docs.useunitpay.com/react/payment-methods.md): Capture, list, replace, and detach the customer's payment methods. - [UnitPayProvider](https://docs.useunitpay.com/react/provider.md): Provider component that configures the SDK for your React app - [Settlement model](https://docs.useunitpay.com/react/settlement.md): How money-moving mutations resolve - [Subscriptions](https://docs.useunitpay.com/react/subscriptions.md): List, read, create, and change the current customer's subscriptions. - [Usage & analytics](https://docs.useunitpay.com/react/usage-and-analytics.md): Point-in-time usage meters, daily usage history, and credit burn-rate — for the customer in context. - [Welcome to UnitPay](https://docs.useunitpay.com/welcome.md): The billing engine for dollars and credits — both first-class, same platform, same API. ## Optional - [Dashboard](https://app.useunitpay.com) - [Website](https://useunitpay.com)