---
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 — update customer
  - `antifraud_info` UpdateCustomerAntifraudInfo, nullable
    - `account_created_at` integer
    - `first_paid_at` integer
  - `date_of_birth` string — It is a parameter that allows to identify the date of birth of the client.
  - `default_payment_source_id` string — It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)
  - `email` string — An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc).
  - `name` string — Client's name
  - `phone` string — Is the customer's phone number
  - `plan_id` string — Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription
  - `default_shipping_contact_id` string — It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact)
  - `corporate` boolean — It is a value that allows identifying if the email is corporate or not.
  - `custom_reference` string — It is an undefined value.
  - `fiscal_entities` FiscalEntityRequest[]
    - `address` FiscalEntityRequestAddress, required
      - `street1` string, required
      - `street2` string
      - `postal_code` string, required
      - `city` string, required
      - `state` string
      - `country` string — this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
      - `residential` boolean
      - `external_number` string
    - `tax_id` string
    - `email` string
    - `phone` string
    - `metadata` unknown
    - `company_name` string
  - `metadata` object
  - `national_id` string — It is a parameter that allows to identify the national identification number of the client.
  - `payment_sources` CustomerPaymentMethodsRequest[] — Contains details of the payment methods that the customer has active or has used in Conekta
    - union
      - PaymentMethodTokenRequest — Contains details of the payment methods that the customer has active or has used in Conekta
        - `type` string, required — Type of payment method
        - `token_id` string, required — Token id that will be used to create a "card" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.3.0/reference/createsubscription] tutorial for more information on how to tokenize cards.
      - PaymentMethodCashRequest — Contains details of the payment methods that the customer has active or has used in Conekta
        - `type` string, required — Type of payment method
        - `expires_at` integer
      - PaymentMethodSpeiRequest — Contains details of the payment methods that the customer has active or has used in Conekta
        - `type` string, required — Type of payment method
        - `expires_at` integer
  - `shipping_contacts` CustomerShippingContactsRequest[] — Contains the detail of the shipping addresses that the client has active or has used in Conekta
    - `phone` string — Phone contact
    - `receiver` string — Name of the person who will receive the order
    - `between_streets` string — The street names between which the order will be delivered.
    - `address` CustomerShippingContactsRequestAddress, required — Address of the person who will receive the order
      - `street1` string
      - `street2` string
      - `postal_code` string
      - `city` string
      - `state` string
      - `country` string — this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
      - `residential` boolean, nullable
    - `parent_id` string
    - `default` boolean, nullable
    - `deleted` boolean, nullable
    - `metadata` object — Metadata associated with the shipping contact
  - `subscription` SubscriptionRequest — It is a parameter that allows to identify in the response, the detailed content of the plans to which the client has subscribed
    - `plan_id` string, required
    - `card_id` string
    - `trial_end` integer

## 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/conekta/apis/conekta-api.md) · [All operations](https://skmtc.net/conekta/apis/conekta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conekta/conekta-api/revisions/029df3052bca/schema)
