---
title: "Update a customer"
method: PATCH
path: "/v1/customers/{customerId}"
tags: ["Customers"]
---

# Update a customer

`PATCH /v1/customers/{customerId}`

Update one or more fields of an existing customer.

## Path parameters

- `customerId` string, required

## Request body

- UpdateCustomerRequest
  - `name` string
  - `email` string, email
  - `document` string
  - `documentType` 'CPF' | 'CNPJ'
  - `phone` string
  - `isActive` boolean
  - `metadata` object

## Response `200`

Customer updated.

- object
  - `customer` Customer
    - `customerId` string — Merchant-facing customer slug (e.g., `cus_ab12cd34ef`). Use this as the `{customerId}` path parameter in subsequent calls.
    - `name` string
    - `email` string
    - `document` string
    - `phone` string
    - `externalId` string
    - `isActive` boolean
    - `createdAt` string, date-time
  - `message` string

## Other responses

- `400` — Validation error.
- `401` — Missing or invalid authentication token.
- `404` — Resource not found.

---

[API](https://skmtc.net/yuvexpay/apis/yuvexpay-api.md) · [All operations](https://skmtc.net/yuvexpay/apis/yuvexpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yuvexpay/yuvexpay-api/versions/0d036504e049/schema)
