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

# Add bank account



## OpenAPI

````yaml /stocks/api-reference/openapi.json post /fiat-withdrawals/accounts
openapi: 3.1.0
info:
  contact:
    email: support@daya.co
    name: API Support
  description: >-
    Public developer API for the Stocks by Daya product. X-API-Key
    authenticated. Market data, portfolio, balances, activity, order placement,
    and fiat withdrawals. All responses use the standard envelope: { success,
    message?, data?, error?, timestamp }.
  title: Daya Stocks Public API
  version: 1.0.0
servers:
  - url: https://api.daya.co/stocks/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /fiat-withdrawals/accounts:
    post:
      tags:
        - stocks-banks
      summary: Add bank account
      operationId: postFiatWithdrawalsAccounts
      parameters:
        - description: Stable key for this logical operation; reuse it for every retry
          in: header
          name: Idempotency-Key
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/internal_publicapi_v1.PublicAddBankAccountRequest
        description: account_number + bank_code
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: >-
                      #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
                  - properties:
                      data:
                        $ref: >-
                          #/components/schemas/internal_publicapi_v1.PublicBankAccount
                    type: object
          description: Saved bank account
        '400':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Malformed body
        '401':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Missing or invalid API key
        '409':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Bank account already saved
        '422':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Validation error or holder lookup failed
components:
  schemas:
    internal_publicapi_v1.PublicAddBankAccountRequest:
      properties:
        account_number:
          example: '0123456789'
          type: string
        bank_code:
          example: '044'
          type: string
      type: object
      required:
        - account_number
        - bank_code
    github_com_dayacoins_daya-stocks-service_pkg_response.Envelope:
      properties:
        data: {}
        error:
          $ref: >-
            #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.ErrorData
        message:
          description: Message is an optional banner/toast string.
          type: string
        success:
          type: boolean
        timestamp:
          type: string
      type: object
    internal_publicapi_v1.PublicBankAccount:
      properties:
        account_name:
          example: John Doe
          type: string
        account_number:
          example: '0123456789'
          type: string
        bank_code:
          example: '044'
          type: string
        bank_logo:
          example: https://cdn.daya.co/banks/access-bank.png
          type: string
        bank_name:
          example: Access Bank
          type: string
        created_at:
          example: '2026-01-15T10:30:00Z'
          type: string
        currency:
          example: NGN
          type: string
        id:
          example: b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e
          type: string
      type: object
    github_com_dayacoins_daya-stocks-service_pkg_response.ErrorData:
      properties:
        code:
          type: string
        details: {}
        fields:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Your Daya API key, sent in the X-API-Key header. Issue and scope keys in
        the Daya dashboard.
      in: header
      name: X-API-Key
      type: apiKey

````