Overview / Stock & supply / Create a supplier

Create a supplier

post https://api.flactrum.com/v1/suppliers
Required scope suppliers.write
Success status201
Returns One Supplier object

Request body

FieldTypeDescription
name * string —
code string|null Unique within the brand.
contact_name string|null —
phone string|null —
email string|null —
tax_number string|null —
address string|null —
is_active boolean —

Response fields

FieldTypeDescription
id string —
name string —
code string|null —
contact_name string|null —
phone string|null —
email string|null —
tax_number string|null —
address string|null —
is_active boolean —
purchase_order_count integer —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/suppliers' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Kahve Dünyası Toptan",
    "code": "KDT",
    "contact_name": "Ayşe Yılmaz",
    "email": "siparis@ornek.com"
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43mzkw81sf36ayjgbhxrxnz",
        "name": "Kahve Dünyası Toptan",
        "code": "KDT",
        "contact_name": "Ayşe Yılmaz",
        "phone": null,
        "email": "siparis@ornek.com",
        "tax_number": null,
        "address": null,
        "is_active": true,
        "purchase_order_count": 0,
        "created_at": "2026-10-04T14:27:13+00:00",
        "updated_at": "2026-10-04T14:27:13+00:00"
    }
}