Generate a PDF version of an Appointment's invoice.

Parameters

id

The ID of the Appointment.

Example

FM_api('Appointment_invoiceDocumentGenerate', ['id' => '2']);

Result

On Success

The name of the newly-generated invoice. For example:

['invoice-2-2-1.pdf']