---
title: "Retrieve client's service histories"
method: GET
path: "/api/business/{businessId}/client/{clientId}/service-history"
tags: ["Client"]
---

# Retrieve client's service histories

`GET /api/business/{businessId}/client/{clientId}/service-history`

## Request

- Base URL: `http://api-gateway-eu.phorest.com/third-party-api-server`
- URL: `http://api-gateway-eu.phorest.com/third-party-api-server/api/business/{businessId}/client/{clientId}/service-history`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/phorest/apis/third-party-api/docs/api/business/:businessId/client/:clientId/service-history/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a list of client service histories for specified business id and client id

## Path parameters

- `businessId` string, required
- `clientId` string, required

## Response `200`

Client's service histories listed

- DataPagedModelClientServiceHistory
  - `_embedded` object
    - `clientServiceHistories` ClientServiceHistory[]
      - `branchId` string
      - `clientId` string
      - `notes` string
      - `systemNotes` string
      - `date` string, date
      - `bookingId` string
      - `services` SingleServiceHistory[]
        - `appointmentId` string
        - `staffId` string
        - `serviceId` string
        - `clientCourseItemId` string
        - `groupBookingId` string
        - `serviceCategoryId` string
        - `serviceGroupId` string
        - `serviceGroupItemOptionId` string
        - `serviceRewardId` string
        - `time` string, date-time
        - `description` string
        - `depositAmount` number
        - `depositTime` string, date-time
        - `duration` integer: in minutes
        - `discount` number
        - `fee` number
        - `originalPrice` number
        - `waitingList` boolean
        - `checkedIn` boolean
        - `cancelled` boolean
  - `page` PageMetadata
    - `size` integer
    - `totalElements` integer
    - `totalPages` integer
    - `number` integer

## Other responses

- `400`: Bad Request
- `404`: Business or client with the specified ids don't exist
- `429`: Request rate limit exceeded. Current limit set to 100 rps.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phorest/apis/third-party-api.md) - [All operations](https://skmtc.dev/phorest/apis/third-party-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phorest/apis/third-party-api/revisions/beea6ef29634?raw)
