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

# Создать заявку

> Создаёт заявку в формате Legacy. Передайте ключ в заголовке x-api-key и JSON в теле. Обязательны username, amount, exchangeRateId, cardNumber, requestId, cardHolder, externalBankName, iban и phoneNumber. email и other можно не передавать. amount — число, числовая строка тоже принимается. Заявка партнёра создаётся на владельца ключа. exchangeRateId — старое имя курса, например sber ≤10 000 ₽, или ключ rub:sber:0-10000. В ответе созданная заявка. Пустые реквизиты приходят строкой not provided, пустой other — пустой строкой. Даты — время Москвы, DD.MM.YYYY HH:mm:ss. status использует work вместо processing.



## OpenAPI

````yaml /openapi.json post /applications
openapi: 3.0.0
info:
  title: BitRangers API
  description: >-
    Партнёрское API BitRangers: заявки, баланс, курсы, Premium Exchanger и
    Legacy.
  version: '1.0'
servers:
  - url: https://api.bitrangers.space
security: []
paths:
  /applications:
    post:
      tags:
        - legacy
      summary: Создать заявку
      description: >-
        Создаёт заявку в формате Legacy. Передайте ключ в заголовке x-api-key и
        JSON в теле. Обязательны username, amount, exchangeRateId, cardNumber,
        requestId, cardHolder, externalBankName, iban и phoneNumber. email и
        other можно не передавать. amount — число, числовая строка тоже
        принимается. Заявка партнёра создаётся на владельца ключа.
        exchangeRateId — старое имя курса, например sber ≤10 000 ₽, или ключ
        rub:sber:0-10000. В ответе созданная заявка. Пустые реквизиты приходят
        строкой not provided, пустой other — пустой строкой. Даты — время
        Москвы, DD.MM.YYYY HH:mm:ss. status использует work вместо processing.
      operationId: createLegacyApplication
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LegacyCreateApplicationDto'
            examples:
              application:
                value:
                  username: partner1
                  amount: 10000
                  exchangeRateId: sber ≤10 000 ₽
                  cardNumber: '4276000000000000'
                  requestId: bid-1
                  cardHolder: IVAN IVANOV
                  externalBankName: Sber
                  iban: DE89370400440532013000
                  phoneNumber: '+79990000000'
                  email: user@example.com
                  other: comment
      responses:
        '200':
          description: Созданная заявка.
          content:
            application/json:
              schema:
                type: object
                properties:
                  username:
                    type: string
                  amount:
                    type: number
                    nullable: true
                  exchangeRateId:
                    type: string
                    nullable: true
                  currency:
                    type: number
                    nullable: true
                  totalAmount:
                    type: number
                    nullable: true
                  cardNumber:
                    type: string
                    nullable: true
                  requestId:
                    type: string
                    nullable: true
                  cardHolder:
                    type: string
                    nullable: true
                  externalBankName:
                    type: string
                    nullable: true
                  iban:
                    type: string
                    nullable: true
                  phoneNumber:
                    type: string
                    nullable: true
                  email:
                    type: string
                    nullable: true
                  other:
                    type: string
                  status:
                    type: string
                    enum:
                      - pending
                      - work
                      - closed
                      - problem
                  created_at:
                    type: string
                    nullable: true
                  closed_at:
                    type: string
                    nullable: true
              example:
                username: partner1
                amount: 10000
                exchangeRateId: sber ≤10 000 ₽
                currency: 90.1
                totalAmount: 110.99
                cardNumber: '4276000000000000'
                requestId: bid-1
                cardHolder: IVAN IVANOV
                externalBankName: Sber
                iban: DE89370400440532013000
                phoneNumber: '+79990000000'
                email: user@example.com
                other: comment
                status: pending
                created_at: 01.12.2026 12:00:00
                closed_at: null
      security:
        - apiKey: []
components:
  schemas:
    LegacyCreateApplicationDto:
      type: object
      properties:
        username:
          type: string
          example: partner1
          description: Обязательное поле. Заявка партнёра создаётся на владельца ключа.
        amount:
          type: number
          example: 10000
          description: Сумма числом. Допустима и числовая строка.
        exchangeRateId:
          type: string
          example: sber ≤10 000 ₽
          description: >-
            Старое имя курса, например sber ≤10 000 ₽, или ключ
            rub:sber:0-10000.
        cardNumber:
          type: string
          example: '4276000000000000'
        requestId:
          type: string
          example: bid-1
        cardHolder:
          type: string
          example: IVAN IVANOV
        externalBankName:
          type: string
          example: Sber
        iban:
          type: string
          example: DE89370400440532013000
        phoneNumber:
          type: string
          example: '+79990000000'
        email:
          type: string
          example: user@example.com
        other:
          type: string
          example: comment
      required:
        - username
        - amount
        - exchangeRateId
        - cardNumber
        - requestId
        - cardHolder
        - externalBankName
        - iban
        - phoneNumber
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Ключ партнёра. Передайте его в заголовке x-api-key.
      x-default: br_live_example

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.