> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/orders/llms.txt)
> Source: https://docs.saleor.io/api-reference/orders/mutations/invoice-request

# invoiceRequest Mutation

Request an invoice for the order using plugin.

Requires the MANAGE\_ORDERS permission.

Triggers the following webhook events:

-   INVOICE\_REQUESTED (async): An invoice was requested.

```graphql
invoiceRequest(
  number: String
  orderId: ID!
): InvoiceRequest
```

Details

```graphql
type InvoiceRequest {
  order: Order
  invoiceErrors: [InvoiceError!]! @deprecated
  errors: [InvoiceError!]!
  invoice: Invoice
}
```

<a id="arguments"></a>

### Arguments

<a id="number"></a>

#### [`number`](#number) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Invoice number, if not provided it will be generated.

<a id="order-id"></a>

#### [`orderId`](#order-id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of the order related to invoice.

<a id="type"></a>

### Type

<a id="invoicerequest"></a>

#### [`InvoiceRequest`](/api-reference/orders/objects/invoice-request.md)

Request an invoice for the order using plugin.

Requires the MANAGE\_ORDERS permission.

Triggers the following webhook events:

-   INVOICE\_REQUESTED (async): An invoice was requested.
