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

# CreateSalesInvoiceCorrection

> Creates a new sales invoice correction from an existing invoice.

If a request with this mutation's Idempotency-Key was already completed, the response's `extensions` contains an `idempotency.{responseName}` entry with `wasReplayed: true`.



**mutation** `CreateSalesInvoiceCorrection(request: CreateSalesInvoiceCorrectionCommandRequestInput!): CreateSalesInvoiceCorrectionCommandResponse!`

## Arguments

**`request`**: `CreateSalesInvoiceCorrectionCommandRequestInput!` (required)

## Returns

`CreateSalesInvoiceCorrectionCommandResponse!`

**`salesInvoiceCorrectionId`**: `ID!`

The Id of the created sales invoice correction

## Examples

```graphql Mutation
mutation CreateSalesInvoiceCorrection($request: CreateSalesInvoiceCorrectionCommandRequestInput!) {
  CreateSalesInvoiceCorrection(request: $request) {
    salesInvoiceCorrectionId
  }
}
```

```json Variables
{
  "request": {
    "salesInvoiceId": "id"
  }
}
```

```json Response
{
  "data": {
    "CreateSalesInvoiceCorrection": {
      "salesInvoiceCorrectionId": "id"
    }
  }
}
```
