File details: customer_group_to_company.csv

Edit on GitHub

This document describes the customer_group_to_company.csv file to assign companies to customer groups in your Spryker shop. For how imported memberships behave, see Import customer groups and their memberships.

Import file dependencies

Import file parameters

PARAMETER REQUIRED TYPE REQUIREMENTS OR COMMENTS DESCRIPTION
customer_group_name ✓ String Compared ignoring case. When several groups match, the group with exactly this name is used. Name of the customer group to assign the company to.
company_key ✓ String Must match exactly one company. Key of the company from the company.csv file.

A row is rejected, and the other rows are still imported, when it has one of the following problems:

PROBLEM MESSAGE IN THE IMPORT REPORT
The customer group name is empty. The customer group name is empty.
No customer group has the name. Customer group "{name}" was not found.
Several customer groups have the name ignoring case, and none has exactly this name. Customer group name "{name}" matches more than one customer group.
The company key is empty. The company key is empty.
No company has the key. Company with key "{key}" was not found.
Several companies have the key. Company key "{key}" matches more than one company.

Companies created in the Back Office, through the Backend API, or by self-registration have no key, so this file cannot assign them.

Import file example

>customer_group_name,company_key
Key Accounts,acme_corporation
Key Accounts,Ottom_ltd
Hospitality,BoB-Hotel-Jim
Hospitality,BoB-Hotel-Mitte

Import file command

data:import customer-group-company