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

# Issue Bulk



## OpenAPI

````yaml /api-reference/proxy.json post /v1/proxy/issue:bulk
openapi: 3.1.0
info:
  title: Lumi Proxy API
  version: 1.1.0
  description: >-
    Публичный REST API прокси Lumi. Ключ привязан к одному аккаунту и делает то
    же, что клиент делает в боте.


    Авторизация: `Authorization: Bearer <ключ>`. Денежные запросы дополнительно
    требуют заголовок `Idempotency-Key`.
servers:
  - url: https://api.lumiweb.cc/proxy
    description: production
security:
  - bearerAuth: []
paths:
  /v1/proxy/issue:bulk:
    post:
      tags:
        - bulk
      summary: Issue Bulk
      operationId: issue_bulk
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkBuyStaticRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchEnvelope'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BulkBuyStaticRequest:
      properties:
        items:
          items:
            $ref: '#/components/schemas/BuyStaticRequest'
          type: array
          maxItems: 500
          minItems: 1
          title: Items
      type: object
      required:
        - items
      title: BulkBuyStaticRequest
    BatchEnvelope:
      properties:
        total:
          type: integer
          title: Total
        ok:
          type: integer
          title: Ok
          default: 0
        failed:
          type: integer
          title: Failed
          default: 0
        pending:
          type: integer
          title: Pending
          default: 0
        skipped:
          type: integer
          title: Skipped
          default: 0
        items:
          items:
            $ref: '#/components/schemas/BatchItemResult'
          type: array
          title: Items
      type: object
      required:
        - total
      title: BatchEnvelope
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BuyStaticRequest:
      properties:
        category:
          type: string
          maxLength: 32
          title: Category
          description: isp | datacenter
        country_name:
          type: string
          maxLength: 64
          minLength: 1
          title: Country Name
        quantity:
          type: integer
          maximum: 500
          minimum: 1
          title: Quantity
        auto_renew:
          type: boolean
          title: Auto Renew
          default: false
      type: object
      required:
        - category
        - country_name
        - quantity
      title: BuyStaticRequest
    BatchItemResult:
      properties:
        ref:
          type: string
          title: Ref
          description: client-supplied key or index echoed back
        status:
          type: string
          enum:
            - ok
            - failed
            - skipped
            - pending
          title: Status
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result
        error:
          anyOf:
            - $ref: '#/components/schemas/ErrorBody'
            - type: 'null'
      type: object
      required:
        - ref
        - status
      title: BatchItemResult
      description: |-
        One item's outcome in a bulk operation. Money bulk ops are NOT
        atomic --- each item is an independent locked transaction, so item N
        failing never rolls back items < N.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
          description: stable machine-readable error code
        message:
          type: string
          title: Message
          description: human-readable detail
      type: object
      required:
        - code
        - message
      title: ErrorBody
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ключ вида lumi_proxy_… Выдаётся оператором.

````