You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/personalization/api_reference/content_api.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ An XML representation of the data object used for item import can look like this
75
75
<!-- Version is mandatory and must always be set to 1 -->
76
76
<itemid="102"type="1">
77
77
<description>the item's description</description>
78
-
<pricecurrency="EUR">122</price>
78
+
<pricecurrency="EUR">1234</price>
79
79
<validfrom>2011-01-01T00:00:00</validfrom>
80
80
<validto>2021-01-01T00:00:00</validto>
81
81
<categorypaths>
@@ -115,7 +115,7 @@ The following keys and attributes used in the XML object are available:
115
115
|`type`| An ID of the type of item/product. This parameter is required. | integer |
116
116
|`description`| Additional information about the item. | alphanumeric |
117
117
|`currency`| Currency used for the price. By default, prices are expressed in EUR. | ISO 4217 |
118
-
|`price`| The item's price in the currency's fractional units (for example, cents).<br/>See below for more information. | integer |
118
+
|`price`| The item's price in the currency's fractional units (for example, cents).<br/>[See below for more information.](#price-and-currency)| integer |
119
119
|`validfrom`| Together with `validto`, defines the lifespan of an item.<br/>If NULL or not available, the item is considered valid immediately.<br/>See below for more information. | ISO 8601 |
120
120
|`validto`| Together with `validfrom`, defines the lifespan of an item.<br/>If NULL or not available, the item is considered valid indefinitely.<br/>See below for more information. | ISO 8601 |
121
121
|`categorypath`| A logical (website) navigation path through which the end user can reach the item/product in your website.<br/>You can define multiple paths for the product.| alphanumeric, separated with "/" ("%2F") characters |
@@ -125,11 +125,16 @@ The following keys and attributes used in the XML object are available:
125
125
Keys and their values can only contain letters, digits and underscore characters.
126
126
Attribute keys are case-sensitive.
127
127
128
-
##### Currency
128
+
##### Price and currency
129
129
130
-
If the currency does not have a fractional unit, the main unit is used,
131
-
for example 12 for 12 Japanese Yen.
132
-
To check whether the currency has fractional units, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217#cite_note-ReferenceA-6).
130
+
The price is given as an integer in the fractional unit of the currency, which ends as removing the decimal separators.
131
+
For example:
132
+
133
+
- 1234 for 12.34 Euro: `<price currency="EUR">1234</price>`
134
+
- 12 for 12 Japanese Yen: `<price currency="JPY">12</price>`
135
+
- 12345 for 12.345 Tunisian Dinar: `<price currency="TND">12345</price>`
136
+
137
+
To check how many digits the fractional unit of a currency has, see the [ISO 4217 standard](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
0 commit comments