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

# Evaluate KYC

> Get a customer's KYC status and outstanding requirements, plus a hosted challenge to complete them

> [!NOTE]
>
> Some Platform API capabilities must be enabled on your account by MoonPay
> before you can call them. If this endpoint returns an unexpected `404`, see
> [Capability
> enablement](https://dev.moonpay.com/api-reference/platform/documentation/using-the-api.md#capability-enablement).


## OpenAPI

````yaml POST /platform/v1/customers/{id}/kyc/evaluate
openapi: 3.1.0
info:
  title: MoonPay
  version: 1.0.0
servers:
  - url: https://api.moonpay.com
    description: Production Environment
    variables: {}
  - url: https://api.moonpay.dev
    description: Sandbox Environment
    variables: {}
security: []
tags:
  - name: Assets
  - name: Quote
  - name: Customer
  - name: Transactions
paths:
  /platform/v1/customers/{id}/kyc/evaluate:
    post:
      tags:
        - Customer
      summary: Evaluate a customer's KYC
      description: >-
        Returns the customer's KYC standing and outstanding requirements for the
        given `context`, plus a hosted challenge that collects them. The
        challenge is returned even when no requirement is outstanding yet, for
        example while the customer has none to complete in your own UI. It is
        omitted when the customer's KYC is `active` or `unavailable`, because
        there is nothing left for the customer to do. If you omit `context`, the
        API evaluates against Ramps in the customer's default fiat currency.
        Does not change customer data.
      operationId: CustomersController.evaluateKyc
      parameters:
        - name: id
          in: path
          required: true
          description: The customer's unique MoonPay identifier.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EvaluateCustomerKycRequestBody'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Customer'
                required:
                  - data
                unevaluatedProperties:
                  not: {}
              examples:
                Customer with proof of income and a questionnaire outstanding:
                  summary: >-
                    Customer with proof of income and a questionnaire
                    outstanding
                  description: >-
                    A customer who submitted everything except proof of income
                    and the enhanced due diligence questionnaire. The response
                    includes a hosted challenge the partner can surface so the
                    customer completes them.
                  value:
                    data:
                      id: c1d2e3f4-5678-90ab-cdef-1234567890ab
                      externalCustomerId: customer-1234
                      kyc:
                        status: collecting
                        requirements:
                          basicDetails:
                            status: complete
                          residentialAddress:
                            status: complete
                          phoneNumber:
                            status: complete
                          identityDocuments:
                            status: complete
                          selfie:
                            status: complete
                          proofOfAddress:
                            status: complete
                          questionnaires:
                            status: incomplete
                            requiredFields:
                              - enhancedDueDiligence
                          proofOfIncome:
                            status: incomplete
                        challenge:
                          url: >-
                            https://platform.moonpay.com/platform/v1/challenge?challengeToken=eyJhbGciOiJFUzI1NiJ9...
                          expiresAt: '2026-01-29T15:30:50.000Z'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevPlatformApiErrorResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '403':
          description: Access is forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevPlatformApiErrorResponse'
      security:
        - AccessTokenAuth: []
        - SecretApiKeyInHeaderAuth: []
components:
  schemas:
    EvaluateCustomerKycRequestBody:
      type: object
      properties:
        context:
          $ref: '#/components/schemas/CustomerKycEvaluationContext'
          description: >-
            The product to evaluate KYC against. If you omit this field, the API
            evaluates against Ramps in the customer's default fiat currency.
      unevaluatedProperties:
        not: {}
      description: >-
        Request body for evaluating a customer's KYC. If you omit `context`, the
        API evaluates against Ramps in the customer's default fiat currency.
      examples:
        - {}
    Customer:
      type: object
      required:
        - id
        - externalCustomerId
        - kyc
      properties:
        id:
          type: string
          format: uuid
          description: The customer's unique MoonPay identifier.
          examples:
            - c1d2e3f4-5678-90ab-cdef-1234567890ab
        externalCustomerId:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The partner-provided identifier for this customer, if one was
            supplied. Null when the customer connected without an external
            identifier.
          examples:
            - customer-1234
        kyc:
          $ref: '#/components/schemas/CustomerKyc'
          description: KYC details for the customer.
      unevaluatedProperties:
        not: {}
      description: A MoonPay customer as seen by a partner.
    DevPlatformApiErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/DevPlatformApiErrorCodes'
          description: Code identifying the error type.
          examples:
            - forbidden
            - unauthorized
            - invalid_request
        message:
          type: string
          description: Human-readable error message.
          examples:
            - Forbidden
            - Not authorized
            - One or more request parameters are invalid.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/DevPlatformErrorDetail'
          description: Optional list of field-level error details.
          examples:
            - - field: source.amount
                message: >-
                  Source amount must be a numeric string. Example "100" or
                  "10.25".
      unevaluatedProperties:
        not: {}
      description: Response body returned when a request fails.
    UnauthorizedError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - unauthorized
        message:
          type: string
          enum:
            - Not authorized
      unevaluatedProperties:
        not: {}
      description: Missing or invalid credentials.
    ForbiddenError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - forbidden
        message:
          type: string
          examples:
            - Forbidden
      unevaluatedProperties:
        not: {}
      description: Insufficient permissions.
    CustomerKycEvaluationContext:
      anyOf:
        - $ref: '#/components/schemas/RampsCustomerKycEvaluationContext'
        - $ref: '#/components/schemas/RoutesCustomerKycEvaluationContext'
      description: Product context for a KYC evaluation. Discriminated on `product`.
    CustomerKyc:
      type: object
      required:
        - status
        - requirements
      properties:
        status:
          $ref: '#/components/schemas/CustomerKycStatus'
          description: The customer's KYC standing.
        reason:
          $ref: '#/components/schemas/UnavailableReason'
          description: Why KYC can't proceed. Present only when `status` is `unavailable`.
          examples:
            - unsupported_region
        requirements:
          $ref: '#/components/schemas/Requirements'
          description: Outstanding and completed KYC requirements for the customer.
        challenge:
          $ref: '#/components/schemas/IdentityVerificationChallenge'
          description: Hosted challenge the partner must surface to the customer.
      unevaluatedProperties:
        not: {}
      description: KYC details for a customer.
    DevPlatformApiErrorCodes:
      type: string
      enum:
        - unknown_error
        - unauthorized
        - forbidden
        - not_found
        - invalid_request
        - not_implemented
        - too_many_requests
        - not_allowed
        - conflict
        - unprocessable_entity
        - sse_timeout
        - sse_error
        - service_unavailable
        - requirements_incomplete
        - requirement_not_pending
        - verification_rejected
        - country_mismatch
        - upload_expired
        - unsupported_country
        - verification_pending
        - kyc_not_approved
        - no_outstanding_requirements
        - no_new_documents
        - terms_accepted_at_out_of_range
        - unsupported_combination
        - asset_not_available_in_region
        - address_confirmation_required
        - card_not_supported
    DevPlatformErrorDetail:
      type: object
      required:
        - message
      properties:
        field:
          type: string
          description: Field that caused the error.
        message:
          type: string
          description: Human-readable error message for this field.
        details:
          type: object
          unevaluatedProperties: {}
          description: >-
            Extra data that describes the error in more detail, useful when
            debugging or logging. Keys vary by error and are not part of the API
            contract. For example, an amount-limit error includes the limit
            value as "maxBuyAmount" or "minBuyAmount".
      unevaluatedProperties:
        not: {}
    RampsCustomerKycEvaluationContext:
      type: object
      required:
        - product
        - amount
        - currency
        - paymentMethod
      properties:
        product:
          type: string
          enum:
            - ramps
          description: Identifies this evaluation as `ramps`.
        amount:
          $ref: '#/components/schemas/MonetaryDecimal'
          description: >-
            Transaction amount as a decimal string. Used to determine KYC
            requirements for this ramps action.
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: >-
            Fiat currency as an [ISO
            4217](https://en.wikipedia.org/wiki/ISO_4217) code.
          examples:
            - USD
        paymentMethod:
          $ref: '#/components/schemas/PaymentMethodType'
          description: Payment method for the ramps action.
      unevaluatedProperties:
        not: {}
      description: Ramps-specific context for a KYC evaluation.
    RoutesCustomerKycEvaluationContext:
      type: object
      required:
        - product
        - currency
      properties:
        product:
          type: string
          enum:
            - routes
          description: Identifies this evaluation as `routes`.
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: >-
            Fiat currency as an [ISO
            4217](https://en.wikipedia.org/wiki/ISO_4217) code. Used to
            determine KYC requirements for a Routes virtual account in this
            currency.
          examples:
            - USD
      unevaluatedProperties:
        not: {}
      description: Routes-specific context for a KYC evaluation.
    CustomerKycStatus:
      type: string
      enum:
        - collecting
        - verifying
        - active
        - unavailable
        - not_created
      description: >-
        The customer's KYC standing with you. `not_created` means no KYC session
        exists yet for this customer.
    UnavailableReason:
      type: string
      enum:
        - unsupported_region
        - duplicate_account
        - generic
      description: >-
        Why a customer is `unavailable`. MoonPay may add values, so treat a
        value you don't recognize as `generic`.
    Requirements:
      type: object
      properties:
        basicDetails:
          $ref: '#/components/schemas/RequirementEntry'
          description: >-
            The customer's basic personal details (first name, last name, date
            of birth, nationality).
          examples:
            - status: incomplete
              requiredFields:
                - firstName
                - lastName
                - dateOfBirth
                - nationality
        residentialAddress:
          $ref: '#/components/schemas/RequirementEntry'
          description: The customer's residential address.
          examples:
            - status: incomplete
              requiredFields:
                - street
                - locality
                - postalCode
                - administrativeArea
        identityDocuments:
          $ref: '#/components/schemas/RequirementEntry'
          description: >-
            Identity document submission (passport, driver's license, residence
            permit, etc.).
          examples:
            - status: incomplete
        selfie:
          $ref: '#/components/schemas/RequirementEntry'
          description: Selfie photo submission.
          examples:
            - status: incomplete
        taxIdentifiers:
          $ref: '#/components/schemas/RequirementEntry'
          description: Tax identifier submission (SSN, CPF, TIN, etc.).
          examples:
            - status: incomplete
              requiredFields:
                - ssn
        proofOfAddress:
          $ref: '#/components/schemas/RequirementEntry'
          description: Proof-of-address document submission.
          examples:
            - status: incomplete
        phoneNumber:
          $ref: '#/components/schemas/RequirementEntry'
          description: Customer's phone number in E.164 format.
          examples:
            - status: incomplete
        questionnaires:
          $ref: '#/components/schemas/RequirementEntry'
          description: >-
            Due-diligence questionnaires the customer must complete (Customer
            Due Diligence and Enhanced Due Diligence). When incomplete,
            `requiredFields` lists the outstanding questionnaire types.
          examples:
            - status: incomplete
              requiredFields:
                - customerDueDiligence
                - enhancedDueDiligence
        proofOfIncome:
          $ref: '#/components/schemas/RequirementEntry'
          description: Proof-of-income document submission for Enhanced Due Diligence.
          examples:
            - status: incomplete
      unevaluatedProperties:
        not: {}
      description: >-
        Outstanding and completed requirements for the identity, keyed by
        requirement category. Only requirements that apply to the customer are
        present.
    IdentityVerificationChallenge:
      type: object
      required:
        - url
        - expiresAt
      properties:
        url:
          type: string
          description: >-
            Fully-formed challenge URL. Render directly without parsing; the URL
            embeds the challenge token.
        expiresAt:
          type: string
          format: date-time
          description: >-
            Timestamp at which the challenge URL expires. Partners must surface
            the challenge to the customer before this time.
      unevaluatedProperties:
        not: {}
      description: >-
        A MoonPay-hosted challenge a partner must surface to the customer to
        complete identity verification.
    MonetaryDecimal:
      type: string
      pattern: ^[0-9]+(\.[0-9]{1,2})?$
      description: >-
        A monetary amount expressed as a decimal string, e.g. "55000" or
        "1234.56".
    PaymentMethodType:
      type: string
      enum:
        - apple_pay
        - card
        - ach
        - fps
        - fps_open_banking
        - google_pay
        - sepa
        - sepa_open_banking
        - pix
        - paypal
        - venmo
        - cash_app
        - revolut_pay
        - moonpay_balance
        - interac
    RequirementEntry:
      type: object
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/RequirementItemStatus'
          description: Whether the requirement has been completed.
        requiredFields:
          type: array
          items:
            $ref: '#/components/schemas/RequirementFieldName'
          description: >-
            When status is incomplete, the outstanding fields the customer must
            provide for this requirement. Populated for `basicDetails`,
            `residentialAddress`, `taxIdentifiers`, and `questionnaires`;
            omitted when status is complete or for other requirement types,
            which do not surface field-level detail.
      unevaluatedProperties:
        not: {}
      description: Status of a single requirement group on an identity.
    RequirementItemStatus:
      type: string
      enum:
        - incomplete
        - complete
      description: The completion state of a requirement item.
    RequirementFieldName:
      type: string
      enum:
        - firstName
        - lastName
        - dateOfBirth
        - nationality
        - street
        - locality
        - postalCode
        - country
        - administrativeArea
        - ssn
        - cpf
        - tin
        - customerDueDiligence
        - enhancedDueDiligence
      description: >-
        A field a customer must provide to fulfil a requirement. Members match
        the field names used in the requirement-fulfilment endpoints (e.g. PATCH
        /platform/v1/customers/{id}/kyc).
  securitySchemes:
    AccessTokenAuth:
      type: http
      scheme: bearer
      description: |-
        Bearer authentication header using an access token.

        Example: `Authorization: Bearer <accessToken>`
    SecretApiKeyInHeaderAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: |-
        Secret key authentication via the `X-Api-Key` header.

        Example: `X-Api-Key: <secretKey>`

````