# startInvoicesExport

Starts an asynchronous export of the PDFs of the account invoices with a `number` issued in a range of dates, as one ZIP. Shown as Download all in the billing history. Returns a `ChargesExport` whose `status` is `PENDING`: poll `chargesExport(id)` until `COMPLETED`, then call `downloadFilesExport(id)`. A second call with the same filter while the job runs returns the same job. Fails with `RANGE_TOO_LONG` for a missing range or one longer than a year, and with `EXPORT_RUNNING` while another such export of the caller runs. Requires read access to invoices. Arguments: - `filter`: Issue dates of the invoices.

```
startInvoicesExport(

  filter: InvoicesExportFilterInput!

): ChargesExport!
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`startInvoicesExport.filter`](#filter) ● [`InvoicesExportFilterInput!`](https://docs.monei.com/apis/graphql/types/inputs/invoices-export-filter-input.md) non-null input[​](#filter "Direct link to filter")

### Type[​](#type "Direct link to Type")

#### [`ChargesExport`](https://docs.monei.com/apis/graphql/types/objects/charges-export.md) object[​](#chargesexport- "Direct link to chargesexport-")

Asynchronous export job, made by `startExportCharges`, `startC60Export`, `startOperationsFilesExport`, `startInvoicesExport` or a scheduled SFTP export. When `status` is `COMPLETED`, get the file with `downloadFilesExport` for a job with a `kind`, else with `downloadExport`.
