---
search:
  tags:
    - Suppliers
    - POST
seo:
  description: >-
    Admin, inventory manager, or branch manager. Registers a supplier, active
    from… Reference for the POST /api/v1/suppliers endpoint in the PharmaFlow
    API.
sidebar:
  label: Create a supplier
  badge: POST
title: Create a supplier
type: openapi-operation
---
Admin, inventory manager, or branch manager. Registers a supplier, active from creation. Absent contact fields are stored empty, and type, lead time, and reliability default.

`POST /api/v1/suppliers`

**Request body** (`application/json`, required)

- `name` (string, required)
- `tax_number` (string)
- `contact_person` (string)
- `phone` (string)
- `email` (string)
- `address` (string)
- `supplier_type` (string)
- `lead_time_days` (integer)
- `reliability_score` (number)

Request body example:

```json
{
  "name": "string",
  "tax_number": "string",
  "contact_person": "string",
  "phone": "string",
  "email": "string",
  "address": "string",
  "supplier_type": "string",
  "lead_time_days": -9007199254740991,
  "reliability_score": 0
}
```

**Responses**

- `201` — Supplier created
- `401` — Not authenticated
- `403` — Caller is not an admin, inventory manager, or branch manager

Response example, 201:

```json
{
  "id": "string",
  "name": "string",
  "tax_number": "string",
  "contact_person": "string",
  "phone": "string",
  "email": "string",
  "address": "string",
  "supplier_type": "string",
  "lead_time_days": -9007199254740991,
  "reliability_score": 0,
  "is_active": true,
  "created_at": "string",
  "updated_at": "string"
}
```
