> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quentli.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List invoices

> Returns invoices.



## OpenAPI

````yaml /openapi.yaml get /v1/invoices
openapi: 3.0.3
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
  - url: https://api.demo.quentli.com
    description: Demo API hostname served by staging
security:
  - organizationApiKey: []
tags:
  - name: Auth
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
paths:
  /v1/invoices:
    get:
      tags:
        - Invoices
      summary: List invoices
      description: Returns invoices.
      operationId: invoices_list
      parameters:
        - schema:
            type: string
            description: A `qs`-encoded `invoiceFilter` object.
            example: isPaid=false&dueDate[gte]=2025-01-01T00:00:00.000Z
          required: false
          description: A `qs`-encoded `invoiceFilter` object.
          name: filter
          in: query
        - schema:
            type: number
            minimum: 0
            default: 0
            description: Pagination offset.
            example: 0
          required: false
          description: Pagination offset.
          name: skip
          in: query
        - schema:
            type: number
            minimum: 1
            maximum: 100
            default: 20
            description: Pagination limit.
            example: 20
          required: false
          description: Pagination limit.
          name: take
          in: query
        - schema:
            type: string
            description: A `qs`-encoded `invoiceOrderBy` object.
            example: createdAt=desc
          required: false
          description: A `qs`-encoded `invoiceOrderBy` object.
          name: orderBy
          in: query
      responses:
        '200':
          description: Invoices list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetInvoicesResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    GetInvoicesResponse:
      type: array
      items:
        $ref: '#/components/schemas/FullInvoice'
      description: List of invoices returned by the query.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
    FullInvoice:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the invoice.
          example: inv_1234567890abcdefghij
        createdAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: Date and time when the invoice was created.
          example: '2025-01-10T12:00:00.000Z'
        updatedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: Date and time when the invoice was last updated.
          example: '2025-01-10T12:00:00.000Z'
        customerId:
          type: string
          description: Identifier of the customer this invoice belongs to.
          example: cus_1234567890abcdefghij
        subscriptionId:
          type: string
          nullable: true
          description: Identifier of the subscription that generated this invoice, if any.
          example: sub_1234567890abcdefghij
        collectionMethod:
          type: string
          enum:
            - AUTOMATIC
            - SEND_REMINDER
            - NONE
          description: 'How payment is collected: AUTOMATIC, SEND_REMINDER, or NONE.'
          example: SEND_REMINDER
        totalAmount:
          type: number
          description: Computed total amount of the invoice in minor units.
          example: 150000
        currency:
          type: string
          description: ISO 4217 currency code for the invoice.
          example: MXN
        dueDate:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: Date and time when payment is due.
          example: '2025-02-01T06:00:00.000Z'
        expireDate:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
            - nullable: true
          description: Date and time when the invoice expires.
          example: null
        organizationId:
          type: string
          description: Identifier of the organization that owns this invoice.
          example: org_1234567890abcdefghij
        isPaid:
          type: boolean
          description: Whether the invoice has been fully paid.
          example: false
        paidById:
          type: string
          nullable: true
          description: Identifier of the customer who paid the invoice.
          example: null
        amountPaid:
          type: number
          description: Total amount paid so far in minor units.
          example: 0
        beneficiaryId:
          type: string
          nullable: true
          description: Identifier of the beneficiary customer, if any.
          example: null
        allowOfftimePayment:
          type: boolean
          description: Whether payment is accepted outside the due window.
          example: false
        paidWithId:
          type: string
          nullable: true
          description: Identifier of the payment that settled the invoice.
          example: null
        canceledAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
            - nullable: true
          description: Date and time when the invoice was canceled.
          example: null
        canceledById:
          type: string
          nullable: true
          description: Identifier of the user who canceled the invoice.
          example: null
        items:
          type: array
          items:
            $ref: '#/components/schemas/FullInvoiceItem'
        meta:
          type: object
          nullable: true
          additionalProperties:
            type: string
          description: Flattened metadata map where each key maps to a string value.
          example:
            Ciclo Escolar: 2025-1
      required:
        - id
        - createdAt
        - updatedAt
        - customerId
        - subscriptionId
        - collectionMethod
        - totalAmount
        - currency
        - dueDate
        - expireDate
        - organizationId
        - isPaid
        - paidById
        - amountPaid
        - beneficiaryId
        - allowOfftimePayment
        - paidWithId
        - canceledAt
        - canceledById
        - items
      description: >-
        An invoice with fully expanded line items including concept and group
        details.
    FullInvoiceItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the invoice item.
          example: invi_1234567890abcdefghij
        description:
          type: string
          description: Human-readable description of the line item.
          example: Colegiatura Enero 2025
        conceptId:
          type: string
          nullable: true
          description: Identifier of the payment concept for this item.
          example: pc_1234567890abcdefghij
        quantity:
          type: number
          minimum: 1
          description: Quantity of units for this line item.
          example: 1
        concept:
          $ref: '#/components/schemas/InvoiceItemConcept'
      required:
        - id
        - description
        - conceptId
        - quantity
        - concept
      description: An invoice line item including its full concept details.
    InvoiceItemConcept:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the payment concept.
          example: pc_1234567890abcdefghij
        createdAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the concept was created.
          example: '2025-01-01T00:00:00.000Z'
        updatedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the concept was last updated.
          example: '2025-01-01T00:00:00.000Z'
        displayName:
          type: string
          description: Name of the product or service shown to customers.
          example: Colegiatura
        description:
          type: string
          nullable: true
          description: Optional longer description of the product or service.
          example: Colegiatura mensual de preparatoria
        amount:
          type: number
          description: Unit price in minor currency units (e.g. cents).
          example: 150000
        currency:
          type: string
          description: ISO 4217 currency code.
          example: MXN
        organizationId:
          type: string
          description: Identifier of the owning organization.
          example: org_1234567890abcdefghij
        active:
          type: boolean
          description: Whether this concept is currently available for use.
          example: true
        sku:
          type: string
          nullable: true
          description: Optional SKU for internal identification.
          example: COL-PREP-001
        recurrentDetailId:
          type: string
          nullable: true
          description: Identifier of the recurrence configuration, if applicable.
          example: null
        amountEditable:
          type: boolean
          description: Whether customers can customize the price.
          example: false
        quantityEditable:
          type: boolean
          description: Whether customers can customize the quantity.
          example: false
        archivedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
            - nullable: true
          description: Date and time when the concept was archived, if any.
          example: null
        oneOff:
          type: boolean
          description: Whether this concept is a one-time custom charge.
          example: false
        groupId:
          type: string
          nullable: true
          description: Identifier of the group this concept belongs to, if any.
          example: null
        recurrentDetail:
          type: object
          nullable: true
          properties:
            collectionInterval:
              type: string
              enum:
                - DAY
                - WEEK
                - FORTNIGHT
                - MONTH
                - YEAR
              description: Time interval unit for recurring charges.
              example: MONTH
            chargeEach:
              type: number
              description: Number of intervals between charges.
              example: 1
            toleranceDays:
              type: number
              nullable: true
              description: Grace days after the due date before the invoice expires.
              example: 5
          required:
            - collectionInterval
            - chargeEach
          description: Recurrence configuration when the concept is a recurring charge.
          example: null
        group:
          type: object
          nullable: true
          properties:
            id:
              type: string
              description: Unique identifier of the payment concept group.
              example: pcg_1234567890abcdefghij
            name:
              type: string
              description: Display name of the group.
              example: Colegiaturas
          required:
            - id
            - name
          description: Group this concept belongs to, if any.
      required:
        - id
        - createdAt
        - updatedAt
        - displayName
        - description
        - amount
        - currency
        - organizationId
        - active
        - sku
        - recurrentDetailId
        - amountEditable
        - quantityEditable
        - archivedAt
        - oneOff
        - groupId
        - group
      description: Payment concept associated with the invoice item, including its group.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'

````