Get the data usage information for the current month for a given organization.
The organization ID.
const usage = await billing.getCurrentMonthUsage('<organization-id>'); Copy
const usage = await billing.getCurrentMonthUsage('<organization-id>');
Get invoice PDF data.
The invoice ID.
const invoicePdf = await billing.getInvoicePdf( '<invoice-id>', '<organization-id>'); Copy
const invoicePdf = await billing.getInvoicePdf( '<invoice-id>', '<organization-id>');
Get total outstanding balance plus invoice summaries for a given org.
const invoicesSummary = await billing.getInvoicesSummary( '<organization-id>'); Copy
const invoicesSummary = await billing.getInvoicesSummary( '<organization-id>');
Get the billing information (payment method, billing tier, etc.) for a given org.
const billingInfo = await billing.getOrgBillingInformation( '<organization-id>'); Copy
const billingInfo = await billing.getOrgBillingInformation( '<organization-id>');
Get the data usage information for the current month for a given organization.