Primitives
Primitive values are used for simple, scalar values.| Type | Description |
|---|---|
| String | Text data. |
| Integer | Whole numbers. |
| Float | Floating-point numbers. |
| Decimal | Precise decimal numbers, suitable for financial calculations. |
| Boolean | True/false values. |
| DateTime | Date and time information. |
| Any | Any valid JSON value. |
Composites
System-defined composites are used for storing structured data and cover common use cases.| Type | Description |
|---|---|
| Media | Ideal for images, including captions, thumbnails, and more. |
| Option | Product options with values and additional metadata. |
| Price | Prices with currency information. |
| PriceScale | Price ranges and scaled pricing information. |
| SEO | SEO-related data like meta titles, descriptions, and keywords. |
| Sorting | Parameterized sorting positions (e.g. category-specific sortings). |
| Swatch | Color or material swatches with preview images and metadata. |
| Vendor | Vendor/supplier information, including name, contact details, and metadata. |
| Weight | Weight values with unit information. |
Enums
System-defined enums are string values that have a discrete set of possible values.| Type | Description |
|---|---|
| Availability | Availability attribute to tell users and Google whether you have a product in stock (default keys: in_stock, out_of_stock, preorder, backorder). |
| StockLevel | Stock level statuses for a product (default keys: low, medium, high). |
Specials
Special fields are used for storing special values.| Type | Description |
|---|---|
| Mapped Value | Maps to a value in a different storage. |