Developer docs menu

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

Example request
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 fieldTypeRequiredNotes
namestringYesrequired, not blank
descriptionstring
priceListIdstring (uuid)
Example request
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

ParameterInTypeRequired
idpathstring (uuid)Yes
Example request
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

ParameterInTypeRequired
idpathstring (uuid)Yes
Body fieldTypeRequiredNotes
namestringYesrequired, not blank
descriptionstring
priceListIdstring (uuid)
Example request
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

ParameterInTypeRequired
idpathstring (uuid)Yes
Example request
curl -X DELETE "https://api.scalar360.com/api/v1/customer-groups/{id}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"