---
title: "Update a contact"
method: PATCH
path: "/contacts/{id}"
tags: ["Contacts"]
---

# Update a contact

`PATCH /contacts/{id}`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/contacts/{id}`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

isActive=false marks the contact inactive (hidden from pickers and default lists, history kept); isActive=true reactivates it. type switches between customer, supplier (vendor), and both. A rename onto another live contact's normalized name is refused with 409 duplicate_contact.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `email` string, email, nullable
  - `phone` string, nullable
  - `taxNumber` string, nullable
  - `type` 'customer' | 'supplier' | 'both'
  - `paymentTermsDays` integer
  - `notes` string, nullable
  - `currencyCode` string
  - `isActive` boolean

## Response `200`

Updated contact

## Other responses

- `409`: duplicate_contact: another contact already has this name
- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/01c3e57d281f?raw)
