invoices

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

  • inputInvoiceListInput

  • input.kindString

    issued (default) lists finalized invoices. upcoming lists the preview of each active subscription, then draft invoices.

  • input.sortByString

    date, amount or status. Pages follow Stripe order, newest first; sorting orders the returned page only.

  • input.sortOrderString

    asc or desc. Defaults to desc.

  • input.limitInt

    Maximum number of invoices to return, 1 to 100. Defaults to 20.

  • input.cursorString

    Opaque 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.