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

# Request an instant payout

> Sends naira from your balance to your verified bank account. Omit `amountNgn` to pay out everything available. Only one payout can be in progress at a time. Large or unusual payouts can need a second approval or the owner's selfie (`403 SELFIE_REQUIRED`); an instant payout carries a fee (see `GET /payouts/rules`). Payouts go only to a bank account in your own verified name. **Dashboard only:** this needs an owner or admin signed in to the dashboard with their LuminPay PIN, and the PIN sent as `pin`. An API key is refused with `403`, so a leaked key cannot move money.



## OpenAPI

````yaml /openapi.json post /payouts
openapi: 3.0.3
info:
  title: LuminPay API
  version: 1.0.0
  description: >-
    Accept stablecoin and Bitcoin payments and settle in naira. Use a lmp_test_
    key with the Sandbox server and a lmp_live_ key with the Live server.
servers:
  - url: https://sandbox-api.luminpay.co
    description: Sandbox (testnet)
  - url: https://api.luminpay.co
    description: Live
security:
  - apiKey: []
tags:
  - name: Charges
  - name: Webhooks
  - name: Payment links
  - name: Invoices
  - name: Payouts
  - name: Refunds
paths:
  /payouts:
    post:
      tags:
        - Payouts
      summary: Request an instant payout
      description: >-
        Sends naira from your balance to your verified bank account. Omit
        `amountNgn` to pay out everything available. Only one payout can be in
        progress at a time. Large or unusual payouts can need a second approval
        or the owner's selfie (`403 SELFIE_REQUIRED`); an instant payout carries
        a fee (see `GET /payouts/rules`). Payouts go only to a bank account in
        your own verified name. **Dashboard only:** this needs an owner or admin
        signed in to the dashboard with their LuminPay PIN, and the PIN sent as
        `pin`. An API key is refused with `403`, so a leaked key cannot move
        money.
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amountNgn:
                  type: integer
                  minimum: 1
                  description: Whole naira. Omit to pay out the whole available balance.
                pin:
                  type: string
                  pattern: ^[0-9]{6}$
                  description: >-
                    The owner's 6-digit LuminPay PIN. Asked again for every
                    payout.
              required:
                - pin
      responses:
        '201':
          description: The payout, now pending or awaiting approval.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Payout'
        '400':
          description: Invalid request.
        '401':
          description: Missing, invalid, expired or restricted API key or session.
        '403':
          description: >-
            A payout is already in progress, the balance or limits do not allow
            it, or the owner's selfie is needed (`SELFIE_REQUIRED`).
        '409':
          $ref: '#/components/responses/IdempotencyConflict'
        '422':
          $ref: '#/components/responses/IdempotencyMismatch'
      security:
        - apiKey: []
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        A unique value for this request, 8 to 64 characters (letters, numbers,
        dots, dashes, underscores, colons). Send the same value when retrying:
        the first answer is returned with the header `Idempotent-Replayed: true`
        and nothing is created twice. Kept for 24 hours. The same key with a
        different request returns 422; the same key while the first request is
        still running returns 409.
      schema:
        type: string
        minLength: 8
        maxLength: 64
        pattern: ^[A-Za-z0-9._:-]{8,64}$
      example: order_1001_attempt_1
  schemas:
    Payout:
      type: object
      properties:
        id:
          type: string
          format: uuid
        reference:
          type: string
          description: LuminPay's unique reference for the payout.
        status:
          type: string
          enum:
            - awaiting_approval
            - pending
            - processing
            - completed
            - failed
            - reversed
        destAmountNgn:
          type: string
          description: Naira sent to your bank account, for example "49,500.00".
        feeNgn:
          type: string
          description: >-
            Fee charged for the payout (an instant payout has a fee; the
            automatic payout is free).
        payoutType:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
  responses:
    IdempotencyConflict:
      description: >-
        A request with this Idempotency-Key is still being processed. Wait a
        moment and retry.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: integer
                example: 409
              message:
                type: string
              error:
                type: string
                example: Conflict
    IdempotencyMismatch:
      description: >-
        This Idempotency-Key was already used for a different request. Use a new
        key for a different request.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: integer
                example: 422
              message:
                type: string
              error:
                type: string
                example: Unprocessable Entity
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: lmp_test_... or lmp_live_...
      description: >-
        Your secret API key from Developers → API keys. A key can be limited in
        the dashboard: read only (GET requests only), allowed IP addresses, and
        an expiry date. A request outside a limit is refused with 401 or 403 and
        a message saying which limit.

````

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