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

# Update Customer

> Update customer fields. Only non-empty fields are applied. Returns the updated customer record (unwrapped).



## OpenAPI

````yaml /openapi.yaml patch /customers/{customerID}
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:
  /customers/{customerID}:
    patch:
      tags:
        - Customers
      summary: Update Customer
      description: >-
        Update customer fields. Only non-empty fields are applied. Returns the
        updated customer record (unwrapped).
      parameters:
        - description: Unique customer identifier (cus_... or raw UUID)
          in: path
          name: customerID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/customers.UpdateCustomerRequest'
        description: Request
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.Customer'
        '400':
          description: Bad Request
          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: []
components:
  schemas:
    customers.UpdateCustomerRequest:
      properties:
        customer_ident:
          description: Merchant-defined customer reference / external identifier.
          type: string
        discord:
          description: Discord username or handle (stored in customer properties).
          type: string
        email:
          description: Customer email address.
          type: string
        name:
          description: Customer display name.
          type: string
        number:
          description: Phone number (E.164 preferred).
          type: string
        twitter:
          description: Twitter / X handle (stored in customer properties).
          type: string
        wallet_address:
          description: Blockchain wallet address associated with the customer.
          type: string
      type: object
    models.Customer:
      properties:
        created_at:
          description: When the resource was created (RFC3339).
          type: string
        deleted_at:
          description: When the resource was soft-deleted (RFC3339), if applicable.
          type: string
        email:
          description: Email address.
          type: string
        id:
          description: Unique resource identifier.
          type: string
        metadata:
          description: Arbitrary merchant-defined metadata.
          items:
            type: integer
          type: array
        name:
          description: Display name.
          type: string
        org_id:
          description: Organisation ID that owns this resource.
          type: string
        phone:
          description: Phone number.
          type: string
        properties:
          description: Additional properties as a key-value map.
          items:
            type: integer
          type: array
        reference:
          description: Merchant-defined reference string.
          type: string
        updated_at:
          description: When the resource was last updated (RFC3339).
          type: string
        wallet_address:
          description: Blockchain wallet address.
          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
    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
    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

````