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

# Create a vendor

`POST /vendors`

## Request body

- CreateVendor
  - `name` string, required
  - `email` string, email
  - `description` string
  - `type` 'business' | 'individual'
  - `categories` string[]

## Response `200`

OK

- object
  - `message` string, required
  - `status` boolean, required
  - `error` boolean, required
  - `data` object
    - `vendor` Vendor — Supplier / payee
      - `code` string
      - `name` string
      - `email` string, email, nullable
      - `description` string, nullable
      - `type` 'business' | 'individual', nullable
      - `status` string
      - `categories` Category[]
        - `code` string
        - `name` string
        - `description` string, nullable
        - `slug` string, nullable
        - `status` string
        - `isSubCategory` boolean
        - `parent` Category — recursive
        - `children` Category[]

## Other responses

- `400` — Bad request
- `401` — Unauthorized

---

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