API reference / Customer groups
Customer groups API
5 endpoints. Scopes: Scalar360.customer-groups.READ, .CREATE, .UPDATE, .DELETE or .ALL. All calls need Authorization: Scalar360-oauthtoken <access_token> — see Authentication.
GET
List
/api/v1/customer-groups
Scope: Scalar360.customer-groups.READ
curl -X GET "https://api.scalar360.com/api/v1/customer-groups" \
-H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"POST
Create
/api/v1/customer-groups
Scope: Scalar360.customer-groups.CREATE
| Body field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | required, not blank |
description | string | ||
priceListId | string (uuid) |
curl -X POST "https://api.scalar360.com/api/v1/customer-groups" \
-H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'GET
Get
/api/v1/customer-groups/{id}
Scope: Scalar360.customer-groups.READ
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | string (uuid) | Yes |
curl -X GET "https://api.scalar360.com/api/v1/customer-groups/{id}" \
-H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"PUT
Update
/api/v1/customer-groups/{id}
Scope: Scalar360.customer-groups.UPDATE
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | string (uuid) | Yes |
| Body field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | required, not blank |
description | string | ||
priceListId | string (uuid) |
curl -X PUT "https://api.scalar360.com/api/v1/customer-groups/{id}" \
-H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","priceListId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d"}'DELETE
Delete
/api/v1/customer-groups/{id}
Scope: Scalar360.customer-groups.DELETE
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | string (uuid) | Yes |
curl -X DELETE "https://api.scalar360.com/api/v1/customer-groups/{id}" \
-H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"