Preview template
Invoice Templates
Preview template
Generates a preview of an invoice template with customizable data.
- Uses template ID to get layout and components
- Accepts optional preview data to customize all aspects of the preview
- Returns PDF buffer of preview invoice
POST
Preview template
Headers
The API key to access the admin API
Language for the PDF preview
Available options:
ar, en Body
application/json
Template ID and optional preview data for customization
Response
Template preview generated successfully
PDF buffer of the preview invoice