JSON API
...
Examples
Batch Updates
Customer Groups
2min
if you support various customer groups for your e commerce website and want to maintain different prices for them, you can do it using the "groups" attribute following is an example where group prices are added for “grp 1” and “grp 2” to understand how to use them at storefront api, please refer https //docs klevu com/apis/smart search examples#gi08z group name validations it may consist of alphanumeric characters (letters and numbers) and underscores ( ) consecutive underscores ( ) are not allowed the group name must not be solely composed of underscores ( ) here are examples group names can be sales team, marketing123, customer group example \[ { "id" "1", "type" "klevu product", "attributes" { "name" { "default" "product 1" } } "groups" { "grp 1" { "attributes" { "price" { "gbp" { "saleprice" 10 0, "defaultprice" 11 0 } } } }, "grp 2" { "attributes" { "price" { "gbp" { "saleprice" 20 0, "defaultprice" 21 0 } } } } } } ]