> ## 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-uk.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 сервер
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: Включити комісію в суму

````