OpenMeter Customers

Invoice a customer's charges

Changed on

Invoice a customer's charges outside the normal billing cycle. Collection alignment is bypassed. The customer's progressive billing setting applies unless explicitly overridden. All eligible pending lines are considered.

Returns the created standard invoices, one per collected currency. Lines blocked by their owning engine remain pending. If all eligible lines are blocked or no lines are eligible, returns a validation error.

post/openmeter/customers/{customerId}/charges/invoice

Request

  • Base URL
    http://localhost:8888/api/v3
  • Auth
    none declared

Path parameters

customerIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

as_ofstring date-time

RFC3339 formatted date-time string in UTC.

progressive_billing_overrideboolean

Override the customer's progressive billing setting for this collection. When enabled, eligible usage-based lines can be collected for a partial period.

Example request

{
  "as_of": "2023-01-01T01:01:01.001Z"
}

Response

The request has succeeded and a new resource has been created as a result.

Changes