Skip to content

List Customer's Groups ​

Returns all customer groups currently assigned to a customer, sorted by internal ID ascending.

Request ​

GET /api/oauth/v2/resource/customers/{uuid}/groups

HeaderValue
AuthorizationBearer {access_token}

URL parameters ​

ParameterTypeRequiredDescription
uuidstring (UUID)YesUnique customer ID

Note: The endpoint does not accept offset or limit parameters. data always contains all assigned customer groups, and meta describes the complete set.

Required scope: customers

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
      "name": "VIP customers",
      "description": "Customers with a premium contract",
      "color": "#74AFAD"
    }
  ],
  "meta": {
    "total": 1,
    "offset": 0,
    "limit": 1
  }
}

Response fields ​

FieldTypeDescription
dataArrayList of customer groups assigned to the customer
data[].idstring (UUID)Unique customer group ID
data[].namestringName of the customer group
data[].descriptionstring | nullDescription text
data[].colorstringColor as a hex code
meta.totalintegerTotal number of assigned customer groups
meta.offsetintegerAlways 0 — the endpoint does not paginate
meta.limitintegerEqual to meta.total — the endpoint does not paginate
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/customers/b2c3d4e5-f6a7-8901-bcde-f01234567890/groups" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope customers not present
403access_deniedAccess denied due to missing permission
404not_foundCustomer not found

Offisy GmbH