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

# Update Customer

> Updates an existing customer's information. Currently, only the email address can be updated. Once the customer's KYC has been approved, this endpoint can no longer change the email — see the `email` field description and the `400` response below.

> [!NOTE]
>
> The `email` field is only accepted while the customer's KYC has not been approved yet: no email set, no KYC submitted, one currently `IN_REVIEW`, or a previous attempt that `FAILED` — any of these still allow changing it. Once the KYC is approved, the email is frozen: this endpoint answers `400` with error code `20081` (`CustomerEmailFrozenException`) and leaves the email untouched. Contact Ripio support to change it in that case.


## OpenAPI

````yaml ramps-api/openapi.json PUT /api/v1/customers/{customerId}/
openapi: 3.1.0
info:
  title: Ripio Ramp API
  version: v1
  description: >-
    API for Ripio ramp services, enabling partners to integrate On-Ramp,
    Off-Ramp, customer management, KYC processes, and other financial
    functionalities. This API is RESTful, uses JSON for requests and responses,
    and standard HTTP status codes. This document is based on the
    'onramp-api.pdf' provided and aims to be compliant with OpenAPI
    Specification v3.1.0. The PDF indicates that the API documentation is a
    draft and subject to change.
servers:
  - url: https://skala-sandbox.ripio.com
    description: Sandbox environment
  - url: https://skala.ripio.com
    description: Production environment
security:
  - BearerToken: []
tags:
  - name: Authentication
    description: Operations related to API authentication and authorization.
  - name: Support Tickets
    description: >-
      Operations for raising and tracking customer support tickets with Ripio's
      support team. This feature must be enabled for your account by the Ripio
      team.
  - name: Customers
    description: Operations related to customer management.
  - name: KYC
    description: Operations related to Know Your Customer processes.
  - name: Investor Profile
    description: >-
      Brazilian accounts only: the investor-profile (suitability) questionnaire
      required by Resolução BCB nº 520/2025.
  - name: Fiat Accounts
    description: Operations related to managing fiat accounts and their requirements.
  - name: Quotes
    description: Operations related to obtaining and managing conversion quotes.
  - name: On-Ramp
    description: Operations related to fiat-to-crypto (on-ramp) processes.
  - name: Off-Ramp
    description: Operations related to crypto-to-fiat (off-ramp) processes.
  - name: Refunds
    description: >-
      Operations for returning the money of an on-ramp or off-ramp operation
      that could not be completed. Each ramp must be enabled for your account by
      the Ripio team.
  - name: Transactions
    description: Operations related to listing and managing all transaction types.
  - name: Networks
    description: >-
      Operations related to retrieving available deposit and withdrawal
      networks.
  - name: Rates
    description: Operations related to retrieving market rates.
  - name: Transaction Limits
    description: >-
      Operations related to retrieving per-transaction limits by currency and
      ramp operation.
  - name: Sandbox
    description: Operations specific to the sandbox environment for testing purposes.
  - name: Webhooks
    description: Webhook event notifications from Ripio Ramp API.
  - name: Sell and Pay
    description: >-
      Endpoints for managing Sell and Pay transactions, which allow customers to
      convert cryptocurrency to fiat currency and pay merchants via QR codes
paths:
  /api/v1/customers/{customerId}/:
    put:
      tags:
        - Customers
      summary: Update Customer
      description: >-
        Updates an existing customer's information. Currently, only the email
        address can be updated. Once the customer's KYC has been approved, this
        endpoint can no longer change the email — see the `email` field
        description and the `400` response below.
      operationId: updateCustomer
      parameters:
        - $ref: '#/components/parameters/CustomerId'
      requestBody:
        required: true
        description: Customer update payload.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerUpdateRequest'
      responses:
        '200':
          description: Customer updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponse'
        '400':
          description: >-
            Bad Request - the email cannot be changed. Either the customer's KYC
            is already approved (error code `20081`,
            `CustomerEmailFrozenException` — contact Ripio support to change it
            in that case), or, on the unified KYC flow, the identity provider
            rejected the mid-OTP email change (error code `20098`,
            `KycServiceChangeEmailException`). In both cases the email is left
            untouched.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 20081
                type: CustomerEmailFrozenException
                detail:
                  message: >-
                    Customer '3fa85f64-5717-4562-b3fc-2c963f66afa6' email cannot
                    be changed because a KYC process already registered it.
                status: 400
        '401':
          description: Unauthorized - Invalid or missing access token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 40001
                type: NotAuthenticated
                detail:
                  message: Authentication credentials were not provided.
                  code: not_authenticated
                status: 401
        '404':
          description: Not Found - Customer not found or inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: 40004
                type: NotFound
                detail:
                  message: Not found.
                  code: not_found
                status: 404
