---
title: "List subscription invoices"
method: GET
path: "/api/v3/teams/{team_id}/subscriptions/{subscription_id}/invoices"
tags: ["Billing"]
---

# List subscription invoices

`GET /api/v3/teams/{team_id}/subscriptions/{subscription_id}/invoices`

## Request

- Base URL: `https://codemagic.io`
- URL: `https://codemagic.io/api/v3/teams/{team_id}/subscriptions/{subscription_id}/invoices`
- Auth: API key in header `x-auth-token`
- TypeScript: <https://skmtc.dev/codemagic/apis/codemagic-api/docs/api/v3/teams/:team_id/subscriptions/:subscription_id/invoices/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `subscription_id` string, required
- `team_id` string, required

## Query parameters

- `cursor` string, nullable: A unique identifier after which the results should be returned.
- `page_size` integer: The maximum number of results per page.

## Response `200`

Request fulfilled, document follows

- TeamSubscriptionsSchemasInvoiceSchemaCursorPagination
  - `data` TeamSubscriptionsSchemasInvoiceSchema[], required
    - `provider_id` string, required
    - `status` 'draft' | 'open' | 'paid' | 'uncollectible' | 'void', required: The stage an invoice is at: being prepared, awaiting payment, paid, written off as uncollectible, or voided.
    - `total` integer, required
    - `created_at` string, date-time, required
    - `billing_reason` string, nullable, required
    - `url` string, nullable, required
  - `page_size` integer, required
  - `cursor` string, nullable, required

## Other responses

- `400`: The request could not be validated
- `401`: Authentication is missing or invalid
- `403`: The caller lacks the required permission
- `404`: The requested resource does not exist
- `429`: The rate limit has been exceeded

---

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