Create invoice line item group
Creates a line item group on a one-off invoice. The group is created empty; group amounts are derived from child line items. Empty groups are allowed.
Authorizations
API Key Authentication.
Path Parameters
The unique identifier of the invoice to add the line item group to.
Body
Schema for creating a line item group container for an existing one-off invoice. The group is created empty; line items are added via the line-items endpoint. Empty groups are allowed.
A unique idempotency key for this group, scoped to the invoice.
1^[a-zA-Z0-9_-]+$The product to associate with this group.
Start of the period covered by the group.
End of the period covered by the group.
Optional group name; defaults to the product name when null.
Response
Schema representing a line item group: a container that gathers the line items generated from one plan instance (or created as a group on one-off invoices). Monetary amounts are integers in cents.
The unique identifier of the line item group in our system.
A unique key that identifies the group within the invoice. Supplied by the caller for one-off groups; generated by the billing engine otherwise.
The unique identifier of the customer whose consumption this group bills.
The unique identifier of the product this group belongs to.
The unique identifier of the plan whose instance generated this group. Null for groups not generated from a plan (e.g. on one-off invoices).
The unique identifier of the plan instance that generated this group. Null for groups not generated from a plan instance.
Display name of the group as it appears on the invoice, typically the plan or product name.
Start of the period covered by the group.
End of the period covered by the group.
Sum of the group's line item subtotals before adjustments, in cents.
Net amount of the adjustments applied to the group's line items (discounts and allocation offsets), in cents. Negative when adjustments reduce the amount owed.
Final group amount, in cents: subtotalAmount + adjustmentAmount.
The discount portion of adjustmentAmount, in cents (sum of monetary discount adjustments only). Negative when discounts were applied.
The line items contained in this group.