---
title: "Update a customer"
method: PATCH
path: "/customers/{customer_id}"
tags: ["Customers"]
---

# Update a customer

`PATCH /customers/{customer_id}`

This API let’s you to update a customer’s information using customer_id.

## Path parameters

- `customer_id` string, required

## Request body

- UpdateCustomerRequest — Payload to update customer
  - `name` string — Name of the Customer
  - `primaryEmail` string — Primary email of the customer
  - `address` Address — billing address of the customer
    - `phoneNumber` string — Contact number
    - `line1` string — Address line 1 (eg. Street, PO Box, Company Name)
    - `line2` string — Address line 2 (eg. apartment, suite, unit or building)
    - `postalCode` string — ZIP or postal code
    - `city` string — City, district, suburb, town or village
    - `state` string — State, county, province or region
    - `country` string — Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)

## Response `200`

Response for Get customer requests

- Customer — Structure of customer
  - `id` string, required — Identifier of customer
  - `togaiCustomerId` string, required — Unique identifier of customer
  - `name` string, required — Name of the Customer
  - `primaryEmail` string, required — Primary email of the customer
  - `billingAddress` string, required — billing address of the customer
  - `address` Address, required — billing address of the customer
    - `phoneNumber` string — Contact number
    - `line1` string — Address line 1 (eg. Street, PO Box, Company Name)
    - `line2` string — Address line 2 (eg. apartment, suite, unit or building)
    - `postalCode` string — ZIP or postal code
    - `city` string — City, district, suburb, town or village
    - `state` string — State, county, province or region
    - `country` string — Two letter country code [ISO-3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
  - `status` 'ACTIVE' | 'ARCHIVED', required — Status of the customer
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Error response
- `401` — Error response
- `403` — Error response
- `404` — Error response
- `429` — Error response
- `default` — Error response

---

[API](https://skmtc.net/togaihq/apis/togai-apis.md) · [All operations](https://skmtc.net/togaihq/apis/togai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/togaihq/togai-apis/revisions/442f5d8f4aa0/schema)
