Skip to content

Billing Runs

A billing run produces invoices for your customers on a chosen date. It controls which call charges are included up to the call cutoff date, optionally which non-call charges up to a separate transaction cutoff date, the invoice date, and the payment due date. See the Billing Run guide for the full workflow.

/backend/api/v1/billingRuns/ID - fetch the billing run with the specified ID.

/backend/api/v1/billingRuns/ - list all billing runs.

ParameterTypeRequiredDescription
idAfterintegerNoOnly include runs with a higher ID
createdSincedatetimeNoOnly include runs created since the given time
updatedSincedatetimeNoOnly include runs updated since the given time

/backend/api/v1/billingRuns/ - create a new billing run. The newly-added run will be returned.

/backend/api/v1/billingRuns/ID - update the billing run with the specified ID. The modified run will be returned.

The date fields lock once bills are requested for a run, so they can only be changed while the run is still pending.

FieldNameTypeDescription
nameNameTextDescriptive name for this billing run
statusStatusPreset ValueStatus name of the billing run
subrunBilling SubrunPreset ValueSubrun identifier for this billing run in multirun environments
invoiceMessageInvoice MessagePreset ValueInvoice message name for this billing run
invoiceAmountInvoice AmountCurrencyTotal amount of all invoices in this billing run
invoiceDateInvoice DateDateDate to appear on invoices generated in this billing run
cutoffDateCutoff DateDateCall cutoff date for including call charges in this billing run
transactionCutoffDateTransaction Cutoff DateDateOptional non-call cutoff date for including charges by transaction date in this billing run
dueDateDue DateDatePayment due date for invoices in this billing run
idBilling Run IDTextThe unique identifier for this billing run
commencedDateCommenced DateDateDate and time when this billing run was commenced
completedDateCompleted DateDateDate and time when this billing run was completed