Skip to main content
POST
Preview template

Headers

x-admin-api-key
string
required

The API key to access the admin API

X-Preferred-Language
enum<string>
required

Language for the PDF preview

Available options:
ar,
en

Body

application/json

Template ID and optional preview data for customization

templateId
string
required

ID of the invoice template to preview

Example:

"550e8400-e29b-41d4-a716-446655440000"

previewData
object

Preview data to customize the invoice preview

Response

Template preview generated successfully

PDF buffer of the preview invoice