Get the latest invoice PDF generated for an Appointment.

Parameters

id

The ID of the Appointment.

Example

FM_api('Appointment_invoiceDocumentGet', ['id' => '222402']);

Result

On Success

The result is a binary file.

On Failure

{'error':'appointment no longer exists'}