GET/api/v1/pdf-template-config

Get PDF Template Configuration

Returns the current PDF template configuration for the company. If no configuration exists, returns a default configuration with the classic template.

GET /api/v1/pdf-template-config

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token or API key for authentication
X-CompanystringYesCompany UUID to scope the request

Request

cURL
curl https://api.storno.ro/api/v1/pdf-template-config \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "X-Company: 550e8400-e29b-41d4-a716-446655440000"

Response

{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "templateSlug": "classic",
  "primaryColor": "#2563eb",
  "fontFamily": "DejaVu Sans",
  "showLogo": true,
  "showBankInfo": true,
  "footerText": null,
  "customCss": null
}

Response Fields

FieldTypeDescription
idstringConfiguration UUID
templateSlugstringActive template design (classic, modern, minimal, bold)
primaryColorstring|nullPrimary brand color in hex format
fontFamilystring|nullCSS font family used in PDFs
showLogobooleanWhether the company logo is displayed
showBankInfobooleanWhether bank account info is displayed
footerTextstring|nullCustom footer text
customCssstring|nullCustom CSS injected into the template

Error Codes

CodeDescription
401Missing or invalid authentication token
404Company not found