---
title: "Update a customer"
method: PUT
path: "/api/v1/customers/{id}"
tags: ["Customer"]
---

# Update a customer

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

Updates a customer email, phone, address, etc.

## Path parameters

- `id` string, required

## Request body

- UpdateCustomerDto
  - `name` string — The name
  - `phone` string — The phone
  - `organizationName` string — The organization name
  - `address` AddressDetailDto
    - `line1` string
    - `line2` string
    - `city` string
    - `state` string
    - `postalCode` string
    - `country` string
  - `shipping` FullAddressDetailDto
    - `name` string — The name
    - `email` string — The email
    - `phone` string — The phone
    - `organizationName` string — The organization name
    - `address` AddressDetailDto
      - `line1` string
      - `line2` string
      - `city` string
      - `state` string
      - `postalCode` string
      - `country` string
  - `visibility` string
  - `metadata` object — Customer's metadata
  - `email` string, required — The email
  - `taxIds` CreateTaxIdsDto
    - `object` string
    - `data` CreateTaxIdDto[]
      - `name` string
      - `value` string
      - `country` string

## Response `200`

- CustomerDto
  - `name` string — The name
  - `email` string — The email
  - `phone` string — The phone
  - `organizationName` string — The organization name
  - `address` AddressDetailDto
    - `line1` string
    - `line2` string
    - `city` string
    - `state` string
    - `postalCode` string
    - `country` string
  - `id` string, uuid, required — Customer's id
  - `createdAt` string, date-time — Customer's created at
  - `updatedAt` string, date-time — Customer's updated at
  - `customerReferenceId` string — Customer's reference id
  - `shipping` FullAddressDetailDto
    - `name` string — The name
    - `email` string — The email
    - `phone` string — The phone
    - `organizationName` string — The organization name
    - `address` AddressDetailDto
      - `line1` string
      - `line2` string
      - `city` string
      - `state` string
      - `postalCode` string
      - `country` string
  - `taxIds` TaxIdsDto
    - `object` string
    - `data` TaxIdDto[]
      - `id` string, required
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `name` string
      - `value` string
      - `country` string
      - `customerId` string, uuid, required
  - `visibility` string
  - `metadata` object — Customer's metadata
  - `customerNumber` string, required — Customer number assigned by the system

## Other responses

- `500`

---

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