Skip to main content

Branding Settings

Get Branding Settings

curl -X GET "http://localhost:8080/api/v1/settings/branding" \
  -H "Authorization: Bearer YOUR_TOKEN"
Retrieve branding settings including app name, logo, footer text, and theme colors.

Response

data
object

Roles

Accessible by: admin, manager, cashier

Update Branding Settings

curl -X PUT "http://localhost:8080/api/v1/settings/branding" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "app_name": "My POS System",
    "app_logo": "https://example.com/logo.png",
    "footer_text": "© 2024 My Company",
    "theme_color": "#3B82F6",
    "theme_color_dark": "#1E40AF"
  }'
Update application branding settings.

Request Body

app_name
string
required
Application name (3-100 characters)
app_logo
string
URL to the application logo
Footer text (max 200 characters)
theme_color
string
required
Primary theme color in hex format (e.g., #3B82F6)
theme_color_dark
string
required
Dark mode theme color in hex format

Roles

Accessible by: admin only
curl -X POST "http://localhost:8080/api/v1/settings/branding/logo" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -F "logo=@/path/to/logo.png"
Upload and update the application logo image.

Form Data

Logo image file (max 5MB, image formats only)

Response

data
object
url
string
required
URL of the uploaded logo

Roles

Accessible by: admin only

Printer Settings

Get Printer Settings

curl -X GET "http://localhost:8080/api/v1/settings/printer" \
  -H "Authorization: Bearer YOUR_TOKEN"
Retrieve printer settings like connection string and paper width.

Response

data
object

Roles

Accessible by: admin, manager, cashier

Update Printer Settings

curl -X PUT "http://localhost:8080/api/v1/settings/printer" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "connection": "192.168.1.100",
    "paper_width": "80mm",
    "auto_print": true,
    "print_method": "BE"
  }'
Update global printer configuration.

Request Body

connection
string
required
Printer connection string, IP address, or device path
paper_width
string
required
Paper width: 58mm or 80mm
auto_print
boolean
required
Enable/disable automatic printing of receipts
print_method
string
required
Print method:
  • BE - Backend printing (server sends to printer)
  • FE - Frontend printing (client browser prints)

Roles

Accessible by: admin only

Test Printer Connection

curl -X POST "http://localhost:8080/api/v1/settings/printer/test" \
  -H "Authorization: Bearer YOUR_TOKEN"
Send a test print command to the configured printer.

Roles

Accessible by: admin only
Make sure the printer is connected and powered on before testing. The test will print a sample receipt to verify the connection.

Build docs developers (and LLMs) love