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

# SalesCreditNote

> A credit note to a customer without a sales invoice, also a draft. Positive amounts are a credit to the customer.



**Kind**: `object`

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

---

**`salesCreditNoteCancellationId`**: `ID`

The ID of the cancellation document when the credit note is cancelled. See GetSalesCreditNoteCancellation.

---

**`createdBy`**: `ID`

The user who created the credit note.

---

**`status`**: `SalesCreditNoteStatus!`

Whether the credit note is a draft or final.

---

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

Whether the credit note was created outside Wawi, for example by a marketplace.

---

**`isCancelled`**: `Boolean!`

Whether the credit note is cancelled.

---

**`customStatus`**: `String`

A free status text set by the user.

---

**`createdAt`**: `DateTime`

When the credit note was created in Wawi.

