# Discount Codes

On a daily basis, HotWax Commerce syncs discount codes from NetSuite. The HotWax integration layer maps discount codes in HotWax to their corresponding counterparts in NetSuite.

## Order Level Discounts

When an order has a discount code, during order sync to NetSuite, HotWax validates if the code exists in NetSuite. If the code is available, then the exact code is used, and the value of the discount is shared as the `Rate` with amount 0.00 because NetSuite has the defined workflows for its discount codes.

Oftentimes, eCommerce teams generate custom discount codes that are not pre-existing in NetSuite. These codes may serve specific purposes, such as one-time use for friends or family members, or may be temporarily crafted to accommodate a particular customer's request.

In the event HotWax identifies that the code provided by eCommerce is not available in NetSuite, the integration layer will fall back to a `DEFAULT` discount count and will add the discounted amount in the `Amount` feed.

## Item Level Discounts

Item level discounts are synced as a separate line item in the order. When HotWax identifies the order has an item level discount, the integration layer adds the discounted amount added in the `Amount` field.

You can simply add a new discount code mapping or modify an existing one by navigating to the `NetSuite Discount Codes` section on the NetSuite Integration page.

Here's how you can [create mappings for discount codes](/documents/learn-netsuite/synchronization-flows/integration-mappings.md#configuring-mappings-between-hotwax-commerce-and-netsuite)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hotwax.co/documents/learn-netsuite/synchronization-flows/integration-mappings/discount-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
