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

# Create a vendor

`POST /suppliers`

## Request

- Base URL: `https://api.groundflag.com/api/v1/public`
- URL: `https://api.groundflag.com/api/v1/public/suppliers`
- Auth: HTTP bearer

## Request body

- VendorInput
  - `name` string, required
  - `email` string, email, nullable
  - `phone` string, nullable
  - `whatsapp` string, nullable
  - `website` string, nullable
  - `tax_id` string, nullable
  - `address` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `postal_code` string, nullable
  - `country` string, nullable
  - `notes` string, nullable
  - `is_active` boolean

## Response `201`

Created

- object
  - `success` boolean
  - `message` string, nullable
  - `data` Vendor
    - `id` string
    - `name` string
    - `email` string, nullable
    - `phone` string, nullable
    - `website` string, nullable
    - `tax_id` string, nullable
    - `city` string, nullable
    - `state` string, nullable
    - `is_active` boolean
    - `created_at` string, date-time, nullable

## Other responses

- `401`: Missing, invalid, revoked or expired token
- `403`: The token lacks the required scope
- `422`: Invalid input
- `429`: Rate limit reached; retry after the Retry-After header

---

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