> 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/jobs/_getinvoicestatuses.md).

# \_getInvoiceStatuses

Returns the Invoice Statuses of Jobs

### Parameters

#### ids

The IDs of the Jobs which Invoice Statuses will be retrieved from.

### Example

```
FM_api('Jobs_getInvoiceStatuses', ['ids' => ['592012','592013']])
```

### Result

#### On Success

For each Job, the data returned is the following in this order:\
The Status of the Invoice: (Quoted => 0, Invoiced => 1, Paid => 2, Cancelled => 3,\
Credit Note => 4, DRAFT => 5)\
The date that the Invoice was sent to an Email\
The Invoice Number\
The due date of the Invoice

```
{"592012":["1","2024-08-20 14:22:06","123","1726099200"],"592013":["1","2024-08-20 14:27:23","124","1724976000"]}
```

#### On Failure

If the "ids" parameter is not set:

```
{"error":"missing or invalid parameter: ids"}
```

If there are no Jobs with Invoices:

```
[]
```
