> ## 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.

# Update the payout schedule

> Choose when automatic payouts go out. **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 redirect your payouts.



## OpenAPI

````yaml /openapi.json post /payouts/schedule
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/schedule:
    post:
      tags:
        - Payouts
      summary: Update the payout schedule
      description: >-
        Choose when automatic payouts go out. **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 redirect your payouts.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - schedule
                - pin
              properties:
                schedule:
                  type: string
                  enum:
                    - manual
                    - daily
                    - weekly
                dayOfWeek:
                  type: integer
                  minimum: 0
                  maximum: 6
                pin:
                  type: string
                  pattern: ^[0-9]{6}$
                  description: The owner's 6-digit LuminPay PIN.
      responses:
        '200':
          description: The saved schedule.
        '400':
          description: Invalid request.
        '401':
          description: Missing, invalid, expired or restricted API key or session.
        '403':
          description: >-
            An API key was used, the signed-in person is not an owner or admin,
            or the session has not completed both sign-in steps
            (`STRONGER_SIGN_IN_REQUIRED`).
      security:
        - apiKey: []
components:
  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.