Subscription - Billing
Billing account management for tenant subscriptions. Create and manage billing accounts, set up Direct Debit mandates via GoCardless, and view invoices. Only tenant administrators can access billing endpoints.
-
GET Get Billing AccountReturns the billing account linked to this tenant, or 404 if billing has not been set up./tenants/{tenant}/subscription/billing
-
POST Start Subscription BillingCreates a billing account for the tenant. The billing account name is set from the tenant name and the billing contact is set to the current user./tenants/{tenant}/subscription/billing
-
PUT Update Billing AccountUpdates the billing account's address and invoice recipients. Name and billing contact are not changeable./tenants/{tenant}/subscription/billing
-
POST Initiate Mandate SetupStarts a GoCardless Direct Debit mandate setup. Returns a URL to redirect the user to for authorisation./tenants/{tenant}/subscription/billing/mandate-setup
-
POST Complete Mandate SetupCompletes the GoCardless Direct Debit mandate setup after the user has authorised it./tenants/{tenant}/subscription/billing/mandate-setup/complete
-
POST Cancel MandateCancels the active Direct Debit mandate for the tenant's billing account./tenants/{tenant}/subscription/billing/mandate/cancel
-
GET Refresh Mandate StatusFetches the current mandate status from GoCardless and updates the local record./tenants/{tenant}/subscription/billing/mandate/refresh
-
GET List InvoicesReturns a paginated list of invoices for the tenant's billing account with optional filtering by status and date range./tenants/{tenant}/subscription/billing/invoices
-
GET Download Invoice PDFDownloads the invoice PDF. Returns 404 if the PDF has not been generated./tenants/{tenant}/subscription/billing/invoices/{code}/pdf
-
GET Get InvoiceReturns the full invoice detail including line items. Use code 'draft' to get the current draft invoice./tenants/{tenant}/subscription/billing/invoices/{code}