cURL
curl --request POST \ --url https://api.firstpromoter.com/api/v2/company/invoices/preview_template \ --header 'Account-ID: <account-id>' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "html": "<string>", "vat_invoice": true } '
{ "data": { "html": "<string>" } }
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
The invoice template html to preview
According to this value, the invoice will contain VAT info or not
Template preview
Show child attributes