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

# Update a customer.

`PATCH /v2/customers/{customer_id}`

## Path parameters

- `customer_id` string, uuid, required — LedgerUp customer UUID.

## Request body

- CustomerUpdateRequest — Update-customer request. Unknown JSON fields are rejected. Omitted fields are unchanged.
  - `name` string — Customer name. Maximum 256 Unicode scalar values.
  - `external_id` string, nullable — Optional caller-supplied external identifier. Send null to clear.
  - `stripe_customer_id` string, nullable — Optional Stripe customer identifier. Send null to clear.
  - `quickbooks_customer_id` string, uuid, nullable — Optional QuickBooks customer UUID. Send null to clear.

## Response `200`

Updated.

- Customer
  - `id` string, uuid, required — Customer UUID.
  - `name` string, required — Customer name.
  - `external_id` string, nullable, required — Optional caller-supplied external identifier.
  - `stripe_customer_id` string, nullable, required — Optional Stripe customer identifier.
  - `quickbooks_customer_id` string, uuid, nullable, required — Optional QuickBooks customer UUID.
  - `created_at` integer, required — Unix timestamp in seconds.
  - `updated_at` integer, required — Unix timestamp in seconds.

## Other responses

- `400` — Bad request, invalid header, invalid amount/quantity/currency, or text validation failure.
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission, or reset was attempted outside the test namespace.
- `404` — Referenced or requested resource was not found.
- `408` — Request exceeded the 30 second timeout.
- `409` — Duplicate idempotency key, uniqueness conflict, or foreign-key conflict.
- `413` — Request body exceeded the 256 KiB limit.
- `415` — Write request content type was not application/json.
- `422` — Semantically invalid request, such as a service period with start greater than end.
- `429` — Rate limit exceeded.
- `500` — Internal server error or queue failure.

---

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