> ## Documentation Index
> Fetch the complete documentation index at: https://developer.fabric.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoice Error Codes

The following errors are specific to the **Invoice** module.

The `%s` in error messages are placeholders used to indicate where a specific value, such as an Invoice ID, will be inserted when the actual error message is displayed.

For example, lets assume the error is "The invoice status must be `CREATED` for this operation, but was `%s`." This error occurs when a user tries to modify an invoice that's currently in a `PAID` status. However, the system only allows modifications when the invoice is in a `CREATED` status. This means the error would display "The invoice status must be `CREATED` for this operation, but was `PAID`."

| Module | Error Code | Message |
| :- | :- | :- |
| **Invoice** | INVOICE-2001 | An invoice is already being processed for Order ID `%s`. |
| **Invoice** | INVOICE-2002 | Settlement has already been completed for this invoice. |
| **Invoice** | INVOICE-2003 | An invoice `%s` has already been created for this request. |
| **Invoice** | INVOICE-2004 | The invoice status must be 'CREATED' for this operation, but was `%s`. |
| **Invoice** | INVOICE-2005 | The invoice status must be 'POSTED' for this operation, but was `%s`. |
| **Invoice** | INVOICE-2006 | An invoice has already been created for cancellation counter `%s`. |
| **Invoice** | INVOICE-2007 | Unable to generate invoice: there are no items to invoice. |
