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

# Update a Customer

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

You can supply all or any combination of the following properties in the request body:<br /><pre><code>
   {
      "first_name": "string",
      "last_name": "string",
      "email_address": "user@example.com",
      "send_email": true,
      "order_count": 0,
      "loyalty_points": 0,
      "is_subscribed_to_newsletter": true
   }
   </code></pre>

## Path parameters

- `id` integer, required

## Request body

- object, nullable

## Response `200`

The updated Customer

- TempestResponseV1Customer
  - `meta` object, nullable
  - `links` TempestLink[], nullable
    - `rel` string, nullable
    - `href` string, nullable
  - `validation_result` TempestValidationError[], nullable
    - `member_names` string[], nullable
    - `error_message` string, nullable
  - `errors` object, nullable
  - `data` V1Customer
    - `id` integer
    - `email_address` string, nullable
    - `first_name` string, required
    - `last_name` string, required
    - `order_count` integer
    - `loyalty_points` number, double
    - `created_date` string, date-time
    - `modified_date` string, date-time
    - `last_login_date` string, date-time
    - `last_login_attempt_date` string, date-time
    - `locked` boolean
    - `locked_date` string, date-time, nullable
    - `locked_end_date` string, date-time, nullable
    - `is_subscribed_to_newsletter` boolean
    - `addresses` V1CustomerAddress[], nullable
      - `id` integer
      - `created_date` string, date-time, nullable
      - `modified_date` string, date-time, nullable
      - `customer_id` integer
      - `is_preferred_billing_address` boolean
      - `is_preferred_shipping_address` boolean
      - `first_name` string, nullable
      - `last_name` string, nullable
      - `company` string, nullable
      - `address` string, required
      - `address2` string, nullable
      - `town` string, required
      - `county` string, nullable
      - `country` string, required
      - `friendly_country` string, nullable
      - `post_code` string, required
      - `telephone` string, nullable
      - `fax` string, nullable

## Other responses

- `400` — Invalid Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — No Customer for that Id found

---

[API](https://skmtc.dev/ekm/apis/ekm-partner-api.md) · [All operations](https://skmtc.dev/ekm/apis/ekm-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ekm/ekm-partner-api/revisions/853bef073bb3/schema)
