> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/mutations/update-invoice.md).

# updateInvoice

Updates an invoice.

### Arguments

| Argument                                                                                                                 | Description                  |
| ------------------------------------------------------------------------------------------------------------------------ | ---------------------------- |
| input ([UpdateInvoiceInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/update-invoice-input.md)!) | Parameters for UpdateInvoice |

### UpdateInvoiceInput Arguments

| Argument                                                                                                                                  | Description                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md)!)                                                       | ID of the invoice to update.                                          |
| externalUrl ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string.md))                                       | An external invoice URL to replace the default invoice.               |
| status ([InvoiceUpdatableStatusEnum](https://developer.firmhouse.com/graphql-api/api-reference/objects/invoice-updatable-status-enum.md)) | Option to mark the final invoice status either uncollectible or paid. |

### Return fields

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error.md)!]!)

#### invoice ([Invoice](https://developer.firmhouse.com/graphql-api/api-reference/objects/invoice.md))
