# List invoices

`GET /v1/orgs/{org_id}/billing/invoices`

Requires role owner or higher.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `owner` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_id` | path | string | yes |  |

## Responses

### 200

The organization's last 24 invoices, newest first.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "The organization's last 24 invoices, newest first.",
  "properties": {
    "data": {
      "items": {
        "additionalProperties": false,
        "description": "An invoice issued by Stripe.",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "hosted_invoice_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "invoice_pdf": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "number",
          "created_at",
          "total",
          "currency",
          "status",
          "hosted_invoice_url",
          "invoice_pdf"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "data"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 403

forbidden: the action requires the owner role.

Problem type: [forbidden](https://docs.dlogify.com/errors/forbidden.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 409

no-subscription: the organization has no subscription.

Problem type: [no-subscription](https://docs.dlogify.com/errors/no-subscription.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/orgs/{org_id}/billing/invoices" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/billing/listInvoices
