On this page6 sections
POST/api/print-settings/save-templatePrint SettingsPermission: settings.update
Save Print Template
Atomically saves custom thermal receipt header and footer blocks for an outlet in both `PrintTemplate` and `Outlet` records.
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.
outletIdstring (uuid)required
Outlet UUID whose receipt header/footer template is configured.
headerarray<object | null>required
Ordered list of receipt header blocks/lines.
footerarray<object | null>required
Ordered list of receipt footer blocks/lines.
Responses
Select a status code to inspect schema.
OK — Template saved successfully.application/json
successenum('true')
Success (true).
messagestring
Message.
dataobject | null
Response payload or null.
POST/api/print-settings/save-template
curl -X POST "https://api.invoger.com/api/print-settings/save-template" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "outletId": "o1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "header": [ { "text": "INVOGER FLAGSHIP", "bold": true } ], "footer": [ { "text": "Thank you for visiting!" } ] }'Interactive playground
Response
application/json
{
"success": true,
"message": "Template saved successfully",
"data": {
"id": "tpl_01"
}
}