Billing
Invoice a customer based on the pending line items
Create a new invoice from the pending line items.
This should be only called if for some reason we need to invoice a customer outside of the normal billing cycle.
When creating an invoice, the pending line items will be marked as invoiced and the invoice will be created with the total amount of the pending items.
New pending line items will be created for the period between now() and the next billing cycle's begining date for any metered item.
The call can return multiple invoices if the pending line items are in different currencies.
post/api/v1/billing/invoices/invoice
Request body
Example request
{
"filters": {
"lineIds": [
"01G65Z755AFWAKHE12NY0CQ9FH"
]
},
"asOf": "2023-01-01T01:01:01.001Z",
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH"
}Response
The request has succeeded and a new resource has been created as a result.