---
title: "Partial update a vendor"
method: PATCH
path: "/v1/vendors/{vendorId}"
tags: ["Vendors"]
---

# Partial update a vendor

`PATCH /v1/vendors/{vendorId}`

## Request

- Base URL: `https://api.frihet.io`
- URL: `https://api.frihet.io/v1/vendors/{vendorId}`
- Auth: API key in header `X-API-Key`

Update only the provided fields on an existing vendor.

## Path parameters

- `vendorId` string, required

## Request body

- VendorCreate
  - `name` string, required: Vendor name (person or company)
  - `email` string, email: Contact email
  - `phone` string: Phone number
  - `taxId` string: Tax identification number (NIF/CIF/VAT)
  - `address` Address: Structured address. Canonical fields are `province` and `zip`. The aliases `state` and `postalCode` are also accepted for backward compatibility.
    - `street` string
    - `city` string
    - `province` string: Province or state (canonical field)
    - `zip` string: Postal/ZIP code (canonical field)
    - `country` string
    - `state` string: Alias for `province` (backward compatibility)
    - `postalCode` string: Alias for `zip` (backward compatibility)

## Response `200`

Vendor updated

- Vendor
  - `id` string: Unique identifier
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `name` string, required: Vendor name (person or company)
  - `email` string, email: Contact email
  - `phone` string: Phone number
  - `taxId` string: Tax identification number (NIF/CIF/VAT)
  - `address` Address: Structured address. Canonical fields are `province` and `zip`. The aliases `state` and `postalCode` are also accepted for backward compatibility.
    - `street` string
    - `city` string
    - `province` string: Province or state (canonical field)
    - `zip` string: Postal/ZIP code (canonical field)
    - `country` string
    - `state` string: Alias for `province` (backward compatibility)
    - `postalCode` string: Alias for `zip` (backward compatibility)

## Other responses

- `400`: Bad request - invalid parameters or request body
- `401`: Authentication required or invalid API key
- `404`: Resource not found
- `429`: Rate limit exceeded (100 requests per minute)
- `500`: Internal server error

---

[API](https://skmtc.dev/frihet/apis/frihet-api.md) · [All operations](https://skmtc.dev/frihet/apis/frihet-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frihet/apis/frihet-api/revisions/3dd37f6a72d1?raw)
