List the issued invoices of an account, or with kind upcoming the previews and drafts of what it will be charged next; returns one page of invoices with amounts in minor currency units. Requires account.billing.read.
Arguments
inputInvoiceListInputinput.kindStringissued (default) lists finalized invoices. upcoming lists the preview of each active subscription, then draft invoices.
input.sortByStringdate, amount or status. Pages follow Stripe order, newest first; sorting orders the returned page only.
input.sortOrderStringasc or desc. Defaults to desc.
input.limitIntMaximum number of invoices to return, 1 to 100. Defaults to 20.
input.cursorStringOpaque cursor pointing at the next page. Omit it to read the first page.
Responses
query Invoices { invoices { data { id number status description amountDue amountPaid amountTotal appliedBalanceAmount prorationAmount recurringAmount currency issuedAt hostedInvoiceUrl pdfUrl } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } }}{ "data": { "invoices": { "data": [ { "id": "string", "number": "string", "status": "string", "description": "string", "amountDue": 0, "amountPaid": 0, "amountTotal": 0, "appliedBalanceAmount": 0, "prorationAmount": 0, "recurringAmount": 0, "currency": "string", "issuedAt": "string", "hostedInvoiceUrl": "https://example.com", "pdfUrl": "https://example.com" } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" } } }}The InvoicePage! in data.invoices.