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

# Create Meld customer

> Registers the authenticated Portal client as a Meld customer. Returns
`409 Conflict` if a Meld customer already exists for this client — use
`GET /customers` instead.




## OpenAPI

````yaml /openapi/client-api.yaml post /clients/me/integrations/meld/customers
openapi: 3.1.0
info:
  title: Portal Client API
  version: '3.0'
  description: >
    The Portal Client API provides endpoints for managing wallets, building
    transactions,

    and interacting with blockchain networks. All endpoints require
    authentication via a

    Client API Key or Client Session Token (CST) passed as a Bearer token.


    ## Base URL

    `https://api.portalhq.io/api/v3`


    ## Authentication

    Include your Client API Key or Client Session Token as a Bearer token in the

    `Authorization` header of every request.


    ## Chain ID Format

    Chain parameters use either friendly names (e.g. `ethereum`, `solana`) or
    CAIP-2 format

    (e.g. `eip155:1`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). When using
    CAIP-2 format

    in URLs, ensure the colon is URI-encoded (`%3A`).
servers:
  - url: https://api.portalhq.io/api/v3
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Clients
    description: Core client management endpoints
  - name: Wallet
    description: >-
      Read wallet state — balances, NFTs, transaction history, capabilities, and
      transaction details
  - name: Transactions
    description: Build, broadcast, and evaluate blockchain transactions
  - name: Funding
    description: Fund wallets with testnet tokens
  - name: Wallet Shares
    description: Manage signing and backup share pairs
  - name: Delegations
    description: Manage token approvals, revocations, and delegated transfers
  - name: Session Keys
    description: Manage EIP-7702 session keys for smart accounts
  - name: 0x
    description: Token swap endpoints powered by the 0x protocol
  - name: Yield.xyz
    description: Yield opportunities and staking actions powered by Yield.xyz
  - name: Li.Fi
    description: Cross-chain swaps and bridging powered by Li.Fi
  - name: Blockaid
    description: Transaction and address security scanning powered by Blockaid
  - name: Hypernative
    description: >-
      Transaction, address, token, and NFT security scanning powered by
      Hypernative
  - name: Noah
    description: KYC onboarding, payins, and payouts powered by Noah
  - name: Meld
    description: Buy and sell crypto with fiat through aggregated providers powered by Meld
  - name: EIP-7702
    description: EIP-7702 account type detection and authorization management
  - name: Deprecated
    description: >-
      Legacy endpoints scheduled for removal. Use the newer equivalents listed
      in each endpoint's description.
paths:
  /clients/me/integrations/meld/customers:
    post:
      tags:
        - Meld
      summary: Create Meld customer
      description: |
        Registers the authenticated Portal client as a Meld customer. Returns
        `409 Conflict` if a Meld customer already exists for this client — use
        `GET /customers` instead.
      operationId: createMeldCustomer
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MeldCreateCustomerRequest'
      responses:
        '200':
          description: Meld customer created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeldCustomerResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Meld customer already exists for this client
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeldCustomerConflictResponse'
components:
  schemas:
    MeldCreateCustomerRequest:
      type: object
      description: All fields are optional.
      properties:
        name:
          $ref: '#/components/schemas/MeldCustomerName'
        email:
          type: string
          format: email
        phone:
          type: string
          description: E.164-formatted phone number.
        dateOfBirth:
          type: string
          format: date
          description: ISO-8601 calendar date (YYYY-MM-DD).
        type:
          type: string
          enum:
            - INDIVIDUAL
            - BUSINESS
    MeldCustomerResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MeldCustomer'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
    MeldCustomerConflictResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable conflict message.
        details:
          type: object
          properties:
            meldCustomerId:
              type: string
              description: The existing Meld customer ID for this Portal client.
    MeldCustomerName:
      type: object
      properties:
        firstName:
          type: string
        lastName:
          type: string
    MeldCustomer:
      type: object
      required:
        - id
        - accountId
        - externalId
      properties:
        id:
          type: string
        accountId:
          type: string
        externalId:
          type: string
        name:
          $ref: '#/components/schemas/MeldCustomerName'
        email:
          type: string
        phone:
          type: string
        dateOfBirth:
          type: string
        type:
          type: string
          enum:
            - INDIVIDUAL
            - BUSINESS
        status:
          type: string
          enum:
            - ACTIVE
            - INACTIVE
        addresses:
          type: array
          items:
            $ref: '#/components/schemas/MeldCustomerAddress'
        serviceProviders:
          type: object
          additionalProperties: true
    MeldCustomerAddress:
      type: object
      properties:
        id:
          type: string
        customerId:
          type: string
        type:
          type: string
          enum:
            - BILLING
            - SHIPPING
            - RESIDENCE
        status:
          type: string
          enum:
            - ACTIVE
            - INACTIVE
        addressDetails:
          $ref: '#/components/schemas/MeldCustomerAddressDetails'
    MeldCustomerAddressDetails:
      type: object
      properties:
        lineOne:
          type: string
        lineTwo:
          type: string
        city:
          type: string
        region:
          type: string
        postalCode:
          type: string
        country:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Client API Key or Client Session Token (CST). Pass as a Bearer token in
        the

        Authorization header.

````