Question

Are custom attributes of type string or integer when used in recommendations criteria?

Answer

All custom attributes are strings. Inventory is a predefined attribute and its type is long. Value and margin are predefined with type double.