On this page6 sections
POST/api/outlets/create-outletOutletsPermission: outlet.create
Create Outlet
Creates a new store outlet with a tenant-unique code and triggers `outlet.created` webhook events if subscribed.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
namestringrequired
name parameter.
codestringrequired
code parameter.
titlestring | nulloptional
title parameter.
cashierstring | nulloptional
cashier parameter.
addressstring | nulloptional
address parameter.
phonestring | nulloptional
phone parameter.
whatsappstring | nulloptional
whatsapp parameter.
Responses
Select a status code to inspect schema.
Created — Outlet created successfully.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/outlets/create-outlet
curl -X POST "https://api.invoger.com/api/outlets/create-outlet" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "name": "Outlet Kemang", "code": "02", "title": "INVOGER KEMANG", "cashier": "Default Cashier", "address": "Jl. Kemang Raya No. 8" }'Interactive playground
Response
application/json
{
"success": true,
"message": "Outlet created successfully",
"data": {
"id": "o2b3c4d5-e6f7-8a9b-0c1d-2e3f4a5b6c7d",
"code": "02",
"name": "Outlet Kemang"
}
}