Overview / Stock & supply / Create a warehouse

Create a warehouse

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

Request body

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

Response fields

FieldTypeDescription
id string —
name string —
code string|null —
address string|null —
phone string|null —
region string|null —
is_active boolean —

Examples

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

curl -X POST 'https://api.flactrum.com/v1/warehouses' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Merkez depo",
    "code": "MRK"
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43mzk7wcn9xm2q8hszmgf4k",
        "name": "Merkez depo",
        "code": "MRK",
        "address": null,
        "phone": null,
        "region": null,
        "is_active": true,
        "created_at": "2026-10-04T14:27:12+00:00",
        "updated_at": "2026-10-04T14:27:12+00:00"
    }
}