List branch services
Changed onGet a list of branch services for the specified business id and branch id. List can be filtered by service category id, service type, possibility to include archived branch services in the list and option to fetch online categories of branch services. Use <code>service_type</code> to control which services are returned: <code>services_only</code> (default — excludes add-on-only services); <code>addons_only</code> returns services flagged as add-ons; <code>services_and_addons</code> returns all services regardless of add-on flag.
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
Query parameters
service category id to filter by
include archived branch services in the list
include online categories of branch services
include add-on service IDs for each service
filter services by type. Allowed values: <code>services_only</code> (default — excludes add-on-only services), <code>addons_only</code> (only add-on services), <code>services_and_addons</code> (all services)
number of branch service records to return, max is 200
page number, default is 0 and is optional
Response
Branch services listed
Example response
{
"_embedded": {
"services": [
{
"serviceId": "ab123",
"version": 1,
"categoryId": "category1",
"duration": 20,
"gapTime": 15,
"name": "Blow dry",
"price": 25.5,
"disqualifiedStaff": [
"staff1",
"staff2"
],
"machines": [
"machine1",
"machine2"
],
"rooms": [
"room1",
"room2"
],
"taxRates": [
"taxRateRef",
"taxRateRef2"
],
"internetName": "online name",
"staffCategories": {
"prices": [
{
"id": "priceCategory1",
"price": 55.1
}
]
},
"userDurations": [
{
"userRef": "userID1",
"duration": 60
}
],
"userGapTimes": [
{
"userRef": "userID1",
"gapTime": 10
}
],
"department": {
"id": "ab123",
"name": "Hair Department"
},
"categoryName": "category name",
"internetDescription": "service description",
"internetServiceCategories": [
{
"id": "ab123",
"name": "Cut & Style"
}
],
"userPrices": [
{
"userRef": "cO8vpfkhkHYOhfvZuIcwng",
"price": 116
}
]
}
]
}
}Changes
- info
added the new optional
queryrequest parameterfetch_addon_services - info
added the new optional
queryrequest parameterservice_type - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info