JSON API

Data Types

4min

When registering attributes with our API, you can specify various data types to ensure proper handling and validation of the data. By understanding and utilizing these data types, you can ensure that your attributes are registered correctly, leading to better data management and retrieval. Here’s an overview of the attribute data types we support:

STRING

Represents a sequence of characters. Use this data type for textual data.

MULTIVALUE

Represents an array of strings. Use this data type for attributes that require multiple string values.

  • The grouping of a custom attribute doesn't work when selecting MULTIVALUE as the data type.

NUMBER

Represents any decimal number ranging between -9999999999999 and 9999999999999.

  • It supports up to 7 decimal points; beyond this, rounding may occur.
  • Mantissa values (parts of a number in scientific notation) will be accepted but their behavior is not guaranteed.
  • When selecting an attribute for use as a range filter, you must choose the NUMBER data type. For more information on how to implement range filters.

MULTIVALUE_NUMBER

Represents an array of numerical values (each following the NUMBER data type specifications). Use this data type for attributes that require multiple numerical values.



Updated 09 Jul 2024
Doc contributor
Did this page help you?