Client
Retrieve client's service histories
Get a list of client service histories for specified business id and client id
get/api/business/{businessId}/client/{clientId}/service-history
Request
- Base URLhttp://api-gateway-eu.phorest.com/third-party-api-server
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
businessIdstring required
clientIdstring required
Query parameters
number of client service history records to return, max is 200
page number, default is 0 and is optional
Response
Client's service histories listed
Example response
{
"_embedded": {
"clientServiceHistories": [
{
"branchId": "branch123",
"clientId": "client123",
"notes": "Some notes",
"systemNotes": "Some system notes",
"date": "2016-04-06",
"bookingId": "onlineBooking123",
"services": [
{
"appointmentId": "appointmentId123",
"staffId": "staff123",
"serviceId": "service123",
"clientCourseItemId": "course123",
"groupBookingId": "groupBooking123",
"serviceCategoryId": "serviceCategory123",
"serviceGroupId": "serviceGroup123",
"serviceGroupItemOptionId": "serviceGroupItemOption123",
"serviceRewardId": "serviceReward123",
"description": "Some description",
"depositAmount": 12.12,
"duration": 60,
"discount": 12,
"fee": 50,
"originalPrice": 65,
"checkedIn": true,
"cancelled": true
}
]
}
]
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.