younifyd
Menu

Assign Customer Group Members

Assign multiple customers to a customer group.

PUT/organizations/{organizationId}/customer-groups/{customerGroupId}/members

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Assign Customer Group Members action (under Customers (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{assignCustomerGroupMembers.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the organization the request is being made by

customerGroupIdstringrequired

Customer group ID

Query parameters

siteIdstringrequired

The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.

customerNosarray<string>required

List of customer numbers to assign or unassign from the customer group.

Response

Returns 200 with an object. Read it in later steps with {{assignCustomerGroupMembers.response.data.<field>}}.

dataarray<object>

List of customer group members.

customerNostringrequired

Customer number of the customer group member

loginstring

Customer login

firstNamestring

Customer's first name

lastNamestring

Customer's last name

activeboolean

Flag indicating whether the customer is active

json
{
  "data": [
    {
      "customerNo": "00001234",
      "login": "johndoe",
      "firstName": "John",
      "lastName": "Doe",
      "active": true
    }
  ]
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Assign Customer Group Members — Salesforce Commerce Cloud — Documentation