> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/documents/learn-netsuite/synchronization-flows/integration-mappings/discount-codes.md).

# Discount Codes

Explore how discount codes are managed and synchronized between HotWax Commerce and NetSuite for seamless order processing.

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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
