v51

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2026-08-011534301009.2 KB
Billing

Create pending line items

Create a new pending line item (charge).

This call is used to create a new pending line item for the customer if required a new gathering invoice will be created.

A new invoice will be created if:

  • there is no invoice in gathering state
  • the currency of the line item doesn't match the currency of any invoices in gathering state
post/api/v1/billing/customers/{customerId}/invoices/pending-lines

Path parameters

customerIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

currencystring required

Three-letter ISO4217 currency code. Custom three-letter currency codes are also supported for convenience.

Response

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

isInvoiceNewboolean required

Whether the invoice was newly created.