> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/job/_invoicedocumentgenerate.md).

# \_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']
```
