Skip to content

List Service Assignments ​

Returns a paginated list of all active service assignments.

Request ​

GET /api/oauth/v2/resource/executions

HeaderValue
AuthorizationBearer {access_token}

Query parameters ​

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)
locationIdstring (UUID)NoOnly assignments for a specific location
userIdstring (UUID)NoOnly assignments for a specific user
viewstringNodefault (default value) or slim for the slim response

Required scope: executions

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "42",
      "user": {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "firstName": "Maria",
        "lastName": "Mustermann",
        "abbreviation": "MM"
      },
      "location": {
        "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "name": "Wien Mariahilfer"
      },
      "service": {
        "id": "c3d4e5f6-a7b8-9012-cdef-012345678901",
        "name": "Erstordination",
        "duration": 60,
        "price": 120.00
      }
    }
  ],
  "meta": {
    "total": 5,
    "offset": 0,
    "limit": 50
  }
}

Response fields ​

FieldTypeDescription
dataArrayList of service assignments
data[].idstringUnique ID of the service assignment (integer, not a UUID)
data[].userobjectAssigned user
data[].user.idstring (UUID)Unique user ID
data[].user.firstNamestringFirst name of the user
data[].user.lastNamestringLast name of the user
data[].user.abbreviationstringAbbreviation of the user
data[].locationobjectAssigned location
data[].location.idstring (UUID)Unique location ID
data[].location.namestringName of the location
data[].serviceobjectAssigned service
data[].service.idstring (UUID)Unique service ID
data[].service.namestringName of the service
data[].service.durationintegerAppointment duration in minutes
data[].service.pricenumber | nullPrice (gross)
meta.totalintegerTotal number of service assignments
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned results

Note: data[].id is an integer ID as a string — not a UUID like other endpoints.

Slim response (?view=slim) ​

With ?view=slim, the endpoint returns only the most important fields per service assignment. Without the parameter, the response stays unchanged — existing integrations don't need to change anything.

If view is given more than once, the last value wins — ?view=default&view=slim returns the slim response.

The slim response shrinks user, location, and service from full objects to an object with only id each. The field count stays at 4, but the key count drops from 14 to 4 per record.

json
{
  "data": [
    {
      "id": "42",
      "user": {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "location": {
        "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
      },
      "service": {
        "id": "c3d4e5f6-a7b8-9012-cdef-012345678901"
      }
    }
  ],
  "meta": {
    "total": 5,
    "offset": 0,
    "limit": 50
  }
}
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/executions?offset=0&limit=50&locationId=b2c3d4e5-f6a7-8901-bcde-f01234567890&userId=b2c3d4e5-f6a7-8901-bcde-f01234567890&view=default" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
400invalid_requestInvalid locationId or userId
400validation_errorInvalid value for view
401invalid_clientInvalid or missing access token
403insufficient_scopeScope executions not present
404not_foundLocation or user not found

Offisy GmbH