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

# Money

Monetary values are encoded combining the currency and amount, using the smallest unit of currency to ensure accuracy and prevent floating-point issues.

### MoneySchema Definition

The `MoneySchema` includes:

* **amount**: Integer representing the value in the smallest currency unit (e.g., pence for GBP).
* **currency**: ISO 4217 currency code indicating the currency type.

```json theme={null}
{
  "exampleMoney": {
    "amount": 1050,
    "currency": "GBP"
  }
}
```

## Supported Currencies

Supports any currency with an ISO 4217 code.

## Base Units for Currency

Transactions use the smallest currency unit to avoid rounding errors, e.g., 1050 in GBP represents £10.50.
