Skip to content

List Customer Groups ​

Returns a paginated list of all customer groups of the company, sorted by internal ID ascending.

Request ​

GET /api/oauth/v2/resource/customers/groups

HeaderValue
AuthorizationBearer {access_token}

Query parameters ​

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "name": "Stammkunden",
      "description": "Kunden mit regelmäßigen Terminen",
      "color": "#74AFAD"
    }
  ],
  "meta": {
    "total": 4,
    "offset": 0,
    "limit": 50
  }
}

Response fields ​

FieldTypeDescription
dataArrayList of customer groups
data[].idstring (UUID)Unique customer group ID
data[].namestringName of the customer group
data[].descriptionstring | nullDescription of the customer group
data[].colorstringColor as hex code (e.g. #74AFAD)
meta.totalintegerTotal number of customer groups
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/customers/groups?offset=0&limit=50" \
  -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

Offisy GmbH