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

# Получение списка транзакций в очереди

> Возвращает список транзакций в очереди на вывод



## OpenAPI

````yaml /APIs/crypto-cash-openapi.json post /merchant/api/v1/queues
openapi: 3.1.0
info:
  title: CryptoCash Merchant API
  description: >-
    API для работы с криптовалютными платежами. Все запросы требуют
    аутентификации через подпись. Тело запроса содержит: data (JSON-объект в
    base64) и signature (SHA256(SECRET_KEY + data) в base64).
  version: 1.0.0
servers:
  - url: https://api.crypto-cash.world
    description: Production server
security: []
tags:
  - name: Balance
    description: Операции с балансом
  - name: Actions
    description: 'Действия: покупка, продажа, возврат'
  - name: Transactions
    description: Работа с транзакциями
  - name: Reference
    description: Справочная информация
externalDocs:
  description: Внешние курсы валют
  url: https://rates.crypto-cash.world/api/v1/market/rates/export/json
paths:
  /merchant/api/v1/queues:
    post:
      tags:
        - Transactions
      summary: Получение списка транзакций в очереди
      description: Возвращает список транзакций в очереди на вывод
      operationId: getWithdrawQueue
      requestBody:
        required: true
        description: |-
          Параметры данных:
          - **publicKey** (обязательный) - Публичный ключ мерчанта
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignedRequest'
        x-data-schema:
          $ref: '#/components/schemas/BalanceRequest'
      responses:
        '200':
          description: Успешный ответ
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 200
                  data:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/QueueItem'
        '400':
          description: Ошибка запроса
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SignedRequest:
      type: object
      required:
        - data
        - signature
      properties:
        data:
          type: string
          description: JSON-объект с параметрами запроса, закодированный в base64
        signature:
          type: string
          description: Подпись SHA256(SECRET_KEY + data), закодированная в base64
    QueueItem:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Идентификатор записи в очереди
        status:
          type: string
          enum:
            - COMPLETED
            - PENDING
            - FAILED
          description: Статус записи
        scheduledAt:
          type: string
          format: date-time
          description: Запланированное время
        createdAt:
          type: string
          format: date-time
          description: Время создания
        retryCount:
          type: integer
          description: Количество попыток
        errorMessage:
          type: string
          nullable: true
          description: Сообщение об ошибке
        withdrawData:
          $ref: '#/components/schemas/WithdrawData'
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: integer
          description: Список кодов ошибок
      example:
        errors:
          - 1000
    WithdrawData:
      type: object
      properties:
        amount:
          type: string
          description: Сумма вывода
        userId:
          type: string
          format: uuid
          description: ID пользователя
        address:
          type: string
          description: Адрес кошелька
        network:
          type: string
          description: Сеть (TRC20, ERC20 и т.д.)
        currency:
          type: string
          description: Валюта
        externalId:
          type: string
          description: Внешний ID
        includeFeeInAmount:
          type: boolean
          description: Включить комиссию в сумму

````