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

# Save a bank account

> Saves a payout destination. Requires the 6-digit code emailed by `POST /v1/payouts/accounts/otp`. The account name is resolved and verified before saving; the first account saved becomes the default. Requires the `invoice:write` scope.



## OpenAPI

````yaml /openapi.json post /v1/payouts/accounts
openapi: 3.1.0
info:
  title: Duro API
  version: 1.0.0
  description: >-
    Recovery-first subscription billing. Authenticate with a secret key
    (sk_test_ / sk_live_) as a bearer token. Amounts are in integer minor units
    (kobo).
servers:
  - url: https://api.useduro.com
    description: >-
      One base URL for both modes. The key prefix selects the mode: sk_test_… is
      test, sk_live_… is live. You never switch hosts or pass a mode parameter.
security:
  - bearerAuth: []
tags:
  - name: Plans
  - name: Promo Codes
  - name: Payment Links
  - name: Customers
  - name: Transactions
  - name: Subscriptions
  - name: Invoices
  - name: Recovery
  - name: Settings
  - name: Analytics
  - name: Checkout
  - name: Events
  - name: Merchant Balance
  - name: Payouts
  - name: VAS
  - name: OAuth
paths:
  /v1/payouts/accounts:
    post:
      tags:
        - Payouts
      summary: Save a bank account
      description: >-
        Saves a payout destination. Requires the 6-digit code emailed by `POST
        /v1/payouts/accounts/otp`. The account name is resolved and verified
        before saving; the first account saved becomes the default. Requires the
        `invoice:write` scope.
      operationId: addPayoutAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayoutAccountCreate'
      responses:
        '201':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayoutAccount'
        '400':
          $ref: '#/components/responses/Validation'
components:
  schemas:
    PayoutAccountCreate:
      type: object
      required:
        - bankCode
        - accountNumber
        - code
      properties:
        bankCode:
          type: string
        accountNumber:
          type: string
          pattern: ^\d{10}$
        code:
          type: string
          pattern: ^\d{6}$
          description: The 6-digit OTP from POST /v1/payouts/accounts/otp.
        makeDefault:
          type: boolean
    PayoutAccount:
      type: object
      properties:
        id:
          type: string
        bankCode:
          type: string
        bankName:
          type: string
        accountNumber:
          type: string
        accountName:
          type: string
        isDefault:
          type: boolean
        createdAt:
          type: string
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                type: object
  responses:
    Validation:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your secret key as the bearer token: sk_test_… (test) or sk_live_…
        (live). That is all a normal API call needs. OAuth access tokens from
        POST /v1/oauth/token also work, but a client id/secret is only for
        platforms acting on another tenant's behalf, not for your own
        integration.

````