Customer Segment Service Tutorials

Customer Segment Service allows you to group your customers in many convenient ways that suit different purposes. You can assign products or categories to create targeted marketing campaigns and display the relevant items on the storefront. The flexible service's API facilitates configuring and managing customer segments.

How to add a customer segment

info
To create and configure a segment, you need the customersegment.segment_manage scope.

Create a customer segment

Create a customer segment by sending a request to the the Creating a customer segment endpoint.
Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
post/{tenant}/segments

Add products/categories to a segment

Connect the segment with specific products and/or categories for more customized content.

Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
put/{tenant}/segments/{segmentId}/items/{type}/{itemId}
Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
put/{tenant}/segments/{segmentId}/items/{type}/bulk
attention
Note that this operation performs an UPSERT operation. The UPSERT means that if an item is already assigned to a segment, the assignment gets updated. If not, the new one is created in the system.

Add segment members

Now, add customers to the segment. Depending on your setup and purpose, you can add B2B or B2C customers.

Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
put/{tenant}/segments/{segmentId}/customers/{customerId}/{legalEntityId}
Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
put/{tenant}/segments/{segmentId}/customers/{customerId}
Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
put/{tenant}/segments/{segmentId}/customers/bulk
attention
Note that this operation performs an UPSERT operation. The UPSERT means that if a customer is already assigned to a segment, the assignment gets updated. If not, the customer assignment is created in the system.

How to find a specific segment using search parameters

info
To search for a segment, you need the customersegment.segment_read scope to retrieve all customer segments.
You can use the search API to find a segment of your interest that match a specific criteria. Send the request to the Searching with parameters for customer segments endpoint.
Security
show
show
Access Token
No token
Note: Your credentials will be saved until the end of the browser session
Body
Parameters
post/{tenant}/segments/search
In the request body, pass the criteria you're looking for in the q parameter.