On this page6 sections
POST/api/outlets/importOutletsPermission: outlet.create
Import Outlets (XLSX)
Batch imports or updates outlets from an Excel (.xlsx) spreadsheet (`multipart/form-data`, max 5 MB, max 5,000 rows). Requires `Code` and `Name` columns.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
filefile (binary)required
Excel (.xlsx) file containing required columns: Code, Name (max 5 MB, 5,000 rows).
Responses
Select a status code to inspect schema.
OK — Import completed.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/outlets/import
curl -X POST "https://api.invoger.com/api/outlets/import" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-F "file=@./import.xlsx"Interactive playground
Response
application/json
{
"success": true,
"message": "Outlets imported successfully",
"data": {
"createdCount": 3,
"updatedCount": 1
}
}