Groupwise: B2B consolidated invoicing

Orbital Cloud bills enterprises with many business units on one consolidated invoice, using subscription groups, proforma quotes and group payment profiles.

Open Groupwise →

Groupwise's accounts screen: an enterprise's org tree from the paying parent company through one invoice to each business unit

The story

Orbital Cloud is a fictional infrastructure SaaS that sells to enterprises with many business units. Each unit has its own subscription, and all of them belong to one Maxio subscription group. The parent company pays one consolidated invoice. Groupwise is Orbital's enterprise billing desk for quoting, signing and managing these groups.

At a glance
Use caseB2B billing, subscription groups, consolidated invoicing, proforma quotes
SDK operations14
Live appmxo-groupwise.pages.dev

Screens

ScreenWhat you see and doSDK calls
AccountsSix enterprise groups with members, consolidated MRR and open balance. An org tree shows the paying parent, the consolidated invoice and each member subscriptionsubscriptionGroups.listSubscriptionGroups, subscriptionGroups.readSubscriptionGroup, subscriptions.listSubscriptions
New enterprise dealAdd a payer and two or more business units with plans, get a consolidated quote, then sign the whole group in one callproducts.listProducts, proformaInvoices.previewSignupProformaInvoice, subscriptionGroups.signupWithSubscriptionGroup
Group managementAdd or remove members, change the group's default payment profile, and create consolidated proforma invoicessubscriptionGroups.addSubscriptionToGroup, subscriptionGroups.removeSubscriptionFromGroup, paymentProfiles.listPaymentProfiles, paymentProfiles.changeSubscriptionGroupDefaultPaymentProfile, proformaInvoices.listSubscriptionGroupProformaInvoices, proformaInvoices.createConsolidatedProformaInvoice
Consolidated invoicesEach parent invoice broken down by the member segments that make it up, then split into paid and dueinvoices.listInvoices, invoices.listConsolidatedInvoiceSegments

SDK operations

OperationSDK methodUsed for
List subscription groupssubscriptionGroups.listSubscriptionGroupsEnterprise accounts
Read subscription groupsubscriptionGroups.readSubscriptionGroupOne group's members and payer
Sign up with subscription groupsubscriptionGroups.signupWithSubscriptionGroupSign a whole deal in one call
Add subscription to groupsubscriptionGroups.addSubscriptionToGroupBring a business unit in
Remove subscription from groupsubscriptionGroups.removeSubscriptionFromGroupTake one out
List subscriptionssubscriptions.listSubscriptionsMember details and ungrouped subscriptions
List productsproducts.listProductsPlans for a new deal
Preview signup proforma invoiceproformaInvoices.previewSignupProformaInvoiceQuote each member
List subscription group proforma invoicesproformaInvoices.listSubscriptionGroupProformaInvoicesA group's proformas
Create consolidated proforma invoiceproformaInvoices.createConsolidatedProformaInvoicePreview the next consolidated invoice
List payment profilespaymentProfiles.listPaymentProfilesThe payer's cards and bank accounts
Change group default payment profilepaymentProfiles.changeSubscriptionGroupDefaultPaymentProfileSwitch how the parent pays
List invoicesinvoices.listInvoicesParent (consolidated) invoices
List consolidated invoice segmentsinvoices.listConsolidatedInvoiceSegmentsEach member's share of an invoice

Code: sign an enterprise deal in one call

const signup = await client.subscriptionGroups.signupWithSubscriptionGroup({
  body: {
    subscriptionGroup: {
      paymentCollectionMethod: "remittance",
      payerAttributes: { organization: "Atlas Holdings Inc.", firstName: "Dana", lastName: "Whitfield", email: "ap@atlasholdings.example", reference: "orb-atlas-holdings", country: "US" },
      subscriptions: [
        { productHandle: "compute-enterprise", reference: "atlas-logistics", primary: true },
        { productHandle: "data-lakehouse", reference: "atlas-health-labs" },
        { productHandle: "edge-network", reference: "atlas-freight-air" },
      ],
    },
  },
});

Maxio has no group-level signup preview, so the quote adds up one previewSignupProformaInvoice per member.

Errors shown on purpose

  • Maxio 422s: a retired product handle (rejected at both quote and signup), removing the group's primary subscription, and using another payer's payment profile. The app narrows each operation's own typed error.
  • App rule: a group needs at least two members, so quoting, signing or removing below that is blocked before Maxio sees it.

On this page