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

# Submit a draft batch for processing

> Re-checks affordability against the live wallet balance, gates 2FA when the summed USD-equivalent >= $10k (dashboard path; api-key exempt), and transitions the batch DRAFT → QUEUED for the fan-out processor.



## OpenAPI

````yaml /openapi.json post /api/v1/business/payouts/batches/{id}/submit
openapi: 3.0.0
info:
  title: Axra Public API
  description: Merchant and third-party developer API surface
  version: '2026-04-15'
  contact: {}
servers:
  - url: http://localhost:3001
    description: Local development
  - url: https://staging-api.useaxra.com
    description: Staging
  - url: https://api.useaxra.com
    description: Production
security: []
tags: []
paths:
  /api/v1/business/payouts/batches/{id}/submit:
    post:
      tags:
        - Business Payout Batches
      summary: Submit a draft batch for processing
      description: >-
        Re-checks affordability against the live wallet balance, gates 2FA when
        the summed USD-equivalent >= $10k (dashboard path; api-key exempt), and
        transitions the batch DRAFT → QUEUED for the fan-out processor.
      operationId: BatchPayoutsController_submit
      parameters:
        - name: X-Axra-Business-Id
          in: header
          description: Active business context
          required: false
          schema:
            type: string
        - name: x-api-key
          in: header
          description: Merchant API key (alternative to dashboard JWT)
          required: false
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitBatchDto'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/BatchResponseDto'
                required:
                  - success
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '422':
          description: Unprocessable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
      security:
        - bearer: []
components:
  schemas:
    SubmitBatchDto:
      type: object
      properties:
        twoFactorCode:
          type: string
          description: >-
            Fresh TOTP code, required (dashboard path) when the summed USD-equiv
            >= $10k.
    BatchResponseDto:
      type: object
      properties:
        id:
          type: string
        businessId:
          type: string
        source:
          type: string
          enum:
            - MANUAL
            - CSV
            - API
            - SCHEDULE
            - CHANNEL
        status:
          type: string
          enum:
            - DRAFT
            - QUEUED
            - PROCESSING
            - COMPLETED
            - PARTIALLY_COMPLETED
            - FAILED
            - CANCELLED
        totalItems:
          type: number
          description: Number of line items in the batch.
        totalsByCurrency:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/BatchCurrencyTotalDto'
          description: Summed principal / fee / totalDebit, keyed by wallet currency.
        twoFaVerifiedAt:
          type: object
          nullable: true
          description: When the whole-batch 2FA was satisfied.
        createdAt:
          type: string
        updatedAt:
          type: string
        completedAt:
          type: object
          nullable: true
      required:
        - id
        - businessId
        - source
        - status
        - totalItems
        - totalsByCurrency
        - createdAt
        - updatedAt
    HttpErrorEnvelopeDto:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          $ref: '#/components/schemas/HttpErrorBodyDto'
      required:
        - success
        - error
    BatchCurrencyTotalDto:
      type: object
      properties:
        principal:
          type: string
          description: Summed principal (delivered amount) in this currency.
        fee:
          type: string
          description: Summed total fee in this currency.
        totalDebit:
          type: string
          description: Summed total debit (principal + fee) in this currency.
      required:
        - principal
        - fee
        - totalDebit
    HttpErrorBodyDto:
      type: object
      properties:
        code:
          type: string
          example: VALIDATION_ERROR
        message:
          type: string
          example: email must be an email
        statusCode:
          type: number
          example: 400
        errors:
          type: object
          description: >-
            Optional per-field validation messages (when present on the source
            exception)
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - code
        - message
        - statusCode
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````