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

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.

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" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

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

Offisy GmbH