The Settings API exposes a single configuration record (rowDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/FloresJesus/SS_RESTAURANT/llms.txt
Use this file to discover all available pages before exploring further.
id = 1 of the configuracion table) that holds the restaurant’s display information: its trading name, street address, telephone number, and NIT (tax identification). This data appears in the header of every PDF report generated by the system, so keeping it accurate ensures all printed documents reflect the correct restaurant identity. If the configuration row does not yet exist, GET /api/settings returns an empty object. Both endpoints require the admin role.
Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/settings | admin | Retrieve the current configuration |
PUT | /api/settings | admin | Update the configuration |
GET /api/settings
Returns the current restaurant configuration. If theconfiguracion table contains no row with id = 1, an empty object is returned rather than a 404.
200 OK:
Restaurant trading name. Displayed as the title in PDF report headers. The report generator falls back to
"SAN SALVADOR" if this field is empty.Street address printed below the name in report headers. Empty string if not set.
Contact telephone number printed alongside the address. Empty string if not set.
Restaurant NIT (Número de Identificación Tributaria). Printed on invoices and report headers. Empty string if not set.
PUT /api/settings
Updates the restaurant configuration.nombre_restaurante is the only required field; omitting direccion, telefono, or nit stores an empty string for those fields.
Request body
Restaurant trading name. Used as the primary heading in all generated PDF reports.
Street address. Appears on the second line of PDF report and invoice headers.
Contact phone number. Appears alongside the address in PDF headers.
Restaurant NIT. Printed as
NIT: <value> in PDF report headers and referenced during invoice generation.200 OK:
Error responses
| Status | Condition |
|---|---|
400 | nombre_restaurante is missing or empty |
500 | Database or internal error |
Settings are read every time a PDF is generated — there is no caching. Updating the configuration takes effect immediately for all subsequent report generation requests.