> ## 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/{invoiceId}
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/{invoiceId}:
    get:
      tags:
        - Invoices
      summary: Получить инвойс
      description: >-
        Возвращает полную информацию об инвойсе, включая адреса для оплаты и
        данные о платеже.
      operationId: getInvoice
      parameters:
        - name: invoiceId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Данные инвойса
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetInvoiceResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    GetInvoiceResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            invoiceId:
              type: string
            status:
              type: string
              enum:
                - PENDING
                - PAID
                - EXPIRED
                - CANCELLED
            amount:
              type: number
            currency:
              type: string
            orderId:
              type: string
              nullable: true
            description:
              type: string
              nullable: true
            metadata:
              type: string
              nullable: true
            addresses:
              type: array
              items:
                $ref: '#/components/schemas/PaymentAddress'
            payment:
              $ref: '#/components/schemas/InvoicePayment'
              nullable: true
            expiresAt:
              type: string
              format: date-time
            createdAt:
              type: string
              format: date-time
    PaymentAddress:
      type: object
      properties:
        chain:
          type: string
          example: ethereum
        address:
          type: string
          example: 0x...
        expectedAmount:
          type: string
          description: Ожидаемая сумма в минимальных единицах
        isToken:
          type: boolean
        tokenSymbol:
          type: string
          nullable: true
          example: USDT
    InvoicePayment:
      type: object
      properties:
        chain:
          type: string
          example: tron:USDT
        amount:
          type: string
        txHash:
          type: string
          nullable: true
        paidAt:
          type: string
          format: date-time
  responses:
    Unauthorized:
      description: Не авторизован
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Invalid API key
    NotFound:
      description: Не найдено
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Invoice not found
  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 ключа)

````