BuyerGroupRequest Class

Contains methods to retrieve account and store details used to identify the buyer groups associated with a user.

CommerceBuyGrp

The following are methods for BuyerGroupRequest.

Returns the account ID of a user.

public String getAccountId()

Type: String

Returns the ID of the web store.

public String getStoreId()

Type: String

Returns a map of user context parameters evaluated at runtime, includingisGuestUser, locale, and guest_uuid_essential_{siteId}.

public Map<String,Object> getRequestContextParameters()

Type: Map<String,Object>

Here’s a list of context parameters to include in the request:

NameTypeDescription
guest_uuid_​essential_{siteId}StringSpecifies the multiple key-value pair representing guest UUID cookie for each store. Generated by the client as a unique device identifier where siteId is the 15-digit ID for the site associated with the webstore.
isGuestUserBooleanIndicates whether the user in context is a guest user (true) or an authenticated user (false).
localeStringSpecifies the user’s locale.