Skip to content

List Customers

Returns a paginated list of all customers of the company.

Request

GET /api/oauth/v2/resource/customers

HeaderValue
AuthorizationBearer {access_token}

Query parameters

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)
termstringNoSearch term for name (min. 3 characters)
socialNumberstringNoSocial security number (exact match)
emailstringNoEmail address (exact match)
phonestringNoPhone number (exact match)

Note: All search filters can be combined (AND logic). For example, you can filter by socialNumber and term at the same time.

Response

Success (200 OK)

json
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "title": null,
      "firstName": "Anna",
      "lastName": "Muster",
      "email": "anna.muster@example.com",
      "phone": "+43 664 1234567",
      "birthday": "1985-04-12",
      "socialNumber": "1234 120485",
      "tenancies": [
        {
          "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
          "name": "Ordination Muster",
          "abbreviation": "OM",
          "color": "#00adba"
        }
      ]
    }
  ],
  "meta": {
    "total": 1200,
    "offset": 0,
    "limit": 50
  }
}

Response fields

FieldTypeDescription
dataArrayList of customers
data[].idstring (UUID)Unique customer ID
data[].titlestring | nullTitle (e.g. Dr., Mag.)
data[].firstNamestring | nullFirst name
data[].lastNamestring | nullLast name
data[].emailstring | nullEmail address
data[].phonestring | nullPhone number
data[].birthdaystring | nullDate of birth (YYYY-MM-DD)
data[].socialNumberstring | nullSocial security number
data[].tenanciesArrayAssigned tenants
data[].tenancies[].idstring (UUID)Tenant ID
data[].tenancies[].namestringName of the tenant
data[].tenancies[].abbreviationstringAbbreviation
data[].tenancies[].colorstringColor as hex code
meta.totalintegerTotal number of customers
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/customers?offset=0&limit=50&term=Muster&socialNumber=1234010190&email=anna.muster%40example.com&phone=%2B43+664+1234567" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

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

Offisy GmbH