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

# Список инвойсов

> Возвращает список инвойсов с пагинацией и фильтрами.



## OpenAPI

````yaml GET /api/v1/invoices
openapi: 3.1.0
info:
  title: Tranzor API
  description: >-
    API для приёма криптовалютных платежей и ресселинга eSIM. Создавайте
    инвойсы, продавайте eSIM, отслеживайте статусы.
  version: 1.0.0
  contact:
    name: Tranzor Support
    url: https://tranzor.io
servers:
  - url: https://sand.tranzor.io
    description: Sandbox
security:
  - BearerAuth: []
  - HmacAuth: []
externalDocs:
  description: Полная документация
  url: https://docs.tranzor.io/
paths:
  /api/v1/invoices:
    get:
      tags:
        - Invoices
      summary: Список инвойсов
      description: Возвращает список инвойсов с пагинацией и фильтрами.
      operationId: listInvoices
      parameters:
        - name: status
          in: query
          schema:
            type: string
            enum:
              - PENDING
              - PAID
              - EXPIRED
              - CANCELLED
          description: Фильтр по статусу
        - name: orderId
          in: query
          schema:
            type: string
          description: Поиск по вашему orderId
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
          description: Количество записей
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
          description: Смещение
      responses:
        '200':
          description: Список инвойсов
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListInvoicesResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ListInvoicesResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            invoices:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  amount:
                    type: number
                  currency:
                    type: string
                  status:
                    type: string
                    enum:
                      - PENDING
                      - PAID
                      - EXPIRED
                      - CANCELLED
                  orderId:
                    type: string
                    nullable: true
                  paidChain:
                    type: string
                    nullable: true
                  paidAt:
                    type: string
                    format: date-time
                    nullable: true
                  expiresAt:
                    type: string
                    format: date-time
                  createdAt:
                    type: string
                    format: date-time
            pagination:
              type: object
              properties:
                total:
                  type: integer
                limit:
                  type: integer
                offset:
                  type: integer
  responses:
    Unauthorized:
      description: Не авторизован
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Invalid API key
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API ключ в формате `trz_...`
    HmacAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |-
        HMAC аутентификация. Требуются заголовки:
        - `X-API-Key` — ваш API ключ
        - `X-Timestamp` — текущий unix timestamp (секунды, ±5 мин)
        - `X-Signature` — HMAC-SHA256 подпись

        Строка для подписи: `{timestamp}{METHOD}{path}{body}`
        Ключ подписи: `Secret Key` (выдаётся при создании API ключа)

````