docs: general updates and fixes (#13620)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-09-30 08:45:30 +03:00
1 parent dda756dfaa
commit f970e1355a
47 files changed
+358 -306

No files matched your search

@@ -4,7 +4,7 @@ export const metadata = {
# {metadata.title}
In this document, you’ll learn about tax rates and rules.
In this guide, you’ll learn about tax rates and rules.
<Note title="Looking for no-code docs?">
@@ -30,13 +30,13 @@ Then, when tax rates are retrieved for a taxable item in the child region, both
You can create tax rates that override the default for specific conditions or rules.
For example, you can have a default tax rate is 10%, but for products of type “Shirt” is %15.
For example, you can have a default 10% tax rate, but for products of type “Shirt” it is 15%.
A tax region can have multiple tax rates, and each tax rate can have multiple tax rules. The [TaxRateRule data model](/references/tax/models/TaxRateRule) represents a tax rate’s rule.
![A diagram showcasing the relation between TaxRegion, TaxRate, and TaxRateRule](https://res.cloudinary.com/dza7lstvk/image/upload/v1711462167/Medusa%20Resources/tax-rate-rule_enzbp2.jpg)
These two properties of the data model identify the rule’s target:
The following two properties of the data model identify the rule’s target:
- `reference`: the name of the table in the database that this rule points to. For example, `product_type`.
- `reference_id`: the ID of the data model’s record that this points to. For example, a product type’s ID.