---
title: "Create a vendor"
method: POST
path: "/vendors"
tags: ["Vendors"]
---

# Create a vendor

`POST /vendors`

## Request

- Base URL: `https://api.lumabill.ch/v1`
- URL: `https://api.lumabill.ch/v1/vendors`
- Auth: HTTP bearer

## Request body

- VendorWrite
  - `name` string, required
  - `email` string, email, nullable
  - `address` string, nullable
  - `city` string, nullable
  - `zip` string, nullable
  - `country` string, nullable
  - `vat_number` string, nullable

## Response `201`

Vendor created

- Vendor
  - `id` string, uuid, required
  - `name` string, required
  - `email` string, email, nullable
  - `address` string, nullable
  - `city` string, nullable
  - `zip` string, nullable
  - `country` string, nullable
  - `vat_number` string, nullable
  - `created_at` string, date-time, required

## Other responses

- `400`: Validation error
- `401`: Invalid or missing API key
- `403`: Subscription required or read-only key on a write endpoint
- `429`: Rate limit exceeded
- `500`: Internal server error

---

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