graduation-capCustomer Management Tutorial

Customer Management

Take a look at the relationships between objects in the Customer Management Service and other resources in the Emporix Commerce Engine. Click the diagram to enlarge it:

How to set up business customer information

Setting up a business customer's information is a process made up of two steps:

Before you start

Make sure you have marked the country in which the company operates as active. You can do it by sending a request to the Updating a countryarrow-up-right endpoint in the Emporix API Country Service.

Add a location

A location is a physical address where a company operates, such as its headquarters, office, or warehouse. To add a new location, send a request to the Creating a new locationarrow-up-right endpoint.

circle-check
rectangle-terminalAPI Referencechevron-right
circle-exclamation

A legal entity is a representation of a company. To add a new legal entity, send a request to the Creating a legal entityarrow-up-right endpoint.

rectangle-terminalAPI Referencechevron-right

How to add a subsidiary

Subsidiaries are companies legally owned or controlled by other companies. In the Emporix Commerce Engine, subsidiaries are structured the same way as regular companies — the only difference is that a subsidiary must have its parent company specified.

Before you start

Make sure you have already finished the How to set up business customer information tutorial.

Retrieve the ID of the parent company

To find out what a company ID is, send a request to the Retrieving all legal entitiesarrow-up-right endpoint and use the q query parameter to find the desired company.

circle-exclamation
rectangle-terminalAPI Referencechevron-right

Add a subsidiary

Subsidiaries are added similarly to their parent companies. To add a new subsidiary, send a request to the Creating a new legal entityarrow-up-right endpoint. In the request body, set the type field to SUBSIDIARY and provide the parentId.

rectangle-terminalAPI Referencechevron-right

How to add an employee to a company customer group

You can offer personalized pricing to your business customers' employees by adding them to company customer groups. A company customer group is automatically created when that company data is added to the system.

circle-exclamation

Before you start

Make sure the following requirements are fulfilled:

circle-exclamation

Retrieve the ID of the company

To find out what a company ID is, send a request to the Retrieving all legal entitiesarrow-up-right endpoint and use the q query parameter to find the desired company.

rectangle-terminalAPI Referencechevron-right
circle-exclamation

Retrieve the employee's customer ID

To retrieve an employee's customer ID, send a request to the Retrieving a list of customersarrow-up-right endpoint and use the q query parameter. For example, you can search for a customer with a specific email address with q=contactEmail:employeeEmail.

rectangle-terminalAPI Referencechevron-right
circle-exclamation

Assign the contact to the company

A contact represents an employee of one or more business customers. To assign a contact to a legal entity (in this case, the desired company), send a request to the Creating a new contact assignmentarrow-up-right endpoint and provide legalEntityId and customerId in the request body.

rectangle-terminalAPI Referencechevron-right

Once desired employees are added to appropriate customer groups, you can — for example — create personalized price lists for them. For instructions, check out How to configure a price list in the Price Service guide.

Customer assignment rules

Emporix platform enforces rules when assigning customers to predefined groups to ensure role assignments remain valid and avoid conflicts. Within a single company, a user can belong to only one predefined group. Validation applies within the scope of a single company (legal entity) only. It does not extend across different companies or any subsidiaries.

Examples:

  • If a customer is already assigned to one predefined group (for example, Emporix Admin Group), then it's not possible to assign that same customer to another predefined group within the same company.

  • If a customer is assigned to an Admin group in one company (for example, Company A), then the same customer may also be assigned to an Admin group in another company (for example, Company B).

  • If a customer is assigned to an Admin group in a parent company (for example, Company A), then that same customer may also be assigned to another role such as Buyer in the parent company’s subsidiary.

circle-check

Company Contact Propagation

As a part of the group assignment you can decide how the contact assignments are shared within a company hierarchy. You can choose from the following options:

  • UPWARD: Contacts assigned to a subsidiary are also visible at the parent company level. This is a default setting.

  • DOWNWARD: Contacts assigned to a parent company are also visible in all subsidiaries.

  • DISABLED: Contacts remain only in the company where they were assigned, with no propagation.

Propagation happens only at the moment of assignment - creating the contact in the selected company also creates corresponding contacts in related companies according to the chosen direction.

Last updated

Was this helpful?