# \_invoiceDocumentGenerate

Generate a PDF version of a Job's invoice.

### Parameters

#### id

The ID of the Job.

### Example

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

### Result

#### On Success

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

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