On this page6 sections
POST/api/outlets/update-outletOutletsPermission: outlet.update
Update Outlet
Updates an existing outlet's details. Enforces outlet scope restriction and unique outlet code constraints.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Outlet Scope Enforcement: Results and mutations are automatically scoped to the actor's accessible outlets when the
outletmodule restriction applies.
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.
idstring (uuid)required
id parameter.
Responses
Select a status code to inspect schema.
OK — Outlet updated successfully.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/outlets/update-outlet
curl -X POST "https://api.invoger.com/api/outlets/update-outlet" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "id": "o1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "name": "Outlet Senopati Flagship", "code": "01" }'Interactive playground
Response
application/json
{
"success": true,
"message": "Outlet updated successfully",
"data": {
"id": "o1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c",
"name": "Outlet Senopati Flagship",
"code": "01"
}
}