---
title: "Queries invoices with filtering, sorting, and pagination."
method: GET
path: "/invoices"
tags: ["Invoice"]
---

# Queries invoices with filtering, sorting, and pagination.

`GET /invoices`

## Query parameters

- `page` integer
- `page_size` integer
- `sort` string[]
- `status` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `organization_id` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `billing_period_id` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `created_at` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `logic` 'and' | 'or'

## Response `200`

OK

- QueryInvoicesEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` QueryInvoicesEndpointOutput[], required
    - `id` string, required — The invoice ID.
    - `billingPeriodId` string, required — The billing period this invoice belongs to.
    - `billingPeriodStart` string, date-time, required — The start date of the billing period.
    - `billingPeriodEnd` string, date-time, required — The end date of the billing period.
    - `stripeInvoiceId` string, nullable — The Stripe invoice ID.
    - `status` 'Generating' | 'Draft' | 'Open' | 'Paid' | 'Void' | 'Uncollectible' | 'Failed', required
    - `amountDue` integer, required — The total amount due in cents.
    - `currency` string, nullable — The invoice currency.
    - `organizationId` string, required — The organization the invoice belongs to.
    - `createdAt` string, date-time, required — When the invoice was created.
    - `finalizedAt` string, date-time, nullable — When the invoice was finalized.
    - `paidAt` string, date-time, nullable — When the invoice was paid.
    - `voidedAt` string, date-time, nullable — When the invoice was voided.
  - `totalPages` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/d779de93a5ee/schema)
