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

# Create Pay-In Deposit Wallet

> Create a permanent pay-in wallet under the merchant's virtual account. Deposits to this sub-account are automatically swept to the parent account.



## OpenAPI

````yaml /openapi.yaml post /accounts/virtual/payin/address
openapi: 3.1.0
info:
  contact:
    email: support@boomfi.xyz
    name: API Support
  description: >-
    The BoomFi Merchants API provides a set of endpoints for merchants to manage
    their accounts, transactions, and more. Hosts differ per brand/environment;
    use the brand-specific base URL from the docs.
  title: ZBX Merchants API
  version: '1.0'
servers:
  - url: https://mapi.zbx.boomfi.xyz/v1
    description: Production
security: []
tags:
  - description: Payment links
    name: Paylinks
  - description: Billing plans
    name: Plans
  - description: Subscriptions
    name: Subscriptions
  - description: Customer records
    name: Customers
  - description: Invoices
    name: Invoices
  - description: Payments
    name: Payments
  - description: Organisation events
    name: Events
  - description: Organisation profile and display settings
    name: Organisation
  - description: Webhook and request-signing secrets
    name: Secrets
  - description: Settlement accounts
    name: Accounts
  - name: Bank Address Book
  - description: Managed virtual accounts, balances, pay-in, and payout
    name: Virtual Accounts
  - description: Partner-managed accounts, virtual accounts, pay-in, and payout
    name: Partners
  - description: Partner virtual account automations and run history
    name: Partner Automations
  - description: Partner maintain-balance automations
    name: Partner Balance Monitoring
  - description: Tradeable currencies, instruments, and swap targets
    name: Instruments
  - description: RFQ quotes
    name: Quotes
  - description: RFQ orders and one-click trades
    name: Orders
  - description: Executed trades
    name: Trades
paths:
  /accounts/virtual/payin/address:
    post:
      tags:
        - Virtual Accounts
      summary: Create Pay-In Deposit Wallet
      description: >-
        Create a permanent pay-in wallet under the merchant's virtual account.
        Deposits to this sub-account are automatically swept to the parent
        account.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/accounts.GetDepositAddressRequest'
        description: Deposit address request
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal.Response-accounts_GetDepositAddressResponse
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal.ErrorResponse'
      security:
        - ApiKeyAuth: []
          ApiNonce: []
          ApiSignature: []
components:
  schemas:
    accounts.GetDepositAddressRequest:
      properties:
        chain_id:
          description: Chain ID for the deposit wallet.
          example: 8453
          type: integer
        reference:
          description: >-
            Customer or external reference used to identify the pay-in
            sub-account.
          example: customer-123
          type: string
      required:
        - chain_id
        - reference
      type: object
    internal.Response-accounts_GetDepositAddressResponse:
      properties:
        data:
          allOf:
            - $ref: '#/components/schemas/accounts.GetDepositAddressResponse'
          description: Response payload when the request succeeded.
        error:
          description: True when the request failed.
          type: boolean
        message:
          description: Human-readable status or error message.
          type: string
      type: object
    internal.ErrorResponse:
      properties:
        error:
          allOf:
            - $ref: '#/components/schemas/internal.ErrorStruct'
          description: Error details including HTTP-style code and message.
      type: object
    accounts.GetDepositAddressResponse:
      properties:
        account_id:
          description: Unique identifier of the account this resource belongs to.
          type: integer
        address:
          description: >-
            On-chain wallet address or postal street address, depending on
            context.
          type: string
        chain_id:
          description: Blockchain chain ID.
          type: integer
        enabled:
          description: Whether this resource is enabled.
          type: boolean
        reference:
          description: Merchant-defined reference string.
          type: string
        status:
          allOf:
            - $ref: '#/components/schemas/docenums.AccountState'
          description: Status of this resource.
      type: object
    internal.ErrorStruct:
      properties:
        code:
          description: |-
            Error code
            Example: 400
          example: 400
          type: integer
        errors:
          description: List of errors
          items:
            $ref: '#/components/schemas/internal.SingleError'
          type: array
        message:
          description: |-
            Error message
            Example: Insufficient quantity
          example: Insufficient quantity
          type: string
      type: object
    docenums.AccountState:
      enum:
        - Unknown
        - Pending
        - Ready
      type: string
      x-enum-varnames:
        - AccountStateUnknown
        - AccountStatePending
        - AccountStateReady
    internal.SingleError:
      properties:
        domain:
          description: |-
            Domain
            Example: orders
          example: orders
          type: string
        reason:
          description: |-
            Error Reason
            Example: InsufficientQuantity
          example: InsufficientQuantity
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-API-KEY
      type: apiKey
    ApiNonce:
      in: header
      name: X-API-Nonce
      type: apiKey
    ApiSignature:
      in: header
      name: X-API-Signature
      type: apiKey

````