Skip to content

List referrals

Returns a paginated list of all referrals of the company.

Request

GET /api/oauth/v2/resource/referrals

HeaderValue
AuthorizationBearer {access_token}

Query parameters

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

Response

Success (200 OK)

json
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "services": "Blood count, ECG",
      "diagnose": "Hypertension (I10)",
      "receiverName": "Dr. Thomas Berger",
      "receiverStreet": "Hauptstraße 12",
      "receiverZip": "4020",
      "receiverCity": "Linz",
      "date": "2026-06-09",
      "printed": false,
      "customer": {
        "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
        "firstName": "Anna",
        "lastName": "Muster"
      },
      "treatingUser": {
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "firstName": "Dr. Maria",
        "lastName": "Huber"
      }
    },
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "services": null,
      "diagnose": null,
      "receiverName": "Radiology Centre Linz",
      "receiverStreet": null,
      "receiverZip": null,
      "receiverCity": null,
      "date": "2026-06-08",
      "printed": true,
      "customer": {
        "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
        "firstName": "Anna",
        "lastName": "Muster"
      },
      "treatingUser": {
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "firstName": "Dr. Maria",
        "lastName": "Huber"
      }
    }
  ],
  "meta": {
    "total": 17,
    "offset": 0,
    "limit": 50
  }
}

Response fields

FieldTypeDescription
dataArrayList of referrals
data[].idstring (UUID)Unique ID of the referral
data[].servicesstring | nullRequested services
data[].diagnosestring | nullDiagnosis on the referral
data[].receiverNamestring | nullName of the receiving party
data[].receiverStreetstring | nullStreet of the receiving party
data[].receiverZipstring | nullPostal code of the receiving party
data[].receiverCitystring | nullCity of the receiving party
data[].datestring | nullReferral date (YYYY-MM-DD)
data[].printedboolean | nullWhether the referral has been printed
data[].customerobject | nullAssigned customer
data[].customer.idstring (UUID)Customer ID
data[].customer.firstNamestringCustomer first name
data[].customer.lastNamestringCustomer last name
data[].treatingUserobject | nullTreating user
data[].treatingUser.idstring (UUID)User ID
data[].treatingUser.firstNamestringFirst name
data[].treatingUser.lastNamestringLast name
meta.totalintegerTotal number of referrals
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/referrals?offset=0&limit=50" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope medicals not present

Offisy GmbH