---
title: "Update customer contact"
method: PATCH
path: "/api/v1/customers/{id}"
tags: ["customers"]
---

# Update customer contact

`PATCH /api/v1/customers/{id}`

Partially updates a customer contact (e-mail/phone) and name. Document, type and externalId are immutable.

## Path parameters

- `id` string, uuid, required

## Request body

- CustomerUpdate
  - `email` string, nullable
  - `phone` string, nullable
  - `birth_date` string, nullable
  - `social_name` string, nullable
  - `phone_is_whatsapp` boolean
  - `name` string

## Response `200`

Customer updated.

- CustomerUpdateResponse
  - `id` string, required
  - `document` object, required
    - `value` string, required
    - `type` 'CPF' | 'CNPJ', required
  - `type` 'PF' | 'PJ', required
  - `origin` 'ERP' | 'ORDER' | 'MANUAL', required
  - `external_id` string, nullable, required
  - `name` string, required
  - `email` string, nullable, required
  - `phone` string, nullable, required
  - `birth_date` string, nullable, required
  - `social_name` string, nullable, required
  - `phone_is_whatsapp` boolean, required
  - `total_orders` number, required
  - `total_spent` number, required
  - `avg_ticket` number, required
  - `first_order_at` string, nullable, required
  - `last_order_at` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `400` — Request payload, query string, or path parameter failed validation.
- `401` — Authentication is missing, malformed, expired, or refers to a session that is no longer active.
- `403` — The caller is authenticated but lacks the required permission for this action.
- `404` — Customer not found in the caller account.
- `422` — The payload passed schema validation but breaks a domain invariant.
- `500` — Unexpected server error. The response body never leaks internal details.

---

[API](https://skmtc.dev/kruzer-corp/apis/oms-api.md) · [All operations](https://skmtc.dev/kruzer-corp/apis/oms-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kruzer-corp/oms-api/revisions/985f572bb039/schema)
