---
title: "Update Customer"
method: PUT
path: "/customers/{customer_id}"
tags: ["customers"]
---

# Update Customer

`PUT /customers/{customer_id}`

Update an existing customer.

## Path parameters

- `customer_id` string, uuid, required

## Headers

- `X-API-Key` string, nullable

## Request body

- CustomerUpdate — Schema for updating a customer.
  - `name` string, nullable
  - `organization_id` string, uuid, nullable — ID of the organization this customer belongs to
  - `document_type` 'mx_rfc' | 'mx_curp' | 'passport' — Document type enum.
  - `document_number` string, nullable
  - `email` string, email, nullable
  - `phone_number` string, nullable
  - `customer_metadata` object, nullable

## Response `200`

Successful Response

- CustomerResponse — Schema for customer responses.
  - `name` string, required — Customer full name
  - `org_id` string, uuid, required — ID of the organization this customer belongs to
  - `document_type` 'mx_rfc' | 'mx_curp' | 'passport', required — Document type enum.
  - `document_number` string, required — Document number
  - `email` string, email, nullable — Customer email address
  - `phone_number` string, nullable — Customer phone number
  - `customer_metadata` object, nullable — Additional customer metadata
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/monato/apis/direct-debit-service.md) · [All operations](https://skmtc.net/monato/apis/direct-debit-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monato/direct-debit-service/versions/23bb85042119/schema)
