# Alguna Docs - [Welcome to Alguna](https://alguna.com/docs/overview.md): Alguna is the AI-native quote-to-revenue platform for B2B companies: quoting, billing, usage metering, invoicing, collections, and revenue recognition, all reading from one versioned agreement per customer. - [How Alguna Works](https://alguna.com/docs/concepts/how-alguna-works.md): The quote-to-revenue model: how products, prices, plans, subscriptions, usage, invoices, payments and revenue all read from one versioned agreement per customer. - [Organizations and Environments](https://alguna.com/docs/concepts/organizations-and-environments.md): How Alguna is scoped: your organization, its sandbox and production environments, the entities you sell from, and how to model your own tenants as customers. - [Alguna 101](https://alguna.com/docs/alguna-101.md): Learn about billing concepts with real-world examples - [Frequently Asked Questions](https://alguna.com/docs/faq.md): Common questions and real-world scenarios - [Guides](https://alguna.com/docs/guides/overview.md): Task-oriented guides for integrating Alguna: checkout, portal, subscriptions, usage metering, credits and webhooks. - [SDKs and CLI](https://alguna.com/docs/guides/sdks-and-cli.md): Pick how to integrate Alguna from code: the TypeScript, Python, Go and Rust SDKs, the alguna CLI, the REST API or the MCP server, with install steps, a first call in each, and the reference page for every library. - [Launch PLG in 15 Minutes](https://alguna.com/docs/guides/launch-self-serve.md): Go from zero to accepting payments with trials, usage tracking, and customer portal - [Create Your First Subscription](https://alguna.com/docs/guides/first-subscription.md): The shortest path from a plan to a live, billing subscription, in the dashboard or with two API calls - [Subscription Lifecycle](https://alguna.com/docs/guides/subscription-lifecycle.md): How a subscription moves from draft to active to canceled, what changes it along the way, and which webhooks fire at each step - [Usage Metering Quick Start](https://alguna.com/docs/guides/usage-metering-quickstart.md): Set up usage-based billing: define a billable metric, price it on a product, add it to a plan, and send usage events. - [Credits Quick Start](https://alguna.com/docs/guides/credits-quickstart.md): Grant a customer credit, watch it apply to their next invoice, and read the balance — in the dashboard or through the API - [Webhooks Quick Start](https://alguna.com/docs/guides/webhooks-quickstart.md): Receive real-time notifications for billing events - [Customer Portal Integration](https://alguna.com/docs/guides/customer-portal-integration.md): Let customers manage their billing and subscriptions - [Hosted Checkout Integration](https://alguna.com/docs/guides/hosted-checkout-integration.md): Accept payments with Alguna's secure hosted checkout - [Business Details](https://alguna.com/docs/getting-started/business-details.md): Set the trading and legal names, billing contact, currency, address and tax details that appear on every quote, invoice and customer email. - [Customize Branding](https://alguna.com/docs/getting-started/branding.md): Upload your logo and avatar, choose colors, and set the brand slug used in hosted page URLs — applied to quotes, invoices, emails, checkout and the customer portal. - [Currencies](https://alguna.com/docs/getting-started/currencies.md): The ISO 4217 currencies enabled by default for customers, prices, invoices and payments, and how currency is set on each object. - [Team and Roles](https://alguna.com/docs/getting-started/team-and-roles.md): Invite teammates, approve requests to join from your company's email domain, assign built-in or custom roles, and control who may activate or amend a subscription without a signature. - [Testing and Sandbox](https://alguna.com/docs/getting-started/testing.md): Use the sandbox environment to run the full quote-to-revenue lifecycle with test payments before switching your integration to production. - [Manage Customers](https://alguna.com/docs/customers/customer-management.md): Create and edit the customer records that subscriptions, invoices and payments attach to, in the dashboard or via the API - [Duplicate Customers](https://alguna.com/docs/customers/duplicate-customers.md): Find, review and merge duplicate customer records: automatic detection on create and import, the review queue, and what a merge moves to the customer you keep - [Customer Families](https://alguna.com/docs/customers/customer-families.md): Parent and child customers: the one-level hierarchy that makes roll-up billing possible - [Customer Segments](https://alguna.com/docs/customers/customer-segments.md): Saved groups of customers, defined by rules on account data, by hand, or both, that agent playbooks can target - [Customer Contacts](https://alguna.com/docs/customers/customer-contacts.md): Multiple contacts per customer, each with email preferences that decide which communications they receive - [Customer Tax Rates](https://alguna.com/docs/customers/customers-tax-rates.md): Customer-level tax settings: tax country, tax ID, rate, treatment reason and tax type, and how they reach the invoice - [Configure Products](https://alguna.com/docs/pricing/configure-products.md): Define what you sell and how it is charged: fixed or metered, recurring or one-off, in advance or in arrears - [Pricing Models](https://alguna.com/docs/pricing/pricing-models.md): The eleven price types Alguna supports, how each turns a quantity into an amount, and when to use which - [Manage Plans](https://alguna.com/docs/pricing/plans.md): Package priced products and commercial terms into a reusable offer for checkout, quotes and API-created subscriptions - [Bundles](https://alguna.com/docs/pricing/bundles.md): Group several priced products into one reusable unit that subscriptions, plans and quotes reference by a single ID — and how a bundle differs from a plan. - [Pricing Simulator](https://alguna.com/docs/pricing/pricing-simulator.md): Model what a pricing change would bill across real customer accounts before you make it: compare scenarios against a baseline, review revenue impact per account, and turn a scenario into a plan or draft subscription. - [Price books](https://alguna.com/docs/pricing/price-books.md): Price lists layered over the product catalog that set prices by currency, quantity tier and deal attributes such as region or customer type, then fill in prices when a rep builds a quote or subscription - [Rate cards](https://alguna.com/docs/rate-cards/overview.md): A rate card holds dated usage rates and fees that many prices share, so one publish changes the rates of every subscription that uses the card - [Rate card phases](https://alguna.com/docs/rate-cards/phases.md): How rate card phases date rates: drafts, publishing, corrections, the two clocks of a phase, and what a publish does to open and issued invoices - [Rate card sources](https://alguna.com/docs/rate-cards/sources.md): Feed a rate card from a price list: fetch it from a URL, push it from your system or upload it, and choose which changes publish at once and which wait for review - [Rate card followers](https://alguna.com/docs/rate-cards/followers.md): A follower rate card copies every phase of another card at the same date and adds a markup, and the whole chain publishes and is reviewed as one - [Rate card pins](https://alguna.com/docs/rate-cards/pins.md): Pin a cell of a fed rate card to keep your own rate while the price list or the followed card changes every other cell, and clear the pin to follow the feed again - [Unbilled rate card usage](https://alguna.com/docs/rate-cards/unbilled-usage.md): Usage that matches no rate on a rate card is never billed silently: it shows on the draft invoice and holds the invoice until you price it or accept it - [Create Quotes](https://alguna.com/docs/quotes/create-quotes.md): Build a custom order form for a sales-led deal: negotiated prices, terms and discounts, ready for approval and signature - [Sending Quotes](https://alguna.com/docs/quotes/send-quotes.md): Send a quote for e-signature or for review, choose what the customer sees, set signing defaults, collect billing details, and record offline signatures and withdrawals - [Signing Quotes](https://alguna.com/docs/quotes/sign-quotes.md): What the customer sees when they receive a quote, review it, and sign it electronically - [Managing Subscriptions](https://alguna.com/docs/subscriptions/overview-subscriptions.md): What a subscription is, the statuses it moves through, and the three ways one gets created - [Contract AI](https://alguna.com/docs/subscriptions/contract-ai.md): Create draft subscriptions in bulk from PDF contracts or from a written prompt, with customers matched or created automatically - [Editing Subscriptions](https://alguna.com/docs/subscriptions/editing-subscriptions.md): Which tool to reach for when a subscription needs to change, and the dashboard walkthrough for editing one - [Subscription Versioning](https://alguna.com/docs/subscriptions/versioning.md): How a subscription's priced items are held in draft and published versions, and how effective dates and pending changes work - [Subscription Amendments](https://alguna.com/docs/subscriptions/amendments.md): Add, remove or re-price products on an active subscription, choose when it takes effect, and optionally get it signed - [Proration](https://alguna.com/docs/subscriptions/proration.md): How Alguna prices a change that lands part-way through a billing period: what is prorated, the calculation, and how to avoid it - [Canceling Subscriptions](https://alguna.com/docs/subscriptions/canceling-subscriptions.md): End a subscription now, at the end of the billing period, or on a date; record the reason; revert a scheduled cancellation - [Entitlements Overview](https://alguna.com/docs/entitlements/overview.md): Feature flags, quotas, tiers and credit allocations attached to a subscription version, and how to read them from your application - [Invoicing Configuration](https://alguna.com/docs/invoices/invoicing-config.md): The invoice lifecycle, every invoice status, and the organization-level invoicing settings - [Recurring Invoices](https://alguna.com/docs/invoices/recurring-invoices.md): How subscriptions generate invoices on a schedule, and how to review, edit, and approve them - [One-Off Invoices](https://alguna.com/docs/invoices/one-off-invoices.md): Create, edit, issue, void, and download ad hoc invoices that are not generated by a subscription - [Milestone Billing](https://alguna.com/docs/invoices/milestone-billing.md): Bill a one-off charge when a milestone is reached, such as go-live or shipment, instead of on a date - [Invoicing Customers](https://alguna.com/docs/invoices/invoicing-customers.md): How issued invoices reach customers and get paid: delivery, AutoPay, payment methods, the customer portal, and recording payments - [Roll-Up Billing](https://alguna.com/docs/invoices/rollup-billing.md): Consolidate subscription invoices from child customers into a single invoice billed to the parent customer - [Credit Notes](https://alguna.com/docs/invoices/credit-notes.md): Reduce what a customer owes on an issued invoice, or record a credit that later refunds them, without rewriting the invoice - [Payments](https://alguna.com/docs/invoices/payments.md): How Alguna records money received, what each payment status means, and how a payment is attributed across invoices - [Payment Schedules](https://alguna.com/docs/invoices/payment-schedules.md): Collect an issued invoice's outstanding balance as a series of dated instalments, charged to a saved payment method or recorded as received offline - [Surcharges](https://alguna.com/docs/invoices/surcharges.md): Add a card or bank-transfer fee on top of the amount a customer pays, and see how it is disclosed, charged, refunded, and reconciled - [Refunds](https://alguna.com/docs/invoices/refunds.md): Return money against a payment, track refund status, and choose between a direct refund and a credit note - [Disputes](https://alguna.com/docs/invoices/disputes.md): Track card disputes and chargebacks raised against payments, with the customer, invoices, reason and the date a response is due - [Credits & Wallets Overview](https://alguna.com/docs/credits/overview.md): The two prepaid balances in Alguna — credit grants and wallets — what each is for, and how they are consumed - [Credit Grants](https://alguna.com/docs/credits/credit-grants.md): Create credit grants, restrict what they pay for, fund the realtime gate, and read balances - [Credit Consumption](https://alguna.com/docs/credits/credit-consumption.md): Understand how credits are consumed against invoices and usage - [Wallets](https://alguna.com/docs/credits/wallets.md): Prepaid money balances a customer funds and then spends on invoices, with wallet grants, a ledger, and product scoping - [Create Metrics](https://alguna.com/docs/billable-metrics/define-metrics.md): Define a billable metric — the event name, filters and aggregation that turn raw usage events into a quantity a price can charge for. - [Send Usage Events](https://alguna.com/docs/billable-metrics/send-usage.md): Ingest usage events via API, CSV, or data integrations - [Metrics Configuration Reference](https://alguna.com/docs/billable-metrics/metrics-reference.md): Complete reference for configuring billable metrics - [Approval Workflows Overview](https://alguna.com/docs/approvals/overview.md): Route quotes and subscriptions through sign-off before they activate, based on discounts, products, and modified terms - [Approval Rules](https://alguna.com/docs/approvals/approval-rules.md): The twelve condition types, how conditions combine, and how priority and rulesets decide which approvers are asked - [Approval Flows](https://alguna.com/docs/approvals/approval-flows.md): How an approval flow is opened, how approver groups reach a decision, and how flows are cancelled, re-evaluated, and audited - [Org Chart and Teams](https://alguna.com/docs/approvals/org-chart.md): Model teams, managers and team leads, route approvals up the requester's reporting chain or to a team, preview who is asked, and filter lists to your team - [Amendment and Renewal Approvals](https://alguna.com/docs/approvals/amendment-renewal-approvals.md): How amendment and renewal quotes wait for approval before the customer can sign: the proposal card, what is locked while a quote waits, edits after sending, signing, renewals, automations and the API - [Approval Workflows Setup Guide](https://alguna.com/docs/approvals/setup-guide.md): Configure rulesets, rules, approver groups, post-approval actions, and notifications from scratch - [Automations Overview](https://alguna.com/docs/automations/overview.md): Event-driven and scheduled workflows that run inside Alguna: dunning, renewals, CRM updates and notifications - [Automation Triggers](https://alguna.com/docs/automations/triggers.md): Configure event and schedule-based triggers for your automations - [Automation Actions](https://alguna.com/docs/automations/actions.md): Available actions for your automation workflows - [Automation Conditions](https://alguna.com/docs/automations/conditions.md): Add conditional logic to control automation flow - [Automation Reference](https://alguna.com/docs/automations/reference.md): Complete reference for automation triggers, actions, conditions, and templates - [Collections](https://alguna.com/docs/collections/overview.md): How Alguna marks invoices overdue, runs reminder cadences, and shows what is outstanding - [Dunning](https://alguna.com/docs/collections/dunning.md): How Alguna recovers failed invoice payments with event-driven automations - [Agentic Collections](https://alguna.com/docs/collections/agentic-collections.md): AI-run collection cases that chase, classify replies, track promises to pay, and escalate — within guardrails you set - [Tax Management Overview](https://alguna.com/docs/tax/overview.md): How Alguna calculates tax on invoices — built-in rules or an external engine — and how to calculate tax up front through the API - [Alguna Tax](https://alguna.com/docs/tax/alguna-tax.md): Built-in, rule-based tax: define a rate and taxability reason per jurisdiction and Alguna applies it by customer location - [External Tax Providers](https://alguna.com/docs/tax/external-tax-providers.md): Automatic tax determination through Anrok or Stripe Tax, driven by a provider-neutral tax code on each product or line - [Customer Portal](https://alguna.com/docs/hosted/customer-portal.md): A hosted, passwordless page where your customers see their plan, pay and download invoices, and manage payment methods — opened from a link you mint via the API or the dashboard. - [Hosted Checkout](https://alguna.com/docs/hosted/checkout.md): A hosted payment page that takes a card or bank payment and creates the customer, subscription and invoice from a checkout session created via the API. - [Embedded Checkout](https://alguna.com/docs/hosted/embedded-checkout.md): Embed Alguna's checkout directly in your product with the Checkout SDK - [Custom Domains and Addresses](https://alguna.com/docs/hosted/custom-domains.md): Serve hosted checkout, the customer portal, quotes and invoices from a subdomain you own, and send customer email from your own address instead of the Alguna defaults. - [Emails](https://alguna.com/docs/hosted/emails.md): Every email Alguna sends on your behalf: what goes out and when, who receives it, which address it comes from, and how to change the wording and the recipients. - [Insights](https://alguna.com/docs/revenue-insights/insights.md): Revenue, MRR movement, retention, receivables and customer metrics: the Revenue Insights tabs, the Revenue Bridge and Customer Waterfall, and the Insights API - [Revenue Recognition](https://alguna.com/docs/revenue/recognition.md): How subscriptions and invoices become revenue schedules, the three allocation methods, and the revenue-schedule API - [Period close](https://alguna.com/docs/revenue/period-close.md): Close each accounting month per legal entity: the close checklist, posting and voiding the revenue journal entry, reconciliation, catch-up adjustments, reopening and the audit log - [Revenue Assurance](https://alguna.com/docs/revenue/assurance.md): Find metered usage that should have been billed but was not, and quantify it - [Partner Revenue Share](https://alguna.com/docs/partners/commission-plans.md): Assign partners to customers or subscriptions, pay them through revenue share plans, and approve partner statements - [Multi-Currency](https://alguna.com/docs/currencies/multi-currency.md): Bill each customer in their own currency, price per currency, and maintain FX rates for reporting - [Data Exports](https://alguna.com/docs/exports/data-exports.md): Get billing data out of Alguna: dashboard CSV/XLSX exports, the list endpoints, and continuous replication - [Agent Integration Guide](https://alguna.com/docs/ai/agent-guide.md): Everything a coding agent needs to integrate Alguna correctly: base URLs, auth, versioning, the object model, which page to read for each task, and how to recover from errors. - [Model Context Protocol (MCP)](https://alguna.com/docs/ai/mcp.md): Connect Claude, Cursor, ChatGPT or any MCP client to Alguna's API so an AI assistant can read and manage billing on your behalf. - [Quick Starts](https://alguna.com/docs/quickstarts/overview.md): Get up and running with Alguna in minutes - [AI & Infrastructure](https://alguna.com/docs/quickstarts/ai.md): Token-based pricing, credits, and usage metering for AI companies - [Fintech & Payments](https://alguna.com/docs/quickstarts/fintech.md): Bill transaction fees, volume tiers, and revenue shares from metered payment volume - [B2B SaaS](https://alguna.com/docs/quickstarts/saas.md): Per-seat, tiered and hybrid pricing for software companies, with self-serve and sales-led on one catalog - [Self-Serve (PLG)](https://alguna.com/docs/quickstarts/self-serve.md): Product-led growth with self-service checkout and upgrades - [Sales-Led](https://alguna.com/docs/quickstarts/sales-led.md): Enterprise deals with negotiated quotes, e-signature, multi-year terms and invoice-based payment - [Hybrid Motion](https://alguna.com/docs/quickstarts/hybrid-motion.md): Combine self-serve and sales-led for maximum growth - [Sales & RevOps](https://alguna.com/docs/quickstarts/sales-revops.md): Quoting, approvals, CRM sync and renewal tracking for sales and revenue operations teams - [Finance & Billing Ops](https://alguna.com/docs/quickstarts/finance-ops.md): Invoicing, collections, revenue recognition, accounting sync, and month-end close in Alguna - [Developers](https://alguna.com/docs/quickstarts/developers.md): Authenticate, make your first request, meter usage, receive webhooks and test in sandbox — the developer path through Alguna. - [Overview](https://alguna.com/docs/api-reference/v2/overview.md): Base URLs, authentication, versioning, filtering, pagination and errors for the Alguna Public API. - [Upgrading event ingestion](https://alguna.com/docs/api-reference/v2/upgrading-event-ingestion.md): Move POST /events from the retired unversioned API to version 2026-04-01 — add the Alguna-Version header and rename uniqueId and eventName to snake_case. - [Idempotency](https://alguna.com/docs/api-reference/v2/idempotency.md): Use the Idempotency-Key header to make retried writes safe: key format, replay semantics, response headers and error behaviour. - [Errors](https://alguna.com/docs/api-reference/v2/errors.md): Error response shape, status codes, typed SDK errors, request IDs, and which failures are safe to retry. - [Webhooks](https://alguna.com/docs/api-reference/v2/webhooks.md): Every webhook event Alguna sends, its payload, how to verify signatures, and the retry schedule. - [Pricing Models Reference](https://alguna.com/docs/api-reference/v2/subscriptions/pricing-models.md): Technical reference for pricing models used in subscription items - [Creating a Subscription](https://alguna.com/docs/api-reference/v2/examples/creating-a-subscription.md): Concrete patterns for creating a subscription: from raw pricing, from a plan, from a plan with overrides, and with bundles. - [Updating a Subscription](https://alguna.com/docs/api-reference/v2/examples/updating-a-subscription.md): Two paths for mutating an active subscription: the changes API for deltas, and raw version lifecycle endpoints for snapshots. - [SDKs and CLI](https://alguna.com/docs/api-reference/v2/sdks/overview.md): Official Alguna client libraries for TypeScript, Python, Go and Rust, and the alguna command-line tool: packages, install commands and source repositories. - [TypeScript SDK](https://alguna.com/docs/api-reference/v2/sdks/typescript.md): Official TypeScript SDK for the Alguna Public API: installation, authentication, resources, pagination, and error handling. - [Python SDK](https://alguna.com/docs/api-reference/v2/sdks/python.md): Official Python SDK for the Alguna Public API: installation, sync and async clients, resources, pagination, error handling, retries and configuration. - [Go SDK](https://alguna.com/docs/api-reference/v2/sdks/go.md): Official Go SDK for the Alguna Public API: module, installation, client options, resources, pagination, errors, retries, and webhook types. - [Rust SDK](https://alguna.com/docs/api-reference/v2/sdks/rust.md): Official Rust SDK for the Alguna Public API: installation, authentication, resources, pagination, and error handling. - [CLI](https://alguna.com/docs/api-reference/v2/sdks/cli.md): The alguna command-line client for the Alguna Public API: install, log in, run commands, idempotency and retries, timeouts, errors and exit codes. - [Ingest billable events](https://alguna.com/docs/api-reference/v2/2026-04-01/billing-events-and-metrics/ingest-billable-events.md): Ingests a batch of usage events for metering. Accepts up to 100 events per request. Each event must carry a unique `unique_id` for idempotency and may include arbitrary properties used by metric filters and aggregations. - [List billable metrics](https://alguna.com/docs/api-reference/v2/2026-04-01/billing-events-and-metrics/list-billable-metrics.md): Returns a paginated list of billable metrics. Supports filtering by event name, aggregation method, aggregation field, and tag IDs. Results can be sorted by name. - [Create a billable metric](https://alguna.com/docs/api-reference/v2/2026-04-01/billing-events-and-metrics/create-a-billable-metric.md): Defines a new billable metric. A metric specifies the event name, optional filter groups, and aggregation logic that turns raw ingested events into a quantity the billing engine can price against. - [Get a billable metric](https://alguna.com/docs/api-reference/v2/2026-04-01/billing-events-and-metrics/get-a-billable-metric.md): Fetches a single billable metric by ID, including its filter groups and aggregation logic. - [Create a checkout session](https://alguna.com/docs/api-reference/v2/2026-04-01/checkout-sessions/create-a-checkout-session.md): Creates a checkout session and returns a browser-safe session token plus a hosted checkout URL. Embed the URL with the Alguna Checkout SDK, or redirect the customer to it directly. The session charges a plan's prices, ad-hoc line items, or a bare amount, and expires after `expires_in_seconds`. - [Get a checkout session](https://alguna.com/docs/api-reference/v2/2026-04-01/checkout-sessions/get-a-checkout-session.md): Returns the current state of a checkout session, including the payment and subscription it created once the customer completes checkout. Poll this endpoint or subscribe to the `checkout.session.completed` webhook event. - [List credit notes](https://alguna.com/docs/api-reference/v2/2026-04-01/credit-notes/list-credit-notes.md): Returns a paginated list of credit notes for a given customer. The `customer_id` query parameter is required. - [Create a credit note](https://alguna.com/docs/api-reference/v2/2026-04-01/credit-notes/create-a-credit-note.md): Creates a credit note in draft status. Optionally link it to an invoice. Linked paid invoices are supported, and pre-payment credit notes are supported for Alguna-managed invoices in `issued` or `overdue`. Add line items to specify the credited amounts, then apply the credit note to finalize it. Alt… - [Get a credit note](https://alguna.com/docs/api-reference/v2/2026-04-01/credit-notes/get-a-credit-note.md): Fetches a single credit note by ID, including line items and attachments. - [Apply a credit note](https://alguna.com/docs/api-reference/v2/2026-04-01/credit-notes/apply-a-credit-note.md): Applies a draft credit note. Applying to a paid invoice can optionally trigger a refund to the original payment method or a wallet. Applying to an Alguna-managed invoice in `issued` or `overdue` records a pre-payment credit without issuing a refund. Once applied, the credit note cannot be modified. - [Credit an invoice](https://alguna.com/docs/api-reference/v2/2026-04-01/credit-notes/credit-an-invoice.md): Creates a draft credit note against an invoice, crediting it at the prices and tax it was issued with rather than calculating tax again. Omit `line_items` to credit everything still uncredited on the invoice. Give `line_items` to credit specific invoice lines, each by the `quantity` of units to cred… - [Reserve credits](https://alguna.com/docs/api-reference/v2/2026-04-01/credits/reserve-credits.md): Prices work before it happens and, optionally, reserves credit for it. The request carries no credit amount: describe the work as the events it will produce, and the response's `charges` say what it prices to per metric. - [Read a reservation](https://alguna.com/docs/api-reference/v2/2026-04-01/credits/read-a-reservation.md): Reports a reservation's current state, what it covers, and every close already committed against it. - [Track credit consumption](https://alguna.com/docs/api-reference/v2/2026-04-01/credits/track-credit-consumption.md): Records usage and charges credit for it. The request carries no credit amount: send what happened, and the response's `charges` carry what it priced to per metric, with `totals` as the sum. - [Create a customer portal session](https://alguna.com/docs/api-reference/v2/2026-04-01/customer-portal-sessions/create-a-customer-portal-session.md): Creates a short-lived customer portal session and returns a signed URL the customer can use to access their billing portal. Sessions are single-use per token and expire after a short TTL. - [List customers](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/list-customers.md): Returns a paginated list of customers. Supports filtering by sales owner, customer success manager, tag IDs, active-subscription status, integration IDs, alias, and contact email. - [Create a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/create-a-customer.md): Creates a new customer with optional contacts, billing address, aliases, and a required default currency. - [Look up a customer ID by alias](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/look-up-a-customer-id-by-alias.md): Resolves an alias to its Alguna customer ID. The `alias` accepts the Alguna account ID, a customer alias, or a connected-account external ID (such as a Stripe customer ID). Returns 404 if no customer in your organization matches. Use this when you hold an external identifier and only need the Alguna… - [Get a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/get-a-customer.md): Fetches a single customer by ID, including contacts, billing address, and tax details (rate, status, country, type, and taxability reason). The `id` path parameter accepts the Alguna account ID, a customer alias, or a connected-account external ID (such as a Stripe customer ID). - [Update a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/update-a-customer.md): Patches an existing customer. Only the fields provided in the request body are modified. Supplying contacts or aliases replaces the full list. The `id` path parameter accepts the Alguna account ID, a customer alias, or a connected-account external ID (such as a Stripe customer ID). - [List connected accounts for a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/list-connected-accounts-for-a-customer.md): Returns the customer's accounts in connected external systems (for example a Stripe customer or a HubSpot company), including the integration each link belongs to, the account's identifier in the external system, and a link to it where available. The `id` path parameter accepts the Alguna account ID… - [Link a connected account to a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/link-a-connected-account-to-a-customer.md): Links the customer to an account in an external system by recording the integration and the account's identifier in that system. This records the mapping only: it does not create anything in the external system and does not trigger a sync of any data in either direction. The `id` path parameter acce… - [Unlink a connected account from a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/unlink-a-connected-account-from-a-customer.md): Removes the link between the customer and an external-system account. This removes the mapping only: it does not delete anything in the external system and does not trigger a sync. The `id` path parameter accepts the Alguna account ID, a customer alias, or an existing connected-account external ID. - [List active entitlements for a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/list-active-entitlements-for-a-customer.md): Returns the flattened list of active entitlements across all of the customer's active subscriptions. Each entry is a single entitlement on the current published version of one active subscription. Use the `subscription_id` field on each entry to see which subscription the entitlement comes from. The… - [List saved payment methods for a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/customers/list-saved-payment-methods-for-a-customer.md): Returns the customer's saved, active payment methods, newest first, with redacted details only: card brand, last four digits and expiry, or the last four digits of a bank account. `is_default` marks the payment method that auto-pay charges when a subscription has no payment method of its own. Paymen… - [Send feedback](https://alguna.com/docs/api-reference/v2/2026-04-01/feedback/send-feedback.md): Sends product feedback about the Alguna API to the Alguna team. Use it when a response is missing a field you needed, an error does not say how to recover, a capability you looked for does not exist, or the documentation led you astray. Name the operation it concerns and say what you tried, what you… - [Get accounts receivable aging summary](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-accounts-receivable-aging-summary.md): Returns the organization-wide receivables position as of now: total open balance, the past-due portion, invoice counts, and a breakdown by days past due. Unlike the other insights endpoints this is a point-in-time snapshot rather than a period aggregate, so it takes no date range. Amounts from every… - [Get accounts receivable aging by customer](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-accounts-receivable-aging-by-customer.md): Returns one entry per customer and currency, each with the open balance, invoice counts, and a breakdown by days past due. A customer billed in more than one currency produces one entry per currency, so entries for a single customer can be summed by invoice count but never by amount. Like the aging… - [Get the ARR bridge](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-the-arr-bridge.md): Returns contracted MRR month by month with its movements (opening, new, reactivation, expansion, contraction, churn, closing), ARR, net and gross revenue retention, active customers and ACV. Amounts are in the organization's reporting currency, converted at one fixed rate per currency for every mont… - [List ARR bridge rows](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/list-arr-bridge-rows.md): Lists the customers behind the ARR bridge with their MRR, change and movement for each month, contracted and cash ACV, and billed to date. Pass customer_id to drill into that customer's subscriptions, or subscription_id for that subscription's products; each level's changes sum to the row above it. - [Get billings breakdown by customer](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-billings-breakdown-by-customer.md): Returns top customers ranked by net billings for the selected period, with a comparison to the prior period. Remaining customers are aggregated into an 'other' total. - [Get billings breakdown by product](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-billings-breakdown-by-product.md): Returns billings broken down by product for the selected period, with a comparison to the prior period. - [Get billings over time](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-billings-over-time.md): Returns a time series of net billings data points split into fixed and metered components. Based on issued invoices. - [Get customer metrics](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-customer-metrics.md): Returns customer lifecycle metrics: active, churned, new, and reactivated customer counts with comparison to the prior period. - [Get customer metrics over time](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-customer-metrics-over-time.md): Returns a time series of customer lifecycle events: new, reactivated, existing, and churned customer counts per period. - [Get net revenue summary](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-net-revenue-summary.md): Returns a net revenue summary including current month, last month, and annualized figures broken down by fixed (recurring) and metered (usage-based) revenue. - [Get revenue breakdown over time](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-revenue-breakdown-over-time.md): Returns contracted monthly recurring revenue month by month, classified by movement type: existing, new, reactivation, expansion, contraction, and churn. - [Get revenue breakdown by customer](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-revenue-breakdown-by-customer.md): Returns top customers ranked by net revenue for the selected period, with a comparison to the prior period. Remaining customers are aggregated into an 'other' total. - [Get revenue breakdown by product](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-revenue-breakdown-by-product.md): Returns revenue broken down by product for the selected period, with a comparison to the prior period. - [Get revenue over time](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-revenue-over-time.md): Returns a time series of net revenue data points split into fixed and metered components. Resolution (daily or monthly) is automatically determined by the date range. - [Get MRR, ARR, and ACV for a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/insights/get-mrr-arr-and-acv-for-a-subscription.md): Returns the monthly recurring revenue (MRR), annual recurring revenue (ARR), and annual contract value (ACV) for a single subscription. - [List integrations](https://alguna.com/docs/api-reference/v2/2026-04-01/integrations/list-integrations.md): Returns the organization's connected integrations (for example Stripe, HubSpot, or QuickBooks). Use the `id` of an integration when linking a connected account to a customer. Supports filtering by provider type. - [Get an integration](https://alguna.com/docs/api-reference/v2/2026-04-01/integrations/get-an-integration.md): Fetches a single integration by its ID. - [List invoices](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/list-invoices.md): Returns a paginated list of invoices. Supports filtering by status, customer, subscription, autopay flag, external reference, tag IDs, and date ranges on invoicing, issue, due, and paid dates. - [Create an invoice](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/create-an-invoice.md): Creates an ad-hoc invoice for a customer. Callers can supply line items, a billing period, purchase order number, and an initial status (`draft` or `issued`). Requesting `issued` releases the invoice for issuance, which completes asynchronously — the response returns the invoice in `processing` and… - [Get an invoice](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/get-an-invoice.md): Fetches a single invoice by ID, including all line items, totals, and status. - [Update an invoice](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/update-an-invoice.md): Patches descriptive metadata on an existing invoice (description, purchase order number). Line items are managed through the dedicated line item endpoints. - [Create an invoice line item](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/create-an-invoice-line-item.md): Adds a new line item to an existing invoice. The invoice must not yet be finalized. - [Delete an invoice line item](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/delete-an-invoice-line-item.md): Removes a line item from an invoice. The invoice must not yet be finalized. - [Update an invoice line item](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/update-an-invoice-line-item.md): Patches an existing invoice line item. Only the fields provided in the request body are modified. - [Mark an invoice as paid](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/mark-an-invoice-as-paid.md): Records a manual payment against an invoice. Accepts an optional amount (defaults to the invoice total), payment date, external payment source, and free-text note. Transitions the invoice to `paid` when the balance is settled. - [Generate an invoice PDF](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/generate-an-invoice-pdf.md): Returns the rendered PDF for an invoice as a binary `application/pdf` response. If a custom PDF has been uploaded for the invoice, it is served directly, otherwise the standard template is rendered on demand. - [Void an invoice](https://alguna.com/docs/api-reference/v2/2026-04-01/invoices/void-an-invoice.md): Voids an invoice, marking it as no longer collectable. Accepts an optional void date (defaults to the current date); it may be backdated but must not be in the future or before the invoice's issue date. Only issued or overdue invoices can be voided: voiding an invoice in any other status returns a 4… - [List merchants](https://alguna.com/docs/api-reference/v2/2026-04-01/merchants/list-merchants.md): Returns a paginated list of merchants, by display name. Archived merchants are excluded unless you ask for them. - [Create a merchant](https://alguna.com/docs/api-reference/v2/2026-04-01/merchants/create-a-merchant.md): Registers a business you sell on behalf of. Invoices and receipts issued for a merchant carry its name and logo, while your legal entity stays the seller of record and keeps the contract, the payment and the tax liability. A merchant is display identity only: it has no tax or legal configuration of… - [Get a merchant](https://alguna.com/docs/api-reference/v2/2026-04-01/merchants/get-a-merchant.md): Fetches a single merchant. Archived merchants still resolve, so documents issued before they were archived keep rendering. - [Archive a merchant](https://alguna.com/docs/api-reference/v2/2026-04-01/merchants/archive-a-merchant.md): Retires a merchant. Merchants are never deleted, because the documents already issued for them still need their branding: an archived merchant keeps rendering on those, but takes no new attribution — a tax calculation naming it is rejected. Idempotent, and the original archive time is kept. Returns… - [Update a merchant](https://alguna.com/docs/api-reference/v2/2026-04-01/merchants/update-a-merchant.md): Updates a merchant. Only the fields you send are changed: omit a field to leave it alone, send an empty value to clear it. Renames and new branding apply the next time a document is rendered, including documents issued earlier. - [Unarchive a merchant](https://alguna.com/docs/api-reference/v2/2026-04-01/merchants/unarchive-a-merchant.md): Returns an archived merchant to active use, so new documents can be issued for it again. Idempotent. - [List payments](https://alguna.com/docs/api-reference/v2/2026-04-01/payments/list-payments.md): Returns a list of payments. Supports filtering by customer account ID and invoice ID. - [Get a payment](https://alguna.com/docs/api-reference/v2/2026-04-01/payments/get-a-payment.md): Fetches a single payment by ID. - [List plans](https://alguna.com/docs/api-reference/v2/2026-04-01/plans/list-plans.md): Returns a paginated list of plans. Supports filtering by tag IDs. - [Create a plan](https://alguna.com/docs/api-reference/v2/2026-04-01/plans/create-a-plan.md): Creates a new plan with its full pricing template — name, currency, contract configuration, and the items (standalone priced products and/or bundles) that subscriptions will inherit. Optional fields cover plan-level discount, spend thresholds, price escalation, entitlements, tags, and invoice/email… - [Get a plan](https://alguna.com/docs/api-reference/v2/2026-04-01/plans/get-a-plan.md): Fetches a single plan by ID, including its item set and pricing. - [List product bundles](https://alguna.com/docs/api-reference/v2/2026-04-01/product-bundles/list-product-bundles.md): Returns a paginated list of product bundles. - [Create a product bundle](https://alguna.com/docs/api-reference/v2/2026-04-01/product-bundles/create-a-product-bundle.md): Creates a new product bundle. Product bundles group multiple priced products together so they can be referenced by a single ID in subscriptions, plans, and quotes. - [Get a product bundle](https://alguna.com/docs/api-reference/v2/2026-04-01/product-bundles/get-a-product-bundle.md): Fetches a single product bundle by ID, including its default prices. - [Update a product bundle](https://alguna.com/docs/api-reference/v2/2026-04-01/product-bundles/update-a-product-bundle.md): Patches an existing product bundle. Supplying `prices` replaces the bundle's full price set. - [List products](https://alguna.com/docs/api-reference/v2/2026-04-01/products/list-products.md): Returns a paginated list of products. Supports filtering by fee type (`fixed` or `metered`), payment terms (`advance` or `arrears`), and associated metric IDs. - [Create a product](https://alguna.com/docs/api-reference/v2/2026-04-01/products/create-a-product.md): Creates a new product. Products are the billable unit on subscription items and define whether pricing is fixed or metered, the payment terms, the billing frequency, the SKU for downstream ERP systems, and the revenue allocation method. Metered products must be associated with one or more metrics. - [Get a product](https://alguna.com/docs/api-reference/v2/2026-04-01/products/get-a-product.md): Fetches a single product by ID. - [Delete a product](https://alguna.com/docs/api-reference/v2/2026-04-01/products/delete-a-product.md): Soft-deletes a product. Products currently used on active subscriptions cannot be deleted. - [Update a product](https://alguna.com/docs/api-reference/v2/2026-04-01/products/update-a-product.md): Patches an existing product. Only the fields provided in the request body are modified. - [List quotes](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/list-quotes.md): Returns a paginated list of quotes, filterable by subscription, kind, and status. - [Create a quote](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/create-a-quote.md): Creates a quote, in `draft`. A new-business quote starts from a plan, duplicates an existing subscription using `source_subscription_id`, or starts from a blank canvas with `items` (single phase) or `phases` (ramp); its phases are read and edited under `/quotes/{id}/phases` until the quote is activa… - [Get a quote](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/get-a-quote.md): Returns a quote, including its `signing_url` while a customer signature is pending. Whether the deal is in effect is the state of `subscription_id`, not of the quote: a signed quote stays `signed`, so read that subscription to see activation. - [Discard a draft quote](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/discard-a-draft-quote.md): Deletes a draft quote and the draft subscription it documents, for a quote that was abandoned before anyone saw it. Requires `status` of `draft` and a new-business quote: once sent, a quote is a document someone may hold, so it is withdrawn rather than erased. - [Update a quote](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/update-a-quote.md): Updates a quote's name override and its signing deadline. The override names the quote, not the subscription; subscription content is edited through the quote's phases. - [Activate a signed quote](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/activate-a-signed-quote.md): Puts a signed quote into effect: requires `status` of `signed`. A new-business quote activates its subscription; an amendment publishes its phase onto the live subscription. Quotes with `auto_activate` take effect on their own once signed (a new-business quote at its contract start), so this is only… - [Mark a quote as signed offline](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/mark-a-quote-as-signed-offline.md): Records a signature captured outside the hosted signing page, for consumers that collect signer consent through their own e-sign flow. Accepts a `draft` quote, or an amendment or renewal quote that is not issued yet, issuing it first so no live Alguna signing link has to be created for a document si… - [Download a quote PDF](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/download-a-quote-pdf.md): Returns the quote document as a binary `application/pdf` response: the PDF the customer signed, or the currently issued one while the quote is out for signature. Returns `404` when there is no issued document — a quote still in `draft`, or a withdrawn amendment, whose staged phase the withdrawal dis… - [List quote phases](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/list-quote-phases.md): Returns the priced phases a quote proposes, in schedule order, each with its revenue totals. An amendment quote has the single phase it was issued for. `sequence` is the position in that order, not an identifier — deleting a phase renumbers the rest, so address a phase by its `id`. Each phase is the… - [Add a quote phase](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/add-a-quote-phase.md): Stages a further priced phase on a new-business quote that has not been signed. Name its start as a date or as months after the billing start. On a `sent` quote the edit is saved, and when the reissue of the quote needs approval, the call answers `202 Accepted` with the approval and `approval.quote_… - [Get a quote phase](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/get-a-quote-phase.md): Returns one of the quote's phases with its revenue totals. - [Replace a quote phase](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/replace-a-quote-phase.md): Replaces the items and start of one of the quote's draft phases. Send the complete item set; items you omit are removed. Phases publish when the quote is sent and cannot change after that. On a `sent` quote the edit is saved, and when the reissue of the quote needs approval, the call answers `202 Ac… - [Delete a quote phase](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/delete-a-quote-phase.md): Discards one of the quote's draft phases. Phases publish when the quote is sent and cannot be deleted after that. On a `sent` quote the edit is saved, and when the reissue of the quote needs approval, the call answers `202 Accepted` with the approval and `approval.quote_id`. See [When a call needs a… - [List quote phase items](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/list-quote-phase-items.md): Returns the priced items of one of the quote's phases. - [Send a quote for signature](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/send-a-quote-for-signature.md): Issues a quote revision (snapshot + rendered PDF) and moves the quote to `sent`, returning it with the `signing_url` for the customer to review and sign. Requires `draft`, `rejected` or `pending_approval`. An amendment or renewal quote that is not issued yet, for example one that waited for approval… - [Withdraw a quote](https://alguna.com/docs/api-reference/v2/2026-04-01/quotes/withdraw-a-quote.md): Cancels a quote that is out for signature: requires `status` of `sent`. Withdrawing a new-business quote withdraws its subscription and keeps the issued document; withdrawing an amendment discards the staged draft phase, so its document no longer renders. Use Discard a draft quote for one that was n… - [List refunds](https://alguna.com/docs/api-reference/v2/2026-04-01/refunds/list-refunds.md): Returns a paginated list of refunds. Supports filtering by status, currency, customer, and payment. Sortable by status, amount, currency, and created date. - [Create a refund](https://alguna.com/docs/api-reference/v2/2026-04-01/refunds/create-a-refund.md): Creates a refund against a payment. For partial or full refunds of invoices, prefer issuing a credit note first via Create Credit Note and applying it, which handles accounting and gives the customer a paper trail. Direct refunds are best for cases where no credit note is needed. - [Get a refund](https://alguna.com/docs/api-reference/v2/2026-04-01/refunds/get-a-refund.md): Fetches a single refund by ID. - [Get organization revenue schedule](https://alguna.com/docs/api-reference/v2/2026-04-01/revenue-schedules/get-organization-revenue-schedule.md): Returns the revenue schedule for the entire organization, showing projected recognized, deferred, and metered revenue over time. - [Get revenue schedule for a customer](https://alguna.com/docs/api-reference/v2/2026-04-01/revenue-schedules/get-revenue-schedule-for-a-customer.md): Returns the aggregated revenue schedule for all of a customer's subscriptions and ad-hoc invoices. - [Get revenue schedule for a legal entity](https://alguna.com/docs/api-reference/v2/2026-04-01/revenue-schedules/get-revenue-schedule-for-a-legal-entity.md): Returns the aggregated revenue schedule for all subscriptions and invoices under a legal entity. - [Get revenue schedule for a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/revenue-schedules/get-revenue-schedule-for-a-subscription.md): Returns the revenue schedule for a single subscription, showing projected recognized, deferred, and metered revenue over time. - [Apply changes to a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-changes/apply-changes-to-a-subscription.md): Applies a delta (`add`, `remove`, `update`) on top of a source version. The API computes the new version, creates it, and publishes it unless `draft: true` is set. The `effective` field controls when the change takes effect (keyword or specific date). This is the high-level mutation endpoint. See th… - [Preview a subscription change](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-changes/preview-a-subscription-change.md): Computes the same delta as Apply Changes to a Subscription without writing a new version. Use this to drive approval flows or show the customer what is about to change before committing. See the [Updating a Subscription](/docs/api-reference/v2/examples/updating-a-subscription) examples. - [List subscription versions](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/list-subscription-versions.md): Returns every version attached to a subscription: drafts, the currently active published version, and any future pending versions. - [Create a new subscription version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/create-a-new-subscription-version.md): Creates a new version from a complete item set. Returns a draft by default that can be edited and published later. This is the snapshot-based mutation path (Path B) for full control over the version contents. For the delta-based alternative, use the Apply Changes to a Subscription endpoint. See the… - [Get the current active subscription version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/get-the-current-active-subscription-version.md): Returns the subscription version that is currently in effect. This is the published version whose start date has passed and whose end date is either in the future or null. Returns 404 if the subscription has no active published version. - [Get a subscription version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/get-a-subscription-version.md): Fetches a single version by ID, including its priced items and entitlements. - [Replace a draft subscription version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/replace-a-draft-subscription-version.md): Replaces the contents of a draft version in place. Snapshot-based: send the full intended item set. Items you omit are removed. Only draft versions can be replaced, published versions are immutable. See the [Updating a Subscription](/docs/api-reference/v2/examples/updating-a-subscription) examples.… - [Delete a subscription version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/delete-a-subscription-version.md): Discards an unwanted draft version, or a published version that has not started yet. A published version that is in effect or has ended cannot be deleted; supersede it by creating a new version instead. See the [Updating a Subscription](/docs/api-reference/v2/examples/updating-a-subscription) exampl… - [Get a subscription version item](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/get-a-subscription-version-item.md): Fetches a single priced item from a version, addressed by either its product ID or its bundle ID. Bundle items return every child with its price. - [Publish a draft subscription version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/publish-a-draft-subscription-version.md): Publishes a draft version. If `effective_at` is in the past or today the version becomes the current active version immediately. Otherwise it sits as a pending change on the parent subscription until the effective date. See the [Updating a Subscription](/docs/api-reference/v2/examples/updating-a-sub… - [Get subscription revenue metrics for a specific version](https://alguna.com/docs/api-reference/v2/2026-04-01/subscription-versions/get-subscription-revenue-metrics-for-a-specific-version.md): Returns the monthly recurring revenue (MRR), annual recurring revenue (ARR), and annual contract value (ACV) computed from the pricing on the specified subscription version. This is the same calculation used in the Alguna dashboard subscription builder, so results match what is shown there one-to-on… - [List subscriptions](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/list-subscriptions.md): Returns a paginated list of subscriptions. Supports filtering by status, customer ID, and tag IDs. - [Create a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/create-a-subscription.md): Creates a new subscription for a customer. Supports three creation patterns: raw pricing in the request body, from a plan, or from a plan with per-customer overrides. Subscriptions are created in `draft` status and must be activated unless `auto_activate: true` is set. See the [Creating a Subscripti… - [Get a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/get-a-subscription.md): Fetches a single subscription by ID, including the current active version reference, any pending future versions, and `open_change`: the subscription change that is open, with its approval status, when one waits. - [Delete a draft subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/delete-a-draft-subscription.md): Permanently deletes a draft subscription. Only draft subscriptions can be deleted. Use cancel for subscriptions that have already been activated. - [Update a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/update-a-subscription.md): Patches metadata on a subscription: name, description, trial period, billing flags, subscription-level discount, spending thresholds, price escalation, and tags. This endpoint does not modify the priced item set. To change items, see the [Updating a Subscription](/docs/api-reference/v2/examples/upda… - [Activate a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/activate-a-subscription.md): Transitions a draft subscription to `active` so it becomes effective for the customer. Idempotent: activating an already-active subscription returns the current state. See the [Creating a Subscription](/docs/api-reference/v2/examples/creating-a-subscription) examples for the full creation flow. When… - [Get valid billing dates for a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/get-valid-billing-dates-for-a-subscription.md): Returns the current billing cycle range, the list of valid dates for on-cycle version starts, the valid date range for mid-cycle changes, the contract end date, and the next renewal date. Use this to drive date pickers in UI flows that schedule future changes. - [Cancel a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/cancel-a-subscription.md): Schedules a cancellation for a subscription. The `effective` timing can be a keyword (e.g. `immediate`, `end_of_term`) or a specific date. A cancellation reason code is required and a free-text note is optional. - [Get the monetary credit balance for a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/get-the-monetary-credit-balance-for-a-subscription.md): Returns the customer's monetary credit balance applicable to this subscription, evaluated at the `as_of` timestamp (defaults to now). Expired grants are excluded from the returned balance. - [Grant credits to a subscription](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/grant-credits-to-a-subscription.md): Creates a monetary API-granted credit on a subscription. The grant is immediately available for consumption. - [List active entitlements](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/list-active-entitlements.md): Returns every entitlement active on the subscription's current published version, including static boolean/number/string entitlements and grant-based credit allocations. - [Get a specific entitlement](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/get-a-specific-entitlement.md): Fetches a single active entitlement on a subscription by its entitlement key. - [List subscription milestones](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/list-subscription-milestones.md): Returns the milestones the subscription's one-off prices bill on, pending ones included. A price with a `milestone_key` stays off the billing schedule until the milestone with that key is reached. Each milestone lists the price IDs it releases. - [Mark a subscription milestone reached](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/mark-a-subscription-milestone-reached.md): Declares the milestone reached on an active subscription, which releases the one-off prices billing on it onto the billing schedule: each is invoiced on the day of this call, with `reached_at` as its service date. The milestone must be referenced by one of the subscription's prices. Completing a mil… - [Download a subscription PDF](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/download-a-subscription-pdf.md): Returns the signed contract PDF for a subscription as a binary `application/pdf` response. The document reflects the contract as it was agreed upon with the customer at the point of signing. Returns `404` if the order form was not signed through Alguna and no PDF exists. - [Get subscription revenue metrics](https://alguna.com/docs/api-reference/v2/2026-04-01/subscriptions/get-subscription-revenue-metrics.md): Returns the monthly recurring revenue (MRR), annual recurring revenue (ARR), and annual contract value (ACV) for the subscription's current active version. - [List tags](https://alguna.com/docs/api-reference/v2/2026-04-01/tags/list-tags.md): Returns a paginated list of the organization's tags, sorted by name. Use the returned IDs with the tag_ids filter on list endpoints such as customers, plans, invoices, subscriptions, and metrics. - [Get a tag](https://alguna.com/docs/api-reference/v2/2026-04-01/tags/get-a-tag.md): Fetches a single tag by ID. - [List tax calculations](https://alguna.com/docs/api-reference/v2/2026-04-01/tax/list-tax-calculations.md): Returns a paginated list of stored calculations, newest first, for reconciling what was quoted against what was issued. Each entry carries the total tax, whether the calculation was issued from and into which invoice, and whether it can still be issued from. Supports filtering by customer reference,… - [Calculate tax](https://alguna.com/docs/api-reference/v2/2026-04-01/tax/calculate-tax.md): Computes tax for inline line items against your legal entity's configured tax engine and stores the result, returning an id (with an expiry) you pass when issuing a receipt to pin these exact line items and amounts. Each call creates a new calculation; send an `Idempotency-Key` header to make a retr… - [Read a tax calculation](https://alguna.com/docs/api-reference/v2/2026-04-01/tax/read-a-tax-calculation.md): Returns one stored calculation: the lines as they were submitted joined with the engine's answer for each, plus the invoice it was issued into when it has been. A calculation an invoice was issued from stays readable, so this is the audit record behind that invoice's tax; one never issued from is de… - [List tax transactions](https://alguna.com/docs/api-reference/v2/2026-04-01/tax/list-tax-transactions.md): Returns a paginated ledger of the transactions recorded with your tax engine for finalized invoices and credit notes, newest recording first. Superseded and voided entries stay in the list as history, so a caller that waits for a document to finish recording must select an entry whose status is `rec… - [List users](https://alguna.com/docs/api-reference/v2/2026-04-01/users/list-users.md): Returns a paginated list of the organization's active members, sorted by name. Use it to resolve the user_id in the assignments on customers and subscriptions. - [Get a user](https://alguna.com/docs/api-reference/v2/2026-04-01/users/get-a-user.md): Fetches a single active member of the organization by ID. - [List wallet grants](https://alguna.com/docs/api-reference/v2/2026-04-01/wallet-grants/list-wallet-grants.md): Returns a paginated list of wallet grants across the organization. Supports filtering by wallet ID and grant status. - [Create a wallet grant](https://alguna.com/docs/api-reference/v2/2026-04-01/wallet-grants/create-a-wallet-grant.md): Creates a new grant on a wallet for a given amount. Grants may carry an expiry date and an associated payment reference. - [Get a wallet grant](https://alguna.com/docs/api-reference/v2/2026-04-01/wallet-grants/get-a-wallet-grant.md): Fetches a single wallet grant by ID. - [List grants for a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallet-grants/list-grants-for-a-wallet.md): Returns every grant attached to a specific wallet. - [List wallets](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/list-wallets.md): Returns a paginated list of wallets. Supports filtering by customer ID and active status. - [Create a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/create-a-wallet.md): Creates a new wallet for a customer. Wallets hold a balance in a single currency and can optionally be restricted to a specific set of products. - [Get a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/get-a-wallet.md): Fetches a single wallet by ID. - [Delete a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/delete-a-wallet.md): Deletes a wallet. Wallets with a non-zero balance cannot be deleted. - [Update a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/update-a-wallet.md): Patches an existing wallet. Supports changing the name, currency, active flag, and the list of products the wallet can be used against. - [Get wallet balance](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/get-wallet-balance.md): Returns the current balance for a wallet. - [Credit a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/credit-a-wallet.md): Credits a wallet by the specified amount and records the transaction type, reference ID, and optional description on the ledger. - [Debit a wallet](https://alguna.com/docs/api-reference/v2/2026-04-01/wallets/debit-a-wallet.md): Debits a wallet by the specified amount. Fails with `422` if the wallet has insufficient balance. - [Approval Request Created](https://alguna.com/docs/api-reference/v2/webhooks/approval-request-created.md): Approval was requested from an approver. One event is sent per approver. - [Approval Request Approved](https://alguna.com/docs/api-reference/v2/webhooks/approval-request-approved.md): An approver approved their approval request. - [Approval Request Rejected](https://alguna.com/docs/api-reference/v2/webhooks/approval-request-rejected.md): An approver rejected their approval request. - [Approval Flow Completed](https://alguna.com/docs/api-reference/v2/webhooks/approval-flow-completed.md): A quote's approval flow reached a terminal state. - [Checkout Session Completed](https://alguna.com/docs/api-reference/v2/webhooks/checkout-session-completed.md): A checkout session's payment succeeded, for both hosted and embedded checkout. - [Credit Balance Depleted](https://alguna.com/docs/api-reference/v2/webhooks/account-credits-balance-depleted.md): A customer's credit balance reached zero. - [Credits Granted](https://alguna.com/docs/api-reference/v2/webhooks/account-credits-granted.md): Credits were added to a customer account. - [Invoice Paid](https://alguna.com/docs/api-reference/v2/webhooks/invoice-paid.md): An invoice was paid in full. - [Invoice Issued](https://alguna.com/docs/api-reference/v2/webhooks/invoice-issued.md): An invoice was finalized and issued to the customer. - [Invoice Overdue](https://alguna.com/docs/api-reference/v2/webhooks/invoice-overdue.md): An issued invoice passed its due date without being paid in full. - [Line Item Deleted](https://alguna.com/docs/api-reference/v2/webhooks/lineitem-deleted.md): A line item was removed from an invoice. - [Payment Created](https://alguna.com/docs/api-reference/v2/webhooks/payment-created.md): A payment was initiated. - [Payment Updated](https://alguna.com/docs/api-reference/v2/webhooks/payment-updated.md): A payment changed status. - [Refund Updated](https://alguna.com/docs/api-reference/v2/webhooks/refund-updated.md): A refund changed status. - [Subscription Activated](https://alguna.com/docs/api-reference/v2/webhooks/subscription-activated.md): A subscription became active. - [Subscription Started](https://alguna.com/docs/api-reference/v2/webhooks/subscription-started.md): A subscription reached its contract start date. - [Subscription Updated](https://alguna.com/docs/api-reference/v2/webhooks/subscription-updated.md): A top-level subscription attribute changed: name, contract dates, renewal or invoice settings, or metadata. Pricing changes are reported on subscription.version.updated. - [Subscription Version Updated](https://alguna.com/docs/api-reference/v2/webhooks/subscription-version-updated.md): A subscription version was created, updated or published. Pricing changes are reported here. - [Subscription Cancelation Scheduled](https://alguna.com/docs/api-reference/v2/webhooks/subscription-cancelation-scheduled.md): A cancellation was scheduled for a future date. - [Subscription Cancelation Reverted](https://alguna.com/docs/api-reference/v2/webhooks/subscription-cancelation-reverted.md): A scheduled cancellation was called off before taking effect. - [Subscription Canceled](https://alguna.com/docs/api-reference/v2/webhooks/subscription-canceled.md): A subscription was canceled. - [Subscription Ended](https://alguna.com/docs/api-reference/v2/webhooks/subscription-ended.md): A fixed-term subscription reached its contract end date without renewing. Its final in-arrears and usage invoices still issue. - [Subscription Pause Scheduled](https://alguna.com/docs/api-reference/v2/webhooks/subscription-pause-scheduled.md): A pause was scheduled for a future date. Not enabled by default — contact us to turn it on. - [Subscription Pause Unscheduled](https://alguna.com/docs/api-reference/v2/webhooks/subscription-pause-unscheduled.md): A scheduled pause was called off before taking effect. Not enabled by default — contact us to turn it on. - [Subscription Paused](https://alguna.com/docs/api-reference/v2/webhooks/subscription-paused.md): A pause took effect. Not enabled by default — contact us to turn it on. - [Subscription Resumed](https://alguna.com/docs/api-reference/v2/webhooks/subscription-resumed.md): A subscription resumed after a pause. Not enabled by default — contact us to turn it on. - [Integrations Overview](https://alguna.com/docs/integrations/marketplace.md): Learn how Alguna complements your existing sales, payments and finance tools - [Quickbooks](https://alguna.com/docs/integrations/accounting/quickbooks.md): Learn how to connect Quickbooks with Alguna - [Xero](https://alguna.com/docs/integrations/accounting/xero.md): Learn how to connect Xero with Alguna - [NetSuite](https://alguna.com/docs/integrations/accounting/netsuite.md): Post Alguna invoices, credit memos and customers into NetSuite, mapped to your items and classes. Beta connector, available on request. - [Light](https://alguna.com/docs/integrations/accounting/light.md): Post Alguna invoices, credit notes and customers into Light, matched to your product catalogue by SKU. - [Salesforce](https://alguna.com/docs/integrations/crm/salesforce.md): Learn how to connect Salesforce with Alguna - [HubSpot](https://alguna.com/docs/integrations/crm/hubspot.md): Connect HubSpot to Alguna, see subscriptions and quotes on company and deal records, create quotes from deals, and keep deals updated from the primary quote - [CRM field mapping](https://alguna.com/docs/integrations/crm/field-mapping.md): Choose which Alguna values are written onto HubSpot and Salesforce records, from deal totals to subscription line items - [External Sync](https://alguna.com/docs/integrations/external-sync.md): Keep Alguna and your CRM in step - [BigQuery](https://alguna.com/docs/integrations/data-ingestion/bigquery-copy.md): Pull usage events for metering straight from a BigQuery table, on a schedule, without sending them through the API. - [ClickHouse](https://alguna.com/docs/integrations/clickhouse.md): Pull usage events for metering from a ClickHouse table or view on a nightly schedule, incrementally, without sending them through the API. - [ACH Payments](https://alguna.com/docs/integrations/payments/ach.md): Learn how to connect direct debit with Alguna - [Stripe Payments](https://alguna.com/docs/integrations/payments/stripe.md): Learn how to connect Stripe with Alguna - [Stripe Tax](https://alguna.com/docs/integrations/sales-tax/stripe-tax.md): Learn how to connect Stripe Tax with Alguna - [Anrok](https://alguna.com/docs/integrations/sales-tax/anrok.md): Learn how to connect Anrok with Alguna - [Stripe Invoicing](https://alguna.com/docs/integrations/invoicing-alternatives/stripe-invoicing.md): Learn how to use Stripe as an invoicing platform with Alguna - [Xero Invoicing](https://alguna.com/docs/integrations/invoicing-alternatives/xero-invoicing.md): Learn how to connect Xero Invoicing with Alguna - [Quickbooks Invoicing](https://alguna.com/docs/integrations/invoicing-alternatives/quickbooks-invoicing.md): Learn how to use Quickbooks as an invoicing platform with Alguna - [Migrations](https://alguna.com/docs/migrations/migrations.md): How onboarding to Alguna works: account setup, integrations, pricing and contract migration, a test billing run, and go-live — with Alguna's team alongside. - [Migration Checklist](https://alguna.com/docs/migrations/checklist.md): Complete checklist for migrating to Alguna with audit-driven onboarding - [Sync Accounts](https://alguna.com/docs/migrations/sync-accounts.md): Bring your customers into Alguna — from a connected CRM or payment processor, through the API, or by hand — and link them to your own IDs with aliases. ## OpenAPI Specs - [2026-04-01](/docs/api-reference/v2/specs/2026-04-01.json) ## Optional - [Contact us](https://alguna.io) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.