getSalesDocumentActualReportsHTML

Get an Actual Reports HTML printout for a sales document.

Actual Reports is a visual template designer integrated into Erply. Actual Reports templates can be managed in Erply back office. Erply provides a few basic templates by default, but new ones can be designed as needed. Back office lets you download a custom printout as a PDF document; the same document in HTML format is available with this API call.

The Sales Document API has a call for fetching an Actual Reports printout as PDF, and for sending the PDF by email.

Input parameters

Parameter name Description Possible value Required
documentID

Invoice ID.

If you want to create a new invoice and also retrieve its printout with a single bulk request, set this field to a special value: "CURRENT_INVOICE_ID".

integer yes
templateID

Printout template ID.

You can look up template ID from back office, from the drop-down list of templates.

integer yes
lang

Printout data language.

If omitted, API will return item names in the default language of your Erply account.
Possible values:
  • 'eng' - English
  • 'spa' - Spanish
  • 'ger' - German
  • 'swe' - Swedish
  • 'fin' - Finnish
  • 'rus' - Russian
  • 'est' - Estonian
  • 'lat' - Latvian
  • 'lit' - Lithuanian
  • 'gre' - Greek
string

Response

Field name Type Description
html string Printout HTML output.