Customer group
Endpoints
Create new customer group
| /companies/{companycode}/customer-groups | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get entity list
| /companies/{companycode}/customer-groups | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < Group > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/customer-groups/import | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get one customer group
| /companies/{companycode}/customer-groups/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity code to retrieve | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
Delete customer group
| /companies/{companycode}/customer-groups/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity public uuid code to delete | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
Data structure
Customer group
The data structure is composed with Group with a particular business rule for the code :
10 characters max
All characters in uppercase accepted except characters \ ; | " < > µ and spaces at the beginning and at the end
ImportCustomerGroupList
| Name | Value | 
|---|---|
| callback | string | 
| data | Group list with a particular business rule for the code : |