---
title: "List recent invoices"
description: "Returns the account's 20 most recent Stripe invoices, newest first."
canonical: "https://www.cool.computer/docs/api-reference/billing/list-recent-invoices"
---
# List recent invoices

> Returns the account's 20 most recent Stripe invoices, newest first.

```http
GET https://api.cool.computer/api/billing/invoices
```

Returns the account's 20 most recent Stripe invoices, newest first. Accounts without a Stripe customer return an empty list.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Responses

- `200`: Recent invoices for the account.
  - `application/json` (object)
    - `invoices` (array of object, at most 20 items, required)
      - `id` (string, at least 1 characters, required)
      - `number` (string, at least 1 characters)
      - `status` ("draft" or "open" or "paid" or "uncollectible" or "void", required)
      - `currency` (string, pattern `^[a-z]{3}$`, required)
      - `total_cents` (integer, required)
      - `amount_due_cents` (integer, required)
      - `amount_paid_cents` (integer, required)
      - `created_at` (string, date-time, required)
      - `hosted_invoice_url` (string, uri, pattern `^https://`)
      - `invoice_pdf_url` (string, uri, pattern `^https://`)
    - `has_more` (boolean, required): True when older invoices are available through the billing portal.
- `401`: Unauthorized.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/billing/invoices" \
  -H "authorization: Bearer $TOKEN"
```
