# \_invoiceDocumentGet

Get the latest invoice PDF generated for a Job.

### Parameters

#### id

The ID of the Job.

### Example

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

### Result

#### On Success

The result is a binary file.

#### On Failure

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