Skip to main content

setupCompanyBilling

Provision billing for a company: create its Stripe customer and a billing subscription row (status incomplete). The recurring product/price/subscription is then created by an admin in the Stripe Dashboard, and its state syncs back via webhooks. System-admin only. Fails if billing is already set up.

setupCompanyBilling(
input: SetupCompanyBillingInput!
): BillingSummary

Arguments​

setupCompanyBilling.input ● SetupCompanyBillingInput! non-null input common​

Parameters for SetupCompanyBilling

Type​

BillingSummary object billing​

A company's current billing subscription, with its plan and allowances. The companyBilling query returns null instead of this when the company has no subscription row (a trial account).