GET /api/v2/storefront/billing/pending-invoice-items
Returns invoice line items on your connected Stripe account that have not yet been attached to an invoice — charges accrued since the last invoice was issued. Cursor-paginated: pass the last item’s id as starting_after to fetch the next page. Use this to preview what will land on the next invoice.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
limit | integer | No | Query param. Maximum results, 1–100. Default 25 |
starting_after | string | No | Query param. Cursor — the id of the last item from the previous page |
targetCustomerId | number | No | Query param. Parent customers read a child account’s pending items |
Response
amount and unitAmount are in the currency’s smallest unit (cents for usd); unitAmount and customerId may be null. date, period.start, and period.end are Unix timestamps (seconds). This endpoint is cursor-paginated: when meta.hasMore is true, pass meta.cursor as starting_after; see Pagination.
Errors
400 VALIDATION_ERROR—limitoutside1–100, no Stripe account provisioned, or Stripe is not configured on the server.
Related
Billing tasks
All billing operations
List invoices
Issued invoices
Get balance transactions
Ledger entries
Billing overview
Stripe Connect concepts