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

# Search customers

> Returns a list of customers that match the query parameters. The customers are sorted by external id.



## OpenAPI

````yaml /openapi/customer-20231219.json get /accounts/customers
openapi: 3.1.0
info:
  title: CUSTOMER
  termsOfService: urn:tos
  license:
    name: Apache 2.0
    url: https://springdoc.org
  version: '2023-12-19'
  description: ''
servers:
  - url: https://api-sb.meld.io
    description: Meld API sandbox
  - url: https://api.meld.io
    description: Meld API production
security: []
tags:
  - name: Virtual Account
    description: ''
  - name: Customers
paths:
  /accounts/customers:
    get:
      tags:
        - Customers
      summary: Search customers
      description: >-
        Returns a list of customers that match the query parameters. The
        customers are sorted by external id.
      operationId: accounts-customers-search
      parameters:
        - name: Meld-Version
          in: header
          description: Dated API version to use for this request, e.g. `2026-02-03`.
          required: false
          schema:
            type: string
            example: '2023-12-19'
        - name: customerIds
          in: query
          description: >-
            Meld generated unique identifier for your customer. This should be
            used to track customer activity. This takes a comma separated list
            of customer ids.
          required: false
          schema:
            type: string
        - name: externalCustomerId
          in: query
          description: >-
            Your unique identifier for your customer. If maintaining your own
            customer management system this can also be used for tracking
            customer activity.
          required: false
          schema:
            type: string
        - name: email
          in: query
          description: Customer's email
          required: false
          schema:
            type: string
        - name: phone
          in: query
          description: Customer's phone
          required: false
          schema:
            type: string
        - name: status
          in: query
          description: Customer's status
          required: false
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
        - name: type
          in: query
          description: Customer type
          required: false
          schema:
            type: string
            enum:
              - INDIVIDUAL
              - BUSINESS
        - name: before
          in: query
          description: >-
            Key of customer to get before. The next batch of results will be
            immediately before this customer.
          required: false
          schema:
            type: string
        - name: after
          in: query
          description: >-
            Key of customer to get after. The next batch of results will be
            immediately after this customer.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: |-
            Limits number of returned customers.

            *Default value*: 10 or the number of customer ids provided

            *Minimum value*: 1

            *Maximum value*: 100
          required: false
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Customers are returned
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/CustomerPage'
        '400':
          description: >-
            Bad Request : check request values and format


            A search parameter is not accepted. Check the query values against
            the documented parameters for this version.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '`BAD_REQUEST`'
                  errors:
                    type: array
                    description: |-
                      Any of:

                      - `[Meld-Version] is invalid`
                      - `[customerIds] is invalid`
                      - `[externalCustomerId] is invalid`
                      - `[email] is invalid`
                      - `[phone] is invalid`
                      - `[status] value is not one of: ...`
                      - `[type] value is not one of: ...`
                      - `[before] is invalid`
                      - `[after] is invalid`
                      - `[limit] is invalid`
                    items:
                      type: string
                  message:
                    type: string
                    description: Bad request
                  requestId:
                    type: string
                    description: Quote this when asking Meld about a specific failure.
                  serviceProviderDetails:
                    type: object
                    properties:
                      code:
                        type: string
                        description: The provider's own error code, when it sent one.
                      message:
                        type: string
                        description: The provider's own message.
                    example:
                      code: '5034'
                      message: >-
                        Digital currency and blockchain combination is
                        restricted for customer's country
                    description: >-
                      The provider's own error detail, when the failure came
                      from a service provider. Usually `code` and `message`; a
                      few providers pass their own body through, so other keys
                      can appear.
                    additionalProperties: {}
                  timestamp:
                    type: string
                    format: date-time
                    description: >-
                      When the failure occurred. ISO 8601, UTC
                      (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
                    example: '2026-08-14T09:41:22.482+00:00'
              example:
                code: BAD_REQUEST
                message: Bad request
                requestId: 01JB2K7C9XQZ4M8N2P5R6T3V
                timestamp: '2026-08-14T09:41:22.482+00:00'
                errors:
                  - '[Meld-Version] is invalid'
        '401':
          description: |-
            Invalid credentials

            Check the API credentials being sent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '`UNAUTHORIZED`'
                  message:
                    type: string
                    description: Access denied
                  requestId:
                    type: string
                    description: Quote this when asking Meld about a specific failure.
                  serviceProviderDetails:
                    type: object
                    properties:
                      code:
                        type: string
                        description: The provider's own error code, when it sent one.
                      message:
                        type: string
                        description: The provider's own message.
                    example:
                      code: '5034'
                      message: >-
                        Digital currency and blockchain combination is
                        restricted for customer's country
                    description: >-
                      The provider's own error detail, when the failure came
                      from a service provider. Usually `code` and `message`; a
                      few providers pass their own body through, so other keys
                      can appear.
                    additionalProperties: {}
                  timestamp:
                    type: string
                    format: date-time
                    description: >-
                      When the failure occurred. ISO 8601, UTC
                      (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
                    example: '2026-08-14T09:41:22.482+00:00'
              example:
                code: UNAUTHORIZED
                message: Access denied
                requestId: 01JB2K7C9XQZ4M8N2P5R6T3V
                timestamp: '2026-08-14T09:41:22.482+00:00'
        '403':
          description: |-
            Unauthenticated or authenticated with insufficient access

            Check the account's permissions for this operation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '`FORBIDDEN`'
                  message:
                    type: string
                    description: Access denied
                  requestId:
                    type: string
                    description: Quote this when asking Meld about a specific failure.
                  serviceProviderDetails:
                    type: object
                    properties:
                      code:
                        type: string
                        description: The provider's own error code, when it sent one.
                      message:
                        type: string
                        description: The provider's own message.
                    example:
                      code: '5034'
                      message: >-
                        Digital currency and blockchain combination is
                        restricted for customer's country
                    description: >-
                      The provider's own error detail, when the failure came
                      from a service provider. Usually `code` and `message`; a
                      few providers pass their own body through, so other keys
                      can appear.
                    additionalProperties: {}
                  timestamp:
                    type: string
                    format: date-time
                    description: >-
                      When the failure occurred. ISO 8601, UTC
                      (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
                    example: '2026-08-14T09:41:22.482+00:00'
              example:
                code: FORBIDDEN
                message: Access denied
                requestId: 01JB2K7C9XQZ4M8N2P5R6T3V
                timestamp: '2026-08-14T09:41:22.482+00:00'
        '404':
          description: |-
            Not found

            Verify the identifier in the request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '`NOT_FOUND`'
                  message:
                    type: string
                    description: Resource not found
                  requestId:
                    type: string
                    description: Quote this when asking Meld about a specific failure.
                  serviceProviderDetails:
                    type: object
                    properties:
                      code:
                        type: string
                        description: The provider's own error code, when it sent one.
                      message:
                        type: string
                        description: The provider's own message.
                    example:
                      code: '5034'
                      message: >-
                        Digital currency and blockchain combination is
                        restricted for customer's country
                    description: >-
                      The provider's own error detail, when the failure came
                      from a service provider. Usually `code` and `message`; a
                      few providers pass their own body through, so other keys
                      can appear.
                    additionalProperties: {}
                  timestamp:
                    type: string
                    format: date-time
                    description: >-
                      When the failure occurred. ISO 8601, UTC
                      (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
                    example: '2026-08-14T09:41:22.482+00:00'
              example:
                code: NOT_FOUND
                message: Resource not found
                requestId: 01JB2K7C9XQZ4M8N2P5R6T3V
                timestamp: '2026-08-14T09:41:22.482+00:00'
        '409':
          description: |-
            Conflict

            Resolve the conflicting state, then retry.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '`CONFLICT`'
                  message:
                    type: string
                    description: Conflict
                  requestId:
                    type: string
                    description: Quote this when asking Meld about a specific failure.
                  serviceProviderDetails:
                    type: object
                    properties:
                      code:
                        type: string
                        description: The provider's own error code, when it sent one.
                      message:
                        type: string
                        description: The provider's own message.
                    example:
                      code: '5034'
                      message: >-
                        Digital currency and blockchain combination is
                        restricted for customer's country
                    description: >-
                      The provider's own error detail, when the failure came
                      from a service provider. Usually `code` and `message`; a
                      few providers pass their own body through, so other keys
                      can appear.
                    additionalProperties: {}
                  timestamp:
                    type: string
                    format: date-time
                    description: >-
                      When the failure occurred. ISO 8601, UTC
                      (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
                    example: '2026-08-14T09:41:22.482+00:00'
              example:
                code: CONFLICT
                message: Conflict
                requestId: 01JB2K7C9XQZ4M8N2P5R6T3V
                timestamp: '2026-08-14T09:41:22.482+00:00'
        '500':
          description: >-
            Server Error. This applies to all 5xx errors, including but not
            limited to 500, 501, 502, 503, and 504 errors. You should treat all
            of these errors the same.


            An internal Meld error. Contact Meld support with the requestId; a
            retry may not clear it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '`UNEXPECTED_ERROR`'
                  message:
                    type: string
                    description: Unexpected error
                  requestId:
                    type: string
                    description: Quote this when asking Meld about a specific failure.
                  serviceProviderDetails:
                    type: object
                    properties:
                      code:
                        type: string
                        description: The provider's own error code, when it sent one.
                      message:
                        type: string
                        description: The provider's own message.
                    example:
                      code: '5034'
                      message: >-
                        Digital currency and blockchain combination is
                        restricted for customer's country
                    description: >-
                      The provider's own error detail, when the failure came
                      from a service provider. Usually `code` and `message`; a
                      few providers pass their own body through, so other keys
                      can appear.
                    additionalProperties: {}
                  timestamp:
                    type: string
                    format: date-time
                    description: >-
                      When the failure occurred. ISO 8601, UTC
                      (`YYYY-MM-DDThh:mm:ss.sss+00:00`).
                    example: '2026-08-14T09:41:22.482+00:00'
              example:
                code: UNEXPECTED_ERROR
                message: Unexpected error
                requestId: 01JB2K7C9XQZ4M8N2P5R6T3V
                timestamp: '2026-08-14T09:41:22.482+00:00'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CustomerPage:
      type: object
      properties:
        count:
          type: integer
          format: int32
          description: Number of customers returned.
        customers:
          type: array
          description: Customers
          items:
            $ref: '#/components/schemas/Customer20230401'
        remaining:
          type: integer
          format: int32
          description: >-
            Number of remaining customers before/after this page, depending the
            direction this page was selected.
    Customer20230401:
      type: object
      properties:
        accountId:
          type: string
          description: >-
            The unique identifier of your account with Meld. This id will be the
            same for all calls to Meld endpoints made from this account.
        addresses:
          type: array
          description: List of customer addresses
          items:
            $ref: '#/components/schemas/CustomerAddress'
        dateOfBirth:
          type: string
          description: Customer's date of birth in ISO format (yyyy-MM-dd)
        email:
          type: string
          description: Customer email
        externalId:
          type: string
          description: Externally assigned id for the customer
        id:
          type: string
          description: Unique identifier for this customer
        key:
          type: string
          description: >-
            When this customer is part of a paginated list, this key represents
            its position in the list.
        name:
          description: Customer name
          allOf:
            - $ref: '#/components/schemas/CustomerName'
        phone:
          type: string
          description: Customer phone
        previouslyUsedOnramps:
          type: array
          description: >-
            Onramps the customer has successfully transacted on, with the
            timestamp of the most recent successful transaction for each. Empty
            if the customer has no prior successful onramp transactions.
          items:
            $ref: '#/components/schemas/PreviouslyUsedOnramp'
        serviceProviderCustomers:
          type: array
          description: List of customers created with service providers.
          items:
            $ref: '#/components/schemas/ServiceProviderCustomer'
        status:
          type: string
          description: Customer status
          enum:
            - ACTIVE
            - INACTIVE
        type:
          type: string
          description: Customer type
          enum:
            - INDIVIDUAL
            - BUSINESS
    CustomerAddress:
      type: object
      description: Customer address
      properties:
        addressDetails:
          description: Address details.
          allOf:
            - $ref: '#/components/schemas/CustomerAddressDetails'
        customerId:
          type: string
          description: Customer id
        id:
          type: string
          description: Unique identifier for this customer address
        status:
          type: string
          description: Address status
          enum:
            - ACTIVE
            - INACTIVE
        type:
          type: string
          description: Address type
          enum:
            - BILLING
            - SHIPPING
            - RESIDENCE
    CustomerName:
      type: object
      properties:
        firstName:
          type: string
          description: First name
        lastName:
          type: string
          description: Last name
    PreviouslyUsedOnramp:
      type: object
      properties:
        previouslyUsed:
          type: string
          format: date-time
          description: >-
            Timestamp (UTC) of the most recent successful transaction on this
            onramp
        serviceProvider:
          type: string
          description: Onramp service provider the customer has successfully used before
          enum:
            - ACROSS
            - AEROPAY
            - AKOYA
            - ALCHEMYPAY
            - APPLEPAY
            - AUTHORIZENET
            - BANXA
            - BILIRA
            - BINANCECONNECT
            - BINANCEPAY
            - BLOCKCHAINDOTCOM
            - BOOMFI
            - BRAINTREE
            - BRALE
            - BTCDIRECT
            - CASHAPP
            - CHECKOUT
            - CIRCLE
            - COINBASEPAY
            - COINFLOW
            - DUENETWORK
            - ELDORADO
            - FINICITY
            - FLASHNET
            - FONBNK
            - GUARDARIAN
            - HARBOUR
            - KOYWE
            - KRYPTONIM
            - MERCURYO
            - MESH
            - MESO
            - MOONPAY
            - MOOV
            - MX
            - NMI
            - NOAH
            - ONMETA
            - ONRAMPMONEY
            - PAYBIS
            - PAYPAL
            - PLAID
            - RAMP
            - REVOLUT
            - ROBINHOOD
            - ROUTERPROTOCOL
            - SALTEDGE
            - SALTEDGEPARTNERS
            - SARDINE
            - SHIFT4
            - SHOPIFY
            - SIMPLEX
            - SKRILLCRYPTO
            - SQUARE
            - STRIPE
            - SUMSUB
            - SWAPPED
            - TANGOCARD
            - TELLER
            - TOPPER
            - TRANSAK
            - TREMENDOUS
            - TRANSFI
            - UNLIMIT
            - UPHOLD
            - WYRE
            - XANPOOL
            - YELLOWCARD
            - YODLEE
    ServiceProviderCustomer:
      type: object
      properties:
        createdAt:
          type: string
          format: date-time
        customerId:
          type: string
        deletedAt:
          type: string
          format: date-time
        id:
          type: string
        kyc:
          $ref: '#/components/schemas/CustomerKyc'
        serviceProvider:
          type: string
          enum:
            - ACROSS
            - AEROPAY
            - AKOYA
            - ALCHEMYPAY
            - APPLEPAY
            - AUTHORIZENET
            - BANXA
            - BILIRA
            - BINANCECONNECT
            - BINANCEPAY
            - BLOCKCHAINDOTCOM
            - BOOMFI
            - BRAINTREE
            - BRALE
            - BTCDIRECT
            - CASHAPP
            - CHECKOUT
            - CIRCLE
            - COINBASEPAY
            - COINFLOW
            - DUENETWORK
            - ELDORADO
            - FINICITY
            - FLASHNET
            - FONBNK
            - GUARDARIAN
            - HARBOUR
            - KOYWE
            - KRYPTONIM
            - MERCURYO
            - MESH
            - MESO
            - MOONPAY
            - MOOV
            - MX
            - NMI
            - NOAH
            - ONMETA
            - ONRAMPMONEY
            - PAYBIS
            - PAYPAL
            - PLAID
            - RAMP
            - REVOLUT
            - ROBINHOOD
            - ROUTERPROTOCOL
            - SALTEDGE
            - SALTEDGEPARTNERS
            - SARDINE
            - SHIFT4
            - SHOPIFY
            - SIMPLEX
            - SKRILLCRYPTO
            - SQUARE
            - STRIPE
            - SUMSUB
            - SWAPPED
            - TANGOCARD
            - TELLER
            - TOPPER
            - TRANSAK
            - TREMENDOUS
            - TRANSFI
            - UNLIMIT
            - UPHOLD
            - WYRE
            - XANPOOL
            - YELLOWCARD
            - YODLEE
        serviceProviderAccessProfileId:
          type: string
        serviceProviderDetails:
          oneOf:
            - title: FinicityCustomerDetails
              allOf:
                - $ref: '#/components/schemas/FinicityCustomerDetails'
        status:
          type: string
        wallets:
          type: array
          items:
            type: string
          uniqueItems: true
    CustomerAddressDetails:
      type: object
      description: Address details
      properties:
        city:
          type: string
          description: City
        country:
          type: string
          description: Country
        lineOne:
          type: string
          description: >-
            Street address line one. May contain the entire street address if
            not broken up into lines one and two.
        lineTwo:
          type: string
          description: Street address line two.
        postalCode:
          type: string
          description: Postal code. Depending on the country, this could be a zip code.
        region:
          type: string
          description: Region. Depending on the country, this could be a state or province.
    CustomerKyc:
      type: object
      properties:
        additionalInfo:
          type: object
          additionalProperties: {}
          description: >-
            Provider-specific data returned when KYC was shared (e.g. hosted
            onboarding URL)
        approvedLevel:
          type: string
          description: >-
            Highest Meld KYC level the customer is approved at. It stays while a
            higher level is in review and is absent when nothing is approved.
            Present on the KYC provider's entry only.
          enum:
            - LEVEL_1
            - LEVEL_2
            - LEVEL_3
        level:
          type: string
          description: >-
            Meld KYC level this verification is for. Present on the KYC
            provider's entry only.
          enum:
            - LEVEL_1
            - LEVEL_2
            - LEVEL_3
        onboardingMethod:
          description: Onboarding method used to initiate the KYC share
          allOf:
            - $ref: '#/components/schemas/OnboardingMethod'
        status:
          type: string
          description: Normalized KYC status
          enum:
            - PENDING
            - APPROVED
            - REJECTED
            - EXPIRED
            - UNKNOWN
        updatedAt:
          type: string
          format: date-time
          description: When the status was last updated
    FinicityCustomerDetails:
      allOf:
        - $ref: '#/components/schemas/ServiceProviderCustomerDetails'
        - type: object
          properties:
            customerType:
              type: string
              minLength: 1
      required:
        - customerType
    OnboardingMethod:
      type: object
      properties:
        kycProvider:
          type: string
        onboardingType:
          type: string
    ServiceProviderCustomerDetails:
      discriminator:
        propertyName: type
      properties:
        type:
          type: string
      required:
        - type
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      x-default: BASIC <Meld API Key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.