---
title: "Money"
slug: "api/basket/types/money"
sidebar:
  order: 255
---

<a id="ref-1ecd9ae5c219"></a>
<a id="ref-5ccc2e8715d7"></a>
<a id="ref-022354ff7015"></a>

## Synopsis

```text
struct Money : Value {
    string currency;
}
```

See also: [`Value`](/pCon/configuratorOnline/specs/api/basket/types/value#ref-8e37953d23da)

The `Money` structure represents either a valid monetary quantity, a null quantity, or an invalid quantity. In case of a valid quantity, the `value` attribute inherited from the `Value` type is present, and the `currency` attribute contains a valid ISO currency code. In case of a null quantity, the `value` attribute contains the value zero, and the `currency` attribute contains an empty string. Null quantities may be used if it is known that the quantity is zero but no information about a particular currency is available. An invalid quantity is represented by a missing `value` attribute and a `currency` attribute containing an empty string.

**currency**

This field contains the currency of the value inherited from the `Value` type (§[Value](/pCon/configuratorOnline/specs/api/basket/types/value#ref-8e37953d23da)). The currency attribute must be empty if the value attribute is missing. If the value attribute exists, the currency attribute must represent a valid ISO currency code (but no pseudo-currency[^1]), unless the value is zero, in which case the currency attribute may be empty.

[^1]: Pseudo currencies are all currencies with a currency code starting with the letter `'X'`  except `XAF`, `XCD`, `XOF` and `XPF`.
