The moneyitem object representation and fields are described below.
moneyitem was introduced in API version V1
moneyitem has not been marked for deprecation
{
"name" : "price",
"sortOrder" : 0,
"currencyCode" : "GBP",
"unitValue" : 2500,
"entity" : {
"urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
"url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
},
"formattedValue" : "25.00",
"currencySymbol" : "£"
}{
"urn" : "df30637a-c46b-4c67-bdaf-b6c3ba8c9034",
"name" : "price",
"sortOrder" : 0,
"currencyCode" : "GBP",
"unitValue" : 2500,
"entity" : {
"urn" : "4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d",
"url" : "/n/v1/entity/4fdf15cf-cfa3-4b43-9e92-57dfbbc0366d"
},
"formattedValue" : "25.00",
"currencySymbol" : "£"
}| Name | Type | Description | Constraints |
|---|---|---|---|
| urn | String representation of a Unique Resource Name. Typically a UUID with 36 characters. | URN of the item | |
| name | Field name, typically used in content items. Typically use conventions around html ID expectations. | The name of item item field | Required on create. Minimum length: 1. Maximum length: 1024. |
| sortOrder | Signed int32 | The sort order value for the item | Required on create. |
| currencyCode | A string representation of a enumeration name restricted to the documented values | The currency code for the money item | Required on create. Allowed values:
|
| unitValue | Signed int64 | The value of money in cents for the currency e.g. 1099 for £10.99 | Required on create. Minimum: -9223372036854775808. Maximum: 9223372036854775807. |
| entity | Entity | The entity this item is associated with. | Required on create. |
| formattedValue | String literal | The formatted (with period) value without the currency symbol. | |
| currencySymbol | String literal | The currency symbol (may be ambiguous without the full currency code but is provided for convenience) | |