Overview / Operations / Create a branch

Create a branch

post https://api.flactrum.com/v1/branches
Required scope branches.write
Panel screenOperations → Branches → New branch
Success status201
Returns One Branch object

Request body

FieldTypeDescription
name * string —
code string|null Must be unique within the brand.
address string|null —
phone string|null —
city string|null —
region string|null —
is_active boolean —
opened_at string|null —
monthly_rent number|null —
latitude number|null Send together with longitude.
longitude number|null Send together with latitude.
working_hours object Opening hours per weekday, keyed 1 (Monday) to 7 (Sunday): {"1": {"opens": "09:00", "closes": "22:00"}}. A missing day is closed; an empty object means open around the clock. A closing time earlier than the opening time crosses midnight. Kiosks in the branch show a closed screen outside these hours.

Response fields

FieldTypeDescription
id string ULID.
name string —
code string|null Unique within the brand. Useful as your own reference key.
city string|null —
region string|null Region name used for regional-manager scoping.
address string|null —
phone string|null —
is_active boolean —
opened_at string|null The date the branch opened for business, not a daily hour.
monthly_rent number|null Monthly rent; the branch analysis spreads it over the days.
latitude number|null —
longitude number|null —
working_hours object Opening hours per weekday, keyed 1 (Monday) to 7 (Sunday): {"1": {"opens": "09:00", "closes": "22:00"}}. A missing day is closed; an empty object means open around the clock. A closing time earlier than the opening time crosses midnight. Kiosks in the branch show a closed screen outside these hours.
created_at string —
updated_at string —

Examples

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

curl -X POST 'https://api.flactrum.com/v1/branches' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Bebek",
    "code": "BBK",
    "city": "İstanbul",
    "region": "Avrupa",
    "phone": "+90 212 000 00 00"
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43mxk3hpyycj6z0hgyvc1t9",
        "name": "Bebek",
        "code": "BBK",
        "city": "İstanbul",
        "region": "Avrupa",
        "address": null,
        "phone": "+90 212 000 00 00",
        "is_active": true,
        "opened_at": null,
        "monthly_rent": null,
        "latitude": null,
        "longitude": null,
        "working_hours": [],
        "created_at": "2026-10-04T14:26:07+00:00",
        "updated_at": "2026-10-04T14:26:07+00:00"
    }
}