components:
  parameters:
    CustomerId:
      name: customerId
      in: path
      required: true
      description: Unique identifier for the customer.
      schema:
        type: string
        format: uuid
      example: 8142b065-79c4-4f48-9e33-11b17bc658d4
  schemas:
    CustomerUpdateRequest:
      type: object
      description: Payload for updating an existing customer.
      properties:
        email:
          type: string
          format: email
          description: >-
            The new email for the customer. Accepted while the customer's KYC
            has not been approved yet. Once the KYC is approved, this field is
            rejected with `400` and error code `20081`
            (`CustomerEmailFrozenException`); contact Ripio support to change it
            in that case. On the unified KYC flow, while the customer is waiting
            on the OTP, this change is also forwarded to the identity provider,
            which resends the same still-valid code to the new address; if the
            provider rejects it, the update answers `400` with error code
            `20098` (`KycServiceChangeEmailException`) and the email is left
            untouched.
          example: new@email.com
      required:
        - email
    CustomerResponse:
      type: object
      description: Response payload for a customer.
      properties:
        customerId:
          type: string
          format: uuid
          description: >-
            A unique customer's ID. Either the one you supplied on creation or
            the one Ripio generated for you.
          example: 7142b065-79c4-4f48-9e33-11b23bc689e2
        email:
          type: string
          format: email
          description: The email of the individual or juridical person.
          example: individual@mail.com
        phoneNumber:
          type: string
          description: >-
            The phone number of the individual or juridical person. `null` if
            not provided.
          example: '+5491112345678'
        isActive:
          type: boolean
          description: >-
            Whether the customer account is active. Returns `false` after the
            customer has been deactivated; in that case, operations on the
            customer's resources (KYC, fiat accounts, transactions, sessions)
            return 404.
          example: true
        createdAt:
          type: string
          format: date-time
          description: The date and time of customer's creation.
          example: '2024-04-10T18:17:07.702533Z'
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Application-specific error code.
        type:
          type: string
          description: Type of error or exception.
        detail:
          type:
            - object
            - array
          description: >-
            Error details. The shape depends on the error:


            - Most business errors return an object with a `message` key.

            - Field validation errors return an object keyed by field name, each
            holding an array of `{ message, code }`.

            - Request-level validation errors (e.g. a missing query parameter)
            return a bare array of `{ message, code }`.
          properties:
            message:
              type: string
              description: Detailed error message.
          additionalProperties: true
        status:
          type: integer
          description: HTTP status code.
      required:
        - code
        - type
        - detail
        - status
  securitySchemes:
    BearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Access token obtained via
        [/oauth2/token/](/ramps-api/authentication/acquire-access-token). Use as
        `Authorization: Bearer <access_token>`.

````

## Related topics

- [Error Codes](https://docs.ripio.com/ramps-api/errors/error-codes.md)
- [Investor Profile (Brazil)](https://docs.ripio.com/ramps-api/investor-profile/introduction.md)
- [Partner-submitted KYC (API)](https://docs.ripio.com/ramps-api/kyc/kyc-via-api-overview.md)
- [Update Sell and Pay transaction](https://docs.ripio.com/ramps-api/sell-and-pay/update-sell-and-pay.md)
- [Overview & which model to use](https://docs.ripio.com/ramps-api/kyc/overview.md)


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