PHPackages                             concentrix/module-corporate-group - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. concentrix/module-corporate-group

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

concentrix/module-corporate-group
=================================

Corporate Group Module

1.0.0(3y ago)05OSL-3.0PHPPHP ~7.4.0||~8.1.0

Since Jul 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/paco44/concentrix-corporate-group)[ Packagist](https://packagist.org/packages/concentrix/module-corporate-group)[ RSS](/packages/concentrix-module-corporate-group/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Concentrix Corporate Group
==========================

[](#concentrix-corporate-group)

Concentrix code challenge!

Overview
--------

[](#overview)

Concentrix Corporate Groups Module for **Magento 2.4** is designed to manage corporate groups through a rest API and link them with customers.

Installation
------------

[](#installation)

**Composer** (recommended)

In the root directory of magento, execute the following command:

`composer require concentrix/module-corporate-group`

If there are any problems trying to install this package, update to the latest version of composer

`composer self-update --2`

**Git**

On the main page of the repository, click the "Code" button and clone the repository via git, or click "Download Zip" to download the module and add it to Magento manually in **app/code/Concentrix/CorporateGroup** directory

In both cases (composer or git), execute the following command in the root directory of magento:

`bin/magento s:up`

This should be enough for the module to start working correctly, although in a few cases, it will be necessary to deploy the static content. This can be done with the following command:

`bin/magento setup:static-content:deploy -f`

How to consume the API
----------------------

[](#how-to-consume-the-api)

Since this web API is exposed to anonymous users, it can be accessed without the need for a token or authentication of any kind.

The urls must be formed in the following way:

`http:///rest/all/{endpoint}`

For the definition of the endpoints of this web API in a visual way, you can access the **Swagger UI** of Magento at:

`http:///swagger/#/concentrixCorporateGroupCorporateGroupRepositoryV1`

[![Swagger api definition](/swagger.png)](/swagger.png)

To consume the API, you can either download a REST client (such as Postman or Insomnia) to make the corresponding requests, or you can perform a direct **curl** command. (You can even run it directly from **Swagger UI!**)

[![REST client request example](/insomnia.png)](/insomnia.png)

**Curl example**

```
curl -X 'POST' \
  'http://magento2.test/rest/all/V1/concentrix/corporate-groups' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "corporateGroup": {
    "internal_code": "string",
    "name": "string",
    "email": "string",
    "telephone": "string"
  }
}'

```

Manage corporate groups
-----------------------

[](#manage-corporate-groups)

There are 4 main endpoints:

DescriptionMethodEndpointCreate a new corporate groupPOST`V1/concentrix/corporate-groups`Get a corporate groupGET`V1/concentrix/corporate-groups/{internalCode}`Delete a corporate groupPUT`V1/concentrix/corporate-groups`Search corporate group(s)GET`V1/concentrix/corporate-groups`### 1. Create a new corporate group

[](#1-create-a-new-corporate-group)

**V1/concentrix/corporate-groups** `POST`

**Request example**

```
{
  "corporateGroup": {
    "internal_code": "unique_code",
    "name": "Test Group Name or Label",
    "email": "test@concentrix.com",
    "telephone": "+525512345678"
  }
}
```

### 2. Get a corporate group

[](#2-get-a-corporate-group)

**V1/concentrix/corporate-groups/{internalCode}** `GET`

**Request example**

There is no request body for this, the **internal\_code** must be passed by URL

### 3. Delete a corporate group

[](#3-delete-a-corporate-group)

**V1/concentrix/corporate-groups** `PUT`

For this endpoint, I didn't use the `DELETE` method because of a bug I couldn't resolve :( sorry

**Request example**

```
{
  "internalCode": "unique_code"
}
```

### 4. Search corporate group(s)

[](#4-search-corporate-groups)

**V1/concentrix/corporate-groups** `GET`

There is no request body for this, the URL must conform to a couple of `SearchCriteria` parameters (more details in **Swagger UI** of your Magento instance)

V1/concentrix/corporate-groups?searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D={**field\_name**}&amp;searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D={**value**}

**Example (To search by phone)**

V1/concentrix/corporate-groups?searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D=**telephone**&amp;searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D=**+525512345678**

Bind customer group to a customer
---------------------------------

[](#bind-customer-group-to-a-customer)

There are also 2 additional endpoints to link a client to a business group:

DescriptionMethodEndpointLink a corporate group to a customer by customer idPOST`V1/concentrix/corporate-groups/link-customer-by-id`Link a business group to a customer using the customer's emailPOST`V1/concentrix/corporate-groups/link-customer-by-email`### 1. Link a corporate group to a customer by customer ID

[](#1-link-a-corporate-group-to-a-customer-by-customer-id)

**V1/concentrix/corporate-groups/link-customer-by-id** `POST`

**Request example**

```
{
  "internalCode": "unique_code",
  "customerId": 1
}
```

### 2. Link a corporate group to a customer by customer email

[](#2-link-a-corporate-group-to-a-customer-by-customer-email)

**V1/concentrix/corporate-groups/link-customer-by-email** `POST`

**Request example**

```
{
  "internalCode": "unique_code",
  "customerEmail": "example@concentrix.com"
}
```

It is also possible to link a customer with an existing corporate group through the Magento administrator, going to **Customers &gt; All Customers** then clicking on the customer of your choice and going to the **Account Information** tab

[![REST client request example](/customer_admin.png)](/customer_admin.png)

That's it!

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2878bb7ad37b5a907083010dcd796f5ab00f1c59bbddfab38fba38ecedea580a?d=identicon)[paco44](/maintainers/paco44)

---

Top Contributors

[![paco44](https://avatars.githubusercontent.com/u/20520156?v=4)](https://github.com/paco44 "paco44 (4 commits)")

### Embed Badge

![Health badge](/badges/concentrix-module-corporate-group/health.svg)

```
[![Health](https://phpackages.com/badges/concentrix-module-corporate-group/health.svg)](https://phpackages.com/packages/concentrix-module-corporate-group)
```

###  Alternatives

[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k23](/packages/loki-magento2-components)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96166.3k3](/packages/yireo-magento2-extensionchecker)[imi/magento2-friendly-captcha

Friendly Captcha integration for Magento2

19131.4k](/packages/imi-magento2-friendly-captcha)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[o2ti/sigep-web-carrier

O2TI - Sigep Web Carrier

141.5k](/packages/o2ti-sigep-web-carrier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
