> ## 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.

# SalesInvoiceCancellationOfSalesInvoice

> A document that cancels a sales invoice. Its amounts are positive.



**Kind**: `object`

## Implements

- `SalesInvoiceCancellation`

## Fields

**`id`**: `ID!`

The ID of the document.

---

**`salesChannelId`**: `ID`

The ID of the sales channel the document came from.

---

**`customerId`**: `ID`

The ID of the customer.

---

**`companyId`**: `ID`

The ID of the company that issued the document.

---

**`billingAddress`**: `SalesAddress`

The billing address as printed on the document.

---

**`vatIdNumber`**: `String`

The VAT ID of the customer as printed on the document.

---

**`shippingCountryCurrencyFactor`**: `Decimal!`

The exchange rate of the shipping country currency to the currency of the company.

---

**`shippingCountryCurrencyCode`**: `String`

The currency of the shipping country as ISO 4217 code, for example EUR.

---

**`revenueAccount`**: `String`

The revenue account for bookkeeping.

---

**`printedAt`**: `DateTime`

When the document was last printed.

---

**`number`**: `String`

The number of the document. Empty for a draft.

---

**`note`**: `String`

A note printed on the document.

---

**`netTotal`**: `Decimal!`

The net total of all line items.

---

**`mailedAt`**: `DateTime`

When the document was last sent by e-mail.

---

**`languageTag`**: `String`

The language of the document as BCP 47 language tag, for example de. Wawi currently holds only the language subtag.

---

**`grossTotal`**: `Decimal!`

The gross total of all line items.

---

**`gln`**: `String`

The GLN (global location number) of the customer as printed on the document.

---

**`customerNumber`**: `String`

The customer number at the time of the document.

---

**`currencyFactor`**: `Decimal!`

The exchange rate to the currency of the company.

---

**`currencyCode`**: `String`

The currency of the document as ISO 4217 code, for example EUR.

---

**`salesInvoiceId`**: `ID!`

The ID of the sales invoice the cancelled document belongs to.

---

**`cancelledBy`**: `ID`

The user who cancelled.

---

**`salesInvoiceNumber`**: `String`

The number of the sales invoice the cancelled document belongs to.

---

**`isExternal`**: `Boolean!`

Whether the cancelled document was created outside Wawi, for example by a marketplace. Always false for a cancelled sales invoice.

---

**`documentType`**: `SalesInvoiceCancellationDocumentType!`

Which document is cancelled. It selects the variant.

---

**`cancelledAt`**: `DateTime`

When the document was cancelled.

---

**`cancellationReason`**: `String`

The name of the cancellation reason. Empty when no reason was given or the reason was deleted.

---

**`cancellationComment`**: `String`

The comment given with the cancellation.

---

**`cancelledSalesInvoiceId`**: `ID!`

The ID of the cancelled sales invoice.

---

**`cancellationReasonId`**: `ID`

The ID of the reason, see GetSalesInvoiceCancellationReason. Empty when no reason was given.

