> ## 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.

# Charge

Charge represents a surcharge applied to the complete document independent from the individual lines.

## Schema ID

`https://gobl.org/draft-0/bill/charge`

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| UUID | `uuid` | string | Universally Unique Identifier. |
| Index | `i` | integer | Line number inside the list of charges (calculated). |
| Key | `key` | [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Key for grouping or identifying charges for tax purposes. A suggested list of keys is provided, but these may be extended by the issuer. |
| Code | `code` | [cbc.Code](https://docs.gobl.org/draft-0/cbc/code.md) | Code used by the issuer to refer to this charge. |
| Reason | `reason` | string | Reason why the charge was applied. |
| Informative | `informative` | boolean | When true, the charge amount is calculated and reported but does not affect the document totals. Used for costs that must be declared while being borne by the supplier, such as a stamp duty the issuer absorbs instead of passing on to the customer. |
| Base | `base` | [num.Amount](https://docs.gobl.org/draft-0/num/amount.md) | Value used as the base for percent calculations instead of the invoice's sum of lines. |
| Percent | `percent` | [num.Percentage](https://docs.gobl.org/draft-0/num/percentage.md) | Percentage to apply to the sum of all lines. |
| Amount | `amount` | [num.Amount](https://docs.gobl.org/draft-0/num/amount.md) | Amount to apply (calculated if percent present). |
| Taxes | `taxes` | [tax.Set](https://docs.gobl.org/draft-0/tax/set.md) | List of taxes to apply to the charge. Not allowed on informative charges. |
| Extensions | `ext` | [tax.Extensions](https://docs.gobl.org/draft-0/tax/extensions.md) | Extension codes that apply to the charge. |
| Meta | `meta` | [cbc.Meta](https://docs.gobl.org/draft-0/cbc/meta.md) | Additional semi-structured information. |

## Key Values

| Value | Description |
| - | - |
| `stamp-duty` | Stamp Duty |
| `outlay` | Outlay |
| `tax` | Tax |
| `customs` | Customs |
| `delivery` | Delivery |
| `packing` | Packing |
| `handling` | Handling |
| `insurance` | Insurance |
| `storage` | Storage |
| `admin` | Administration |
| `cleaning` | Cleaning |

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| `percent` | <ul><li>Base != nil</li><li>Present</li></ul> | `GOBL-BILL-CHARGE-01` Percent is required when base is set |
| `taxes` | <ul><li>Informative</li><li>Empty</li></ul> | `GOBL-BILL-CHARGE-02` Cannot be set on an informative charge |


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