Consider the ability to return tags and product_custom_fields in the following endpoints:
warehouse-products/{id}
/warehouse-products/search
The product_custom_fields should be key-value pairs in a product_custom_field object:
{
"id": 123,
"tags": {"clearance", "seasonal"},
"product_custom_fields": {
"custom_field_1": { "name": "color", "value": "blue" },
"custom_field_2": { "name": "material", "value": "cotton" },
"custom_field_3": { "name": "warranty_period", "value": "12 months" },
"custom_field_20": { "name": "", "value": "" }
}
}
This should cater to per-customer custom field setups in a single tenant.