GET /api/v2/buyer/billing/pending-invoice-items
Lists the pending line items that have accrued and will appear on the next consolidated invoice issued to the authenticated buyer customer. Cursor-paginated.
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
limit | query | integer | No | Maximum results, 1–100 (default 100) |
starting_after | query | string | No | Cursor — the id of the last item from the previous page |
Response
| Field | Type | Notes |
|---|---|---|
items | array | Pending line items |
items[].id | string | Item ID — pass as starting_after to paginate |
items[].description | string | null | Line description |
items[].currency | string | ISO currency code |
items[].amount | integer | Total minor-unit amount for the line (e.g. cents) |
items[].quantity | integer | Quantity billed |
items[].unitAmount | integer | null | Per-unit minor-unit amount |
items[].date | integer | Unix epoch seconds |
items[].period | object | { start, end }, Unix epoch seconds |
items[].proration | boolean | Whether the line is a proration adjustment |
items[].customerId | string | null | Customer the line is attributed to |
hasMore | boolean | Whether more pages exist |
cursor | string | null | Cursor for the next page, or null |
Errors
400 VALIDATION_ERROR—limitout of range.401 UNAUTHORIZED— missing or invalid bearer token.
Related
Billing tasks
All billing operations
List invoices
Issued consolidated invoices
Billing overview
Amounts, timestamps, pagination