Skip to content

Billing

Prices, subscriptions, invoices, payments and tax rates.

Packs are versioned with the standard, currently 0.1.0. Each model below has its own version.

Models

ModelVersionDescription
Invoicev1A statement of money owed for goods or services: receivable when we issued it, payable when we received it (a bill).
Paymentv1Money that moved against invoices: a customer paying us (receivable), us paying a vendor (payable), or a refund of either.
Pricev1An amount at which a Product is sold, once or on a recurring interval.
Subscriptionv1A recurring agreement to bill (receivable) or be billed (payable) for Prices, period after period.
Tax ratev1A named tax percentage applied to invoice lines (VAT 20%, GST 5%, a state sales tax), referenced by Products and Invoice lines.

Extensions

Fields this pack adds to other models.

Invoice

ExtensionTypeNotes
ext.billing.exchange_ratedecimalThe rate from the invoice currency to the workspace's reporting currency at issue, as a decimal string.

Organization

ExtensionTypeNotes
ext.billing.legal_namestringThe registered legal name, when it differs from name; printed on invoices and used by the e-invoicing profile.

Price

ExtensionTypeNotes
ext.billing.tiersobjectTiered or volume pricing: { scheme (graduated | volume), tiers: [ { up_to (decimal string or null for the last tier), unit_amount { amount, currency }, flat_amount { amount, currency } } ] }.
ext.billing.trial_daysintFree trial length in days granted when a subscription starts on this price.
ext.billing.usage_basedboolTrue when the quantity billed each period comes from metered usage rather than a fixed quantity.

Tax rate

ExtensionTypeNotes
ext.billing.jurisdictionobjectWhere the rate applies: { country (ISO 3166-1 alpha-2), region }.
ext.billing.tax_kindenum(vat|gst|sales_tax|other)The kind of tax the rate is: VAT, GST, a sales tax, or another.