---
url: /gst-manager-whmcs/features/item-rules.md
description: >-
  Map custom SAC and RBI Purpose codes to specific products and service types so
  every invoice line item carries the correct GST classification.
---

# Item Rules

**Item Rules** let you attach the right **SAC code** and **RBI Purpose code** to specific
products and service types, so every invoice line item is classified correctly for GST and, for
exports, for RBI reporting. Find them under **Addons → GST Manager → Item Rules**.

![GST Manager Item Rules screen](/gst-manager-whmcs/img/gst-item-rules-screen.png)
*Addons → GST Manager → Item Rules*

::: info What these codes are
A **SAC** (Services Accounting Code) classifies a service for GST — it's the code that tells the
tax system *what* you sold. A **Purpose Code** (from the RBI) classifies an export payment for
foreign-exchange reporting — it tells the system *why* money is coming in from abroad. Getting
both right keeps your invoices and export filings clean.
:::

## Why item rules matter

Different things you sell can fall under different SAC codes — shared hosting, a domain
registration, and a professional add-on aren't necessarily classified the same way. If every
line item carried one blanket code, your GST classification would be wrong for some of them. Item
Rules let you say, precisely, *"this product uses that SAC and that Purpose code,"* so each
invoice line is labelled correctly without you editing invoices by hand.

## How they relate to the default codes

During setup you set **default** SAC and Purpose codes per service type under
**System Setup → SAC & Purpose Codes** — for the standard types such as **Hosting
(Shared/VPS)**, **Product Upgrades**, **Domains** and **Addons**. Those defaults are the baseline
that applies broadly.

**Item Rules sit on top of that baseline.** Use them when a particular product or service type
needs a code that differs from the default — a specialised service, a reseller add-on, or
anything that doesn't fit the standard buckets. The default handles the common case; item rules
handle the exceptions.

## Adding and editing rules

The Item Rules screen supports full **add, edit and delete**:

1. Open **Addons → GST Manager → Item Rules**.
2. Choose the product or service type you want to map.
3. Enter the **SAC code** and, where relevant, the **RBI Purpose code** for it.
4. Save. From then on, invoices for that product carry those codes automatically.

To change a mapping later, edit the existing rule; to fall back to the default, delete the rule.

::: tip Exports lean on both codes
For non-Indian clients, the SAC **and** Purpose codes flow into your export invoices and the
Export Invoices CSV. See [export compliance](/gst-manager-whmcs/features/export-compliance) and
[tax reports](/gst-manager-whmcs/features/tax-reports).
:::

## Where to go next

* [Configuration](/gst-manager-whmcs/configuration) — set the default SAC & Purpose codes
* [Export compliance](/gst-manager-whmcs/features/export-compliance) — how these codes appear on exports
* Back to the [overview](/gst-manager-whmcs/)
