---
title: "Update customer"
method: PUT
path: "/customers/{id}"
tags: ["Customers"]
---

# Update customer

`PUT /customers/{id}`

You can update customer-related data

## Path parameters

- `id` string, required

## Headers

- `Accept-Language` 'es' | 'en'
- `X-Child-Company-Id` string

## Request body

- UpdateCustomer — Request body to update a customer.
  - `name` string — Customer's name.
  - `email` string, email — Customer email address.
  - `phone` string — Customer phone number.
  - `corporate` boolean — True if the customer represents a company.
  - `custom_reference` string — Merchant-defined reference used to identify the customer in your system.
  - `metadata` object — Arbitrary metadata associated with the customer.
  - `payment_sources` CustomerPaymentMethodsRequest[] — Customer payment sources to create/attach (offline recurrent references).
    - `type` string, required — Type of payment method.
    - `expires_at` integer — Expiration date as unix timestamp (seconds).
  - `default_payment_source_id` string — Sets the default payment source for the customer (must be an existing payment source on the customer).
  - `default_fiscal_entity_id` string — Sets the default fiscal entity for the customer (must be an existing fiscal entity on the customer).
  - `default_shipping_contact_id` string — Sets the default shipping contact for the customer (must be an existing shipping contact on the customer).

## Response `200`

successful operation

## Other responses

- `401` — authentication error
- `402` — payment required error
- `422` — parameter validation error
- `500` — internal server error

---

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