Create customer group

Use case

Here we will review how to create customer groups that are used to make different price decisions based on the group. We will create a new customer group using the following data:

Use case data
API parameters with values

The group name is business.

"personGroupCode": "BUSINESS"

This is a group for the premium customers.

"description": "Premium customers"

Sample API call

To create a new customer group, make the following API call.

https://person-api.sandbox.tuumplatform.com/api/v1/person-group-types

See more information about the create customer group endpoint in the Tuum developer portal.

Sample request

Below is an example request body of the API call for creating a new customer group.

{
  "personGroupCode": "BUSINESS",
  "description": "Premium customers"
}

Sample response

Here you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

A new BUSINESS customer group is created.

Last updated

Was this helpful?