> ## 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 tax invoices

> Returns tax invoices for the organization.



## OpenAPI

````yaml /openapi.yaml get /v1/tax-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/tax-invoices:
    get:
      tags:
        - Tax Invoices
      summary: List tax invoices
      description: Returns tax invoices for the organization.
      operationId: tax_invoices_list
      parameters:
        - schema:
            type: string
            description: A `qs`-encoded `taxInvoiceFilter` object.
            example: status=VALID&createdAt[gte]=2025-01-01T00:00:00.000Z
          required: false
          description: A `qs`-encoded `taxInvoiceFilter` 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 `taxInvoiceOrderBy` object.
            example: createdAt=desc
          required: false
          description: A `qs`-encoded `taxInvoiceOrderBy` object.
          name: orderBy
          in: query
      responses:
        '200':
          description: Tax invoices list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTaxInvoicesResponse'
        '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:
    GetTaxInvoicesResponse:
      type: array
      items:
        $ref: '#/components/schemas/TaxInvoice'
      description: List of tax 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.
    TaxInvoice:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the tax invoice.
          example: txi_1234567890abcdefghij
        createdAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the tax invoice was created.
        updatedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the tax invoice was last updated.
        issueDate:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
            - nullable: true
          description: Date when the tax invoice was issued.
          example: null
        invoiceId:
          type: string
          nullable: true
          description: Related invoice identifier, if any.
          example: null
        paymentId:
          type: string
          nullable: true
          description: Related payment identifier, if any.
          example: null
        uuid:
          type: string
          nullable: true
          description: SAT UUID assigned to the tax invoice.
          example: null
        verificationUrl:
          type: string
          nullable: true
          description: SAT verification URL.
          example: null
        folio:
          type: string
          nullable: true
          description: Tax invoice folio.
          example: null
        status:
          type: string
          enum:
            - VALID
            - CANCELED
            - PENDING
            - DRAFT
            - PENDING_CANCELLATION
            - FAILED
          description: Current tax invoice status.
          example: VALID
        failureReason:
          type: string
          nullable: true
          enum:
            - UNKNOWN
            - RFC_DOMICILE_MISMATCH
            - RFC_LEGAL_NAME_MISMATCH
            - CFDI_USAGE_MISMATCH
            - ISSUE_DATE_OUT_OF_RANGE
            - null
          description: Normalized issuance failure reason, if any.
          example: null
        cancellationStatus:
          type: string
          nullable: true
          description: SAT cancellation status.
          example: none
        cancellationMotive:
          type: string
          nullable: true
          description: SAT cancellation motive code.
          example: null
        cancelRequestedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
            - nullable: true
          description: Date and time when cancellation was requested.
          example: null
        canceledAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
            - nullable: true
          description: Date and time when cancellation completed.
          example: null
        canceledById:
          type: string
          nullable: true
          description: User that requested cancellation.
          example: null
        cancellationSubstitution:
          type: string
          nullable: true
          description: Substitution UUID used for cancellation motive 01.
          example: null
        satType:
          type: string
          nullable: true
          description: SAT invoice type code.
          example: I
        customerId:
          type: string
          description: Customer identifier.
          example: cus_1234567890abcdefghij
        type:
          type: string
          enum:
            - TAX_RECEIPT
            - TAX_INVOICE_PPD
            - TAX_INVOICE_PUE
          description: Quentli tax invoice type.
          example: TAX_INVOICE_PUE
        paymentForm:
          type: string
          nullable: true
          description: SAT payment form.
          example: '03'
        paymentMethod:
          type: string
          nullable: true
          description: SAT payment method.
          example: PUE
        usage:
          type: string
          nullable: true
          description: CFDI usage code.
          example: G03
        currency:
          type: string
          description: ISO 4217 currency code.
          example: MXN
        exchangeRate:
          type: number
          nullable: true
          description: Exchange rate used for non-MXN invoices.
          example: null
        totalAmount:
          type: number
          description: Tax invoice total amount in minor units.
          example: 150000
        pdfId:
          type: string
          nullable: true
          description: PDF file identifier, if available.
          example: null
        xmlId:
          type: string
          nullable: true
          description: XML file identifier, if available.
          example: null
        createdByUserId:
          type: string
          nullable: true
          description: User who created this tax invoice.
          example: null
        createdByCustomerId:
          type: string
          nullable: true
          description: Customer who created this tax invoice.
          example: null
        organizationId:
          type: string
          description: Owning organization identifier.
          example: org_1234567890abcdefghij
        substituteTaxInvoiceId:
          type: string
          nullable: true
          description: Tax invoice that substituted this one, if any.
          example: null
      required:
        - id
        - createdAt
        - updatedAt
        - issueDate
        - invoiceId
        - paymentId
        - uuid
        - verificationUrl
        - folio
        - status
        - failureReason
        - cancellationStatus
        - cancellationMotive
        - cancelRequestedAt
        - canceledAt
        - canceledById
        - cancellationSubstitution
        - satType
        - customerId
        - type
        - paymentForm
        - paymentMethod
        - usage
        - currency
        - totalAmount
        - organizationId
      description: Mexican fiscal invoice generated for an invoice or payment.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'

````