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

# CategoryTotal

CategoryTotal groups together all rates inside a given category.

## Schema ID

`https://gobl.org/draft-0/tax/total#/$defs/CategoryTotal`

## Properties

| Title     | Property    | Type                                              | Req. | Description |
| --------- | ----------- | ------------------------------------------------- | ---- | ----------- |
| Code      | `code`      | [cbc.Code](/draft-0/cbc/code)                     | true |             |
| Retained  | `retained`  | boolean                                           |      |             |
| Rates     | `rates`     | array of [tax.RateTotal](/draft-0/tax/rate_total) | true |             |
| Amount    | `amount`    | [num.Amount](/draft-0/num/amount)                 | true |             |
| Surcharge | `surcharge` | [num.Amount](/draft-0/num/amount)                 |      |             |
