Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.flexprice.io/llms.txt

Use this file to discover all available pages before exploring further.

Which workflow do I need?

Every Flexprice subscription has a subscription_type that controls billing ownership. Use the table below to pick the right workflow before you start.
WorkflowYour situationWho gets invoicedsubscription_type
StandaloneEach customer is independent: their own plan, invoice, and walletSubscription ownerstandalone
Consolidated BillingOne parent contract covers multiple child entities; one invoice to HQParent customerparent (HQ) + inherited (children, auto-created)
Delegated InvoicingEach customer has their own subscription, but a third party pays all the billsDelegated payerstandalone with invoicing redirect
Grouped InvoicingMultiple separate subscriptions for the same company; Finance wants a single invoiceParent subscription’s customergrouped_invoicing (children) + parent
If none of these match, start with Standalone. It is the default and works for the majority of direct B2B and B2C billing scenarios.

Key concept: hierarchy lives on subscriptions, not customers

Flexprice keeps customer records flat. There are no parent or child fields on a customer. All billing relationships are configured on the subscription. This means:
  • You can mix billing workflows per customer without restructuring your customer data
  • Switching a customer from standalone to grouped invoicing is a subscription operation, not a customer edit
  • Two customers can be related for billing purposes while remaining independent entities in your system

Workflows at a glance

Standalone

Default. One customer, one subscription, one invoice. No configuration needed.

Consolidated Billing

Enterprise HQ buys one plan. Subsidiaries generate usage. One consolidated invoice.

Delegated Invoicing

Reseller model. Each end customer has their own subscription. One party pays all invoices.

Grouped Invoicing

Multi-product company. Three separate subscriptions. Finance wants one monthly invoice.

Mutual exclusion

The four inheritance fields on Create Subscription are mutually exclusive. You can only specify one billing relationship per subscription:
FieldCannot be combined with
external_customer_ids_to_inherit_subscriptioninvoicing_customer_external_id, subscriptions_ids_for_grouped_invoicing, parent_subscription_id
invoicing_customer_external_idexternal_customer_ids_to_inherit_subscription, subscriptions_ids_for_grouped_invoicing
subscriptions_ids_for_grouped_invoicingexternal_customer_ids_to_inherit_subscription, invoicing_customer_external_id, parent_subscription_id
parent_subscription_idexternal_customer_ids_to_inherit_subscription, subscriptions_ids_for_grouped_invoicing