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

# Add bank account

> Add a bank account to withdraw to. At least one bank account must be added before any off-ramp withdrawal can be initated.



## OpenAPI

````yaml /api-reference/openapi-integrator.json post /v1/submit/add-bank-account
openapi: 3.0.3
info:
  title: Byzantine Integrator API
  description: Byzantine REST API for integrators.
  license:
    name: ''
  version: 0.2.0
servers:
  - url: https://sandbox.api.byzantine.fi
    description: Sandbox
security: []
tags:
  - name: API health
    description: Check API status.
  - name: Customer management
    description: Endpoints to create, update, and retrieve customer information.
  - name: Account management
    description: Endpoints to manage accounts, bank accounts, invitations, and user roles.
  - name: Products
    description: Endpoints to get data about products and vaults.
  - name: Transactions
    description: Endpoints to create and manage transactions.
  - name: OTP authentication
    description: Endpoints to initialize and manage user authentication with OTP.
  - name: Webhooks
    description: Integrator-managed outbound webhook subscriptions and delivery history.
paths:
  /v1/submit/add-bank-account:
    post:
      tags:
        - Account management
      summary: Add bank account
      description: >-
        Add a bank account to withdraw to. At least one bank account must be
        added before any off-ramp withdrawal can be initated.
      operationId: add_bank_account
      parameters:
        - name: X-Pubkey
          in: header
          description: >-
            Integrator's ECDSA public key (P-256 curve, compressed SEC1 format).
            Example:
            0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd
          required: true
          schema:
            type: string
        - name: X-Timestamp
          in: header
          description: >-
            Unix timestamp in seconds (UTC). Must be within tolerance window (1
            minute) to prevent replay attacks. Example: 1760375826
          required: true
          schema:
            type: string
        - name: X-Signature
          in: header
          description: >-
            ECDSA signature (DER-encoded, hex with 0x prefix). Signs the
            message: {timestamp}{METHOD}{path_and_query}{json_body}. Example:
            0x3045022100...
          required: true
          schema:
            type: string
      requestBody:
        description: Bank account details to associate with the Byzantine account
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddBankAccountRequest'
        required: true
      responses:
        '201':
          description: Bank account added successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddBankAccountResponse'
        '400':
          description: Invalid request payload
        '401':
          description: Unauthorized - Account does not belong to integrator
        '500':
          description: Internal server error
      security:
        - integrator_auth: []
components:
  schemas:
    AddBankAccountRequest:
      type: object
      required:
        - accountId
        - currency
        - label
      properties:
        accountId:
          $ref: '#/components/schemas/Uuid'
        currency:
          $ref: '#/components/schemas/Currency'
        label:
          type: string
        achBankAccountDetails:
          allOf:
            - $ref: '#/components/schemas/AchAccountPayload'
          nullable: true
        ibanBankAccountDetails:
          allOf:
            - $ref: '#/components/schemas/IbanAccountPayload'
          nullable: true
    AddBankAccountResponse:
      allOf:
        - $ref: '#/components/schemas/LiquidationAddress'
        - type: object
    Uuid:
      type: string
      format: uuid
      description: A UUID string
      example: 550e8400-e29b-41d4-a716-446655440000
    Currency:
      type: string
      enum:
        - usd
        - eur
        - usdc
        - eurc
    AchAccountPayload:
      type: object
      required:
        - bankName
        - accountNumber
        - routingNumber
        - checkingOrSavings
      properties:
        bankName:
          type: string
        accountNumber:
          type: string
        routingNumber:
          type: string
        checkingOrSavings:
          $ref: '#/components/schemas/CheckingOrSavings'
    IbanAccountPayload:
      type: object
      required:
        - accountNumber
        - bic
        - country
      properties:
        bankName:
          type: string
          nullable: true
        accountNumber:
          type: string
        bic:
          type: string
        country:
          type: string
    LiquidationAddress:
      type: object
      required:
        - bankAccountId
        - accountId
        - name
        - liquidationAddress
        - createdAt
        - destinationCurrency
        - destinationRail
      properties:
        bankAccountId:
          $ref: '#/components/schemas/Uuid'
        accountId:
          $ref: '#/components/schemas/Uuid'
        name:
          type: string
        liquidationAddress:
          type: string
        createdAt:
          type: string
          format: date-time
        destinationCurrency:
          $ref: '#/components/schemas/Currency'
        destinationRail:
          $ref: '#/components/schemas/PaymentRail'
    CheckingOrSavings:
      type: string
      enum:
        - checking
        - savings
        - unknown
    PaymentRail:
      type: string
      enum:
        - ach
        - sepa
        - ethereum
        - base
  securitySchemes:
    integrator_auth:
      type: apiKey
      in: header
      name: X-Pubkey, X-Timestamp, X-Signature

````