---
schema_version: "1"
id: 44efe5ac1b601dc3881aaa30ca4e2ad37f0e31e5302fb4758ad9e3d4f175d6a2
title: BuyerGroupRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_CommerceBuyGrp_BuyerGroupRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceBuyGrp_BuyerGroupRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f4a107f5e0909f053ec7a4f12f96165262e97fbbccc3d691af163ea5dd3e5755
description: Contains methods to retrieve account and store details used to identify the buyer groups associated with a user.Returns the account ID of a user.Returns the ID of the web store.Returns a map of user context parameters evaluated at runtime, includingisGuestUser, locale, and guest_uuid_essential_{siteId}.
---
# BuyerGroupRequest Class

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

## Namespace

[CommerceBuyGrp](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_CommerceBuyGrp.htm "The CommerceBuyGrp namespace provides classes and methods for retrieving information about the buyer groups associated with a user.")

- **[BuyerGroupRequest Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceBuyGrp_BuyerGroupRequest.htm#apex_CommerceBuyGrp_BuyerGroupRequest_methods)**

## BuyerGroupRequest Methods

The following are methods for BuyerGroupRequest.

- **[getAccountId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceBuyGrp_BuyerGroupRequest.htm#apex_CommerceBuyGrp_BuyerGroupRequest_getAccountId)**  
    Returns the account ID of a user.
- **[getStoreId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceBuyGrp_BuyerGroupRequest.htm#apex_CommerceBuyGrp_BuyerGroupRequest_getStoreId)**  
    Returns the ID of the web store.
- **[getRequestContextParameters()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceBuyGrp_BuyerGroupRequest.htm#apex_CommerceBuyGrp_BuyerGroupRequest_getRequestContextParameters)**  
    Returns a map of user context parameters evaluated at runtime, includingisGuestUser, locale, and guest\_uuid\_essential\_{siteId}.

### getAccountId()

Returns the account ID of a user.

#### Signature

public String getAccountId()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getStoreId()

Returns the ID of the web store.

#### Signature

public String getStoreId()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getRequestContextParameters()

Returns a map of user context parameters evaluated at runtime, includingisGuestUser, locale, and guest\_uuid\_essential\_{siteId}.

#### Signature

public Map<String,Object> getRequestContextParameters()

#### Return Value

Type: Map<[String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type."),[Object](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Object.htm#apex_class_System_Object "Contains methods that are implemented by all Apex types.")\>

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

| Name | Type | Description |
| --- | --- | --- |
| guest\_uuid\_​essential\_{siteId} | String | Specifies 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. |
| isGuestUser | Boolean | Indicates whether the user in context is a guest user (true) or an authenticated user (false). |
| locale | String | Specifies the user's locale. |