Create customer group

POST https://app.ecwid.com/api/v3/{storeId}/customer_groups

Request and response example

Request:

POST /api/v3/1003/customer_groups HTTP/1.1
Authorization: Bearer secret_token
Host: app.ecwid.com
Content-Type: application/json
Cache-Control: no-cache

{
  "name": "VIP Customers"
}

Response:

{
  "id": 9367001
}

Required access scopes

Your app must have the following access scopes to make this request: create_customers

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

Headers

The Authorization header is required.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Request JSON

A JSON object with the following fields:

Field
Type
Description

name

string

Customer group name visible to customers on the storefront.

Response JSON

A JSON object with the following fields:

Field
Type
Description

id

number

Internal ID of the created customer group.

Last updated

Was this helpful?

OSZAR »