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

# RevenueAccountAssignment

> The revenue account a sale is posted to in one context: a tax zone, a tax class and a tax treatment, and for an override also the product group, shipping method or type of line item. The revenue account belongs to the tax code that applies in that context.



**Kind**: `object`

## Fields

**`taxZoneId`**: `ID!`

The tax zone of the context.

---

**`taxClassId`**: `ID!`

The tax class of the context.

---

**`taxTreatment`**: `TaxTreatment!`

How the sale is taxed in the context.

---

**`scope`**: `String!`

Whether the assignment comes from the rate or from an override, and from which kind. Known values: RATE, PRODUCT_GROUP, SHIPPING_METHOD, LINE_ITEM_TYPE. New values can be added without a contract change.

---

**`productGroupId`**: `ID`

The product group. Set only for the scope ProductGroup.

---

**`shippingMethodId`**: `ID`

The shipping method. Set only for the scope ShippingMethod.

---

**`lineItemType`**: `String`

The type of line item. Set only for the scope LineItemType. Known values: CUSTOM, SHIPPING, COUPON, PAYMENT, SHIPPING_SURCHARGE, NEW_CUSTOMER_COUPON, CASH_ON_DELIVERY, SHIPPING_SURCHARGE_ITEM, PACKING, GIFT_FOR_FREE, TRUSTED_SHOPS, INTEREST_PREMIUM, PROCESSING_FEE, CARTON, RETURN_DELIVERY, MULTI_PURPOSE_VOUCHER, MULTI_PURPOSE_VOUCHER_DIGITAL, SINGLE_PURPOSE_VOUCHER, SINGLE_PURPOSE_VOUCHER_DIGITAL, SINGLE_PURPOSE_VOUCHER_REDEMPTION. New types can be added without a contract change.

---

**`taxCodeId`**: `ID`

The tax code that applies in the context. Empty when it is not fixed (see 'TaxCodeSource').

---

**`taxCodeSource`**: `String`

Where the tax code comes from when it is not fixed: the line with the highest value or with the highest rate. Set only for the scope ShippingMethod; then there is no tax code and no revenue account here. Known values: TAX_CODE, LINE_WITH_HIGHEST_VALUE, LINE_WITH_HIGHEST_RATE. New values can be added without a contract change.

---

**`revenueAccount`**: `String`

The revenue account of the tax code. Empty when the tax code has none, which is a gap in the setup; filter for it to find such gaps.

