---
title: "List invoices (newest first)"
method: GET
path: "/invoices"
tags: ["Invoices"]
---

# List invoices (newest first)

`GET /invoices`

## Request

- Base URL: `https://shieldz.cash/api/v1`
- URL: `https://shieldz.cash/api/v1/invoices`
- Auth: HTTP bearer

## Query parameters

- `limit` integer
- `starting_after` string
- `status` 'pending' | 'paid' | 'expired' | 'failed'

## Response `200`

OK

- object
  - `object` 'list'
  - `data` Invoice[]
    - `id` string
    - `object` 'invoice'
    - `amount_usd_cents` integer
    - `memo` string, nullable
    - `settlement` Settlement
      - `chain` string
      - `asset` string
      - `address` string
    - `status` 'pending' | 'paid' | 'expired' | 'failed'
    - `pay_url` string, uri
    - `expires_at` integer: Unix milliseconds.
    - `paid_at` integer, nullable
    - `mode` 'live' | 'test'
    - `metadata` unknown
    - `line_items` LineItem[], nullable
      - `price` string, nullable: The catalog price (price_…); null for inline price_data.
      - `product` string, nullable: The catalog product (prod_…); null for inline price_data.
      - `name` string: Product name at the time of purchase.
      - `quantity` integer
      - `unit_amount_usd_cents` integer: Price per unit charged, in USD cents.
      - `amount_usd_cents` integer: unit_amount_usd_cents × quantity.
    - `payment_link` string, nullable: The payment link this invoice came from.
    - `shipping` object, nullable: Shipping address from the payment link page. Only returned to the shop (its API key or dashboard).
      - `name` string
      - `line1` string
      - `line2` string
      - `city` string
      - `state` string
      - `postal_code` string
      - `country` string
    - `client_reference_id` string, nullable
  - `has_more` boolean

---

[API](https://skmtc.dev/shieldz/apis/shieldz-api.md) · [All operations](https://skmtc.dev/shieldz/apis/shieldz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shieldz/apis/shieldz-api/revisions/0d7156bee439?raw)
