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

# Update customer

`PATCH /customer/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- InputCustomer
  - `name` string — The customer name
  - `tax_id_type` 'rfc' | 'cnpj' | 'cpf' | 'ruc' | 'curp' | 'le' | 'dni' | 'lm' | 'pas' | 'ce' | 'nit' | 'cc' | 'pa' | 'ti' | 'nuip' | 'ppt' | 'pep' | 'cuil' | 'cuit' | 'other' — The type of tax identification of the customer
  - `tax_id` string — The customer's tax identification number
  - `external_id` string, required — An external ID to identify a user. It can be the merchant's user ID or other tracking ID.
  - `withdrawal_account` CustomerAccountDetails
    - `account_number` string, required
    - `branch` string
    - `account_format` 'iban' | 'clabe' | 'cci' | 'pix' | 'bre_b' | 'alias' | 'cbu' | 'cvu' — The type of customer's account
    - `bicfi` string — The bank BICFI code

## Response `200`

customer details updated

- CustomerResponse
  - `name` string, required
  - `document_type` string, nullable
  - `document_number` string, nullable
  - `email` string, email, nullable
  - `id` string, uuid, required

## Other responses

- `400` — Bad Request - Invalid input or malformed data
- `401` — Unauthorized access due to missing or invalid API key
- `403` — Permission denied for the requested action.
- `404` — The requested resource does not exist.
- `405` — The HTTP method used is not allowed for this endpoint.
- `406` — The Accept header cannot be satisfied.
- `415` — The request's content type is not supported.
- `429` — Too many requests, the request has been throttled.
- `500` — A generic internal API error occurred.

---

[API](https://skmtc.net/prometeoapi/apis/account-validation-v2.md) · [All operations](https://skmtc.net/prometeoapi/apis/account-validation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prometeoapi/account-validation-v2/revisions/9c278fe91cbd/schema)
