> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# RateDef

RateDef defines a single rate inside a category

## Schema ID

`https://gobl.org/draft-0/tax/regime-def#/$defs/RateDef`

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| Rate | `rate` | [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Identifies the rate within the category. |
| Keys | `keys` | array of [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Tax keys defined in the category that this rate can be used with. |
| Name | `name` | [i18n.String](https://docs.gobl.org/draft-0/i18n/string.md) | Human readable name of the rate. |
| Description | `desc` | [i18n.String](https://docs.gobl.org/draft-0/i18n/string.md) | Useful description of the rate. |
| Values | `values` | array of [tax.RateValueDef](https://docs.gobl.org/draft-0/tax/rate_value_def.md) | Current and historical percentage values for the rate with additional filters. Order is important; newer values should come before older values. |
| Meta | `meta` | [cbc.Meta](https://docs.gobl.org/draft-0/cbc/meta.md) | Additional information about the rate that is relevant for local frequently used implementations. |

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| `rate` | <ul><li>Present</li></ul> | `GOBL-TAX-RATEDEF-01` Rate is required |
| `name` | <ul><li>Present</li></ul> | `GOBL-TAX-RATEDEF-02` Name is required |
| `values` | <ul><li>Date order</li></ul> | `GOBL-TAX-RATEDEF-03` Rate values must be in descending chronological order |
| `values[*].percent` | <ul><li>Present</li></ul> | `GOBL-TAX-RATEDEF-04` Rate value percent is required |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.