Phorest
App · 26 actions
Manage salon clients and leads, book and cancel appointments, and follow new bookings and reviews.
Actions
| Action | What it does |
|---|---|
| Add a break | Block out time in a staff member's appointment book, such as lunch. |
| Add an appointment note | Set the service note on an appointment, which staff see in the appointment book. |
| Book an appointment | Book a client in for a service with a staff member at a set time. |
| Cancel a booking | Cancel a booking and every appointment in it. |
| Cancel appointments | Cancel one or more appointments. |
| Check in a client | Check a client in for their appointments on a day. |
| Confirm a client's appointments | Mark a client's appointments on a day as confirmed. |
| Create a client | Add a client to the business. |
| Create a lead | Add a lead: someone interested in the salon who isn't a client yet. |
| Delete a break | Remove a break from the appointment book. |
| Find available appointment times | Find the times a service can be booked between two moments, optionally with one staff member. |
| Get a client | Get one client's details, consents, loyalty points and visits. |
| Get an appointment | Get one appointment: its service, staff member, time, price and status. |
| List a client's service history | List the services a client has had, visit by visit. |
| List appointments | List a salon's appointments between two dates (at most a month apart), or those changed lately. |
| List branches | List the business's salons (branches), with their addresses and time zones. |
| List breaks | List the breaks booked in a salon's appointment book between two dates, at most a month apart. |
| List client categories | List the categories clients can be put in, such as VIP. |
| List clients | Find clients by name, email or mobile, or list those changed in a time range. |
| List leads | List a salon's leads: people interested who aren't clients yet. |
| List reviews | List the reviews clients left after their visits. |
| List service categories | List the categories a salon's services are grouped into. |
| List services | List the services a salon offers, with their prices and durations. |
| List staff | List a salon's staff members. |
| Update a client | Change a client's details. |
| Update a lead | Change a lead's details or status. |
Add a break
Block out time in a staff member's appointment book, such as lunch.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Staff member
staff_idtextRequired - The staff member taking the break.
- Date
break_datedateRequired - The day of the break.
- Start time
start_timetimeRequired - When the break starts.
- End time
end_timetimeRequired - When the break ends.
- Label
labeltext - What the break is for, such as lunch.
- Paid
paid_breaktrue/false - On if the break is paid.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"breakDate": "example",
"breakId": "example",
"endTime": "example",
"label": "example",
"machineId": "example",
"paidBreak": true,
"roomId": "example",
"staffId": "example",
"startTime": "example",
"version": 1
}
}Add an appointment note
Set the service note on an appointment, which staff see in the appointment book.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Appointment ID
appointment_idtextRequired - The appointment, by ID.
- Note
notetextRequired - The note.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"noteId": "example",
"serviceNote": "example"
}
}Book an appointment
Book a client in for a service with a staff member at a set time.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Client ID
client_idtextRequired - The client to book, by ID.
- Service
service_idtextRequired - The service to book.
- Staff member
staff_idtextRequired - The staff member who does the service.
- Start time
start_timedate and timeRequired - When the appointment starts.
- Room ID
room_idtext - A room to hold, by ID.
- Note
notetext - A note on the booking.
- Book even if it clashes
force_selected_timetrue/false - On to book the time even if Phorest finds a clash.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"bookingId": "example",
"bookingStatus": "ACTIVE",
"clientAppointmentSchedules": [
{
"clientId": "example",
"serviceSchedules": [
{
"alternativeStaffMember": true,
"appointmentId": "example",
"branchServiceGroupId": "example",
"clientCourseItemId": "example",
"endTime": "example",
"machineId": "example",
"price": 1,
"roomId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"staffId": "example",
"staffRequest": true,
"startTime": "example"
}
]
}
],
"clientId": "example",
"note": "example",
"schedules": [
{
"alternativeStaffMember": true,
"appointmentId": "example",
"branchServiceGroupId": "example",
"clientCourseItemId": "example",
"endTime": "example",
"machineId": "example",
"price": 1,
"roomId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"staffId": "example",
"staffRequest": true,
"startTime": "example"
}
]
}
}Cancel a booking
Cancel a booking and every appointment in it.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Booking ID
booking_idtextRequired - The booking, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {}
}Cancel appointments
Cancel one or more appointments.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Appointment IDs
appointment_idslistRequired - The appointments to cancel, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {}
}Check in a client
Check a client in for their appointments on a day.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Client ID
client_idtextRequired - The client, by ID.
- Date
datedate - The day of the appointments. Leave empty for today.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {}
}Confirm a client's appointments
Mark a client's appointments on a day as confirmed.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Client ID
client_idtextRequired - The client whose appointments to confirm, by ID.
- Date
datedate - The day of the appointments. Leave empty for today.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"appointments": [
{
"activationState": "RESERVED",
"appointmentDate": "example",
"appointmentId": "example",
"bookingId": "example",
"branchId": "example",
"clientCourseId": "example",
"clientCourseItemId": "example",
"clientId": "example",
"confirmed": true,
"courseId": "example",
"courseName": "example",
"createdAt": "example",
"deleted": true,
"depositAmount": 1,
"depositDateTime": "example",
"endTime": "example",
"groupBookingId": "example",
"internetServiceCategories": [
{
"id": "example",
"name": "example"
}
],
"isFinishAppointment": true,
"machineId": "example",
"notes": "example",
"parentServiceGroupId": "example",
"preferredStaff": true,
"price": 1,
"purchasingBranchId": "example",
"roomId": "example",
"serviceGroupId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"serviceName": "example",
"serviceRewardId": "example",
"source": "example",
"staffId": "example",
"staffRequest": true,
"startTime": "example",
"state": "BOOKED",
"updatedAt": "example",
"version": 1,
"waitingListDateTime": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}Create a client
Add a client to the business. Give a mobile number or an email so the salon can reach them.
Inputs
- First name
first_nametextRequired - First name.
- Last name
last_nametextRequired - Last name.
- Mobile
mobiletext - Mobile number, with the country code.
- Email
emailtext - Email address.
- Landline
land_linetext - Landline number.
- Date of birth
birth_datedate - Date of birth.
- Gender
gendertext - Gender.One of:
MALE,FEMALE,NON_BINARY(Non binary),NOT_SPECIFIED(Not specified),PREFER_NOT_TO_SAY(Prefer not to say),UNKNOWN. - Notes
notestext - Notes about the client.
- Street address
street_address1text - First line of the address.
- Street address line 2
street_address2text - Second line of the address.
- City
citytext - Town or city.
- State
statetext - State or county.
- Postal code
postal_codetext - Postal or ZIP code.
- Country
countrytext - Country.
- Marketing texts
sms_marketing_consenttrue/false - On if the client agreed to marketing texts.
- Marketing email
email_marketing_consenttrue/false - On if the client agreed to marketing email.
- Reminder texts
sms_reminder_consenttrue/false - On if the client agreed to appointment reminders by text.
- Reminder email
email_reminder_consenttrue/false - On if the client agreed to appointment reminders by email.
- External ID
external_idtext - Your own ID for the client, from another system.
- Client categories
client_category_idslist - The client categories the client belongs to.
- Branch
creating_branch_idtext - The salon the client is added at.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"address": {
"city": "example",
"country": "example",
"postalCode": "example",
"state": "example",
"streetAddress1": "example",
"streetAddress2": "example"
},
"archived": true,
"banned": true,
"birthDate": "example",
"clientCategoryIds": [
"example"
],
"clientId": "example",
"clientSince": "example",
"createdAt": "example",
"creatingBranchId": "example",
"creditAccount": {
"creditDays": 1,
"creditLimit": 1,
"outstandingBalance": 1
},
"deleted": true,
"email": "example",
"emailMarketingConsent": true,
"emailReminderConsent": true,
"externalId": "example",
"firstName": "example",
"firstVisit": "example",
"gender": "MALE",
"hasActiveMembership": true,
"landLine": "example",
"lastName": "example",
"lastVisit": "example",
"lastVisitedBranchId": "example",
"linkedClientId": "example",
"linkedClientMobile": "example",
"loyaltyCard": {
"points": 1,
"serial": "example"
},
"mergedToClientId": "example",
"mobile": "example",
"notes": "example",
"photoUrl": "example",
"preferredStaffId": "example",
"smsMarketingConsent": true,
"smsReminderConsent": true,
"updatedAt": "example",
"version": 1
}
}Create a lead
Add a lead: someone interested in the salon who isn't a client yet.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- First name
first_nametextRequired - First name.
- Last name
last_nametextRequired - Last name.
- Mobile
mobiletextRequired - Mobile number, with the country code.
- Email
emailtextRequired - Email address.
- Contact by email
contactable_by_emailtrue/false - On if the salon may email them.
- Contact by text
contactable_by_mobiletrue/false - On if the salon may text them.
- Marketing opt-in
marketing_opt_intrue/false - On if they agreed to marketing.
- Source
sourcetext - Where the lead came from, such as a website form.
- Note
notetext - A note about the lead.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"message": "example",
"success": true
}
}Delete a break
Remove a break from the appointment book.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Break ID
break_idtextRequired - The break, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {}
}Find available appointment times
Find the times a service can be booked between two moments, optionally with one staff member.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Service
service_idtextRequired - The service to book.
- From
start_timedate and timeRequired - Earliest start to look at.
- To
end_timedate and timeRequired - Latest time to look at.
- Staff member
staff_idtext - Only times with this staff member. Leave empty for anyone.
- Client ID
client_idtext - The client it's for, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"data": [
{
"clientSchedules": [
{
"clientId": "example",
"serviceSchedules": [
{
"alternativeStaffMember": true,
"appointmentId": "example",
"branchServiceGroupId": "example",
"clientCourseItemId": "example",
"endTime": "example",
"machineId": "example",
"price": 1,
"roomId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"staffId": "example",
"staffRequest": true,
"startTime": "example"
}
]
}
],
"startTime": "example"
}
]
}
}Get a client
Get one client's details, consents, loyalty points and visits.
Inputs
- Client ID
client_idtextRequired - The client, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"address": {
"city": "example",
"country": "example",
"postalCode": "example",
"state": "example",
"streetAddress1": "example",
"streetAddress2": "example"
},
"archived": true,
"banned": true,
"birthDate": "example",
"clientCategoryIds": [
"example"
],
"clientId": "example",
"clientSince": "example",
"createdAt": "example",
"creatingBranchId": "example",
"creditAccount": {
"creditDays": 1,
"creditLimit": 1,
"outstandingBalance": 1
},
"deleted": true,
"email": "example",
"emailMarketingConsent": true,
"emailReminderConsent": true,
"externalId": "example",
"firstName": "example",
"firstVisit": "example",
"gender": "MALE",
"hasActiveMembership": true,
"landLine": "example",
"lastName": "example",
"lastVisit": "example",
"lastVisitedBranchId": "example",
"linkedClientId": "example",
"linkedClientMobile": "example",
"loyaltyCard": {
"points": 1,
"serial": "example"
},
"mergedToClientId": "example",
"mobile": "example",
"notes": "example",
"photoUrl": "example",
"preferredStaffId": "example",
"smsMarketingConsent": true,
"smsReminderConsent": true,
"updatedAt": "example",
"version": 1
}
}Get an appointment
Get one appointment: its service, staff member, time, price and status.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Appointment ID
appointment_idtextRequired - The appointment, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"activationState": "RESERVED",
"appointmentDate": "example",
"appointmentId": "example",
"bookingId": "example",
"branchId": "example",
"clientCourseId": "example",
"clientCourseItemId": "example",
"clientId": "example",
"confirmed": true,
"courseId": "example",
"courseName": "example",
"createdAt": "example",
"deleted": true,
"depositAmount": 1,
"depositDateTime": "example",
"endTime": "example",
"groupBookingId": "example",
"internetServiceCategories": [
{
"id": "example",
"name": "example"
}
],
"isFinishAppointment": true,
"machineId": "example",
"notes": "example",
"parentServiceGroupId": "example",
"preferredStaff": true,
"price": 1,
"purchasingBranchId": "example",
"roomId": "example",
"serviceGroupId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"serviceName": "example",
"serviceRewardId": "example",
"source": "example",
"staffId": "example",
"staffRequest": true,
"startTime": "example",
"state": "BOOKED",
"updatedAt": "example",
"version": 1,
"waitingListDateTime": "example"
}
}List a client's service history
List the services a client has had, visit by visit.
Inputs
- Client ID
client_idtextRequired - The client, by ID.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"clientServiceHistories": [
{
"bookingId": "example",
"branchId": "example",
"clientId": "example",
"date": "example",
"notes": "example",
"services": [
{
"appointmentId": "example",
"cancelled": true,
"checkedIn": true,
"clientCourseItemId": "example",
"depositAmount": 1,
"depositTime": "example",
"description": "example",
"discount": 1,
"duration": 1,
"fee": 1,
"groupBookingId": "example",
"originalPrice": 1,
"serviceCategoryId": "example",
"serviceGroupId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"serviceRewardId": "example",
"staffId": "example",
"time": "example",
"waitingList": true
}
],
"systemNotes": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List appointments
List a salon's appointments between two dates (at most a month apart), or those changed lately.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- From
from_datedate - First day to include.
- To
to_datedate - Last day to include.
- Staff member
staff_idtext - Only this staff member's appointments.
- Client ID
client_idtext - Only this client's appointments, by ID.
- Updated after
updated_fromdate and time - Only appointments changed at or after this time.
- Updated before
updated_todate and time - Only appointments changed at or before this time.
- Include canceled
fetch_canceledtrue/false - On to include canceled appointments.
- Include notes
fetch_notestrue/false - On to include each appointment's notes.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"appointments": [
{
"activationState": "RESERVED",
"appointmentDate": "example",
"appointmentId": "example",
"bookingId": "example",
"branchId": "example",
"clientCourseId": "example",
"clientCourseItemId": "example",
"clientId": "example",
"confirmed": true,
"courseId": "example",
"courseName": "example",
"createdAt": "example",
"deleted": true,
"depositAmount": 1,
"depositDateTime": "example",
"endTime": "example",
"groupBookingId": "example",
"internetServiceCategories": [
{
"id": "example",
"name": "example"
}
],
"isFinishAppointment": true,
"machineId": "example",
"notes": "example",
"parentServiceGroupId": "example",
"preferredStaff": true,
"price": 1,
"purchasingBranchId": "example",
"roomId": "example",
"serviceGroupId": "example",
"serviceGroupItemOptionId": "example",
"serviceId": "example",
"serviceName": "example",
"serviceRewardId": "example",
"source": "example",
"staffId": "example",
"staffRequest": true,
"startTime": "example",
"state": "BOOKED",
"updatedAt": "example",
"version": 1,
"waitingListDateTime": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List branches
List the business's salons (branches), with their addresses and time zones.
Inputs
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"branches": [
{
"accountId": 1,
"branchId": "example",
"city": "example",
"country": "example",
"currencyCode": "example",
"latitude": 1,
"longitude": 1,
"name": "example",
"postalCode": "example",
"state": "example",
"streetAddress1": "example",
"streetAddress2": "example",
"timeZone": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List breaks
List the breaks booked in a salon's appointment book between two dates, at most a month apart.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- From
from_datedateRequired - First day to include.
- To
to_datedateRequired - Last day to include.
- Staff member
staff_idtext - Only this staff member's breaks.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"breaks": [
{
"breakDate": "example",
"breakId": "example",
"endTime": "example",
"label": "example",
"machineId": "example",
"paidBreak": true,
"roomId": "example",
"staffId": "example",
"startTime": "example",
"version": 1
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List client categories
List the categories clients can be put in, such as VIP.
Inputs
- Name
nametext - Only categories with this name.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"clientCategories": [
{
"archived": true,
"categoryId": "example",
"description": "example",
"discountOffers": true,
"name": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List clients
Find clients by name, email or mobile, or list those changed in a time range.
Inputs
- Email
emailtext - Only the client with this email.
- Mobile
phonetext - Only the client with this mobile number.
- First name
first_nametext - Only clients with this first name. Start with `~` and end with `%` to match the beginning, such as `~Jo%`.
- Last name
last_nametext - Only clients with this last name, matched the same way as the first name.
- Updated after
updated_afterdate and time - Only clients changed after this time.
- Updated before
updated_beforedate and time - Only clients changed before this time.
- External ID
external_idtext - Only the client with this external ID.
- Include archived
include_archivedtrue/false - On to include archived clients.
- Has a membership
has_active_membershiptrue/false - On for clients with an active membership only, off for those without.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"clients": [
{
"address": {
"city": "example",
"country": "example",
"postalCode": "example",
"state": "example",
"streetAddress1": "example",
"streetAddress2": "example"
},
"archived": true,
"banned": true,
"birthDate": "example",
"clientCategoryIds": [
"example"
],
"clientId": "example",
"clientSince": "example",
"createdAt": "example",
"creatingBranchId": "example",
"creditAccount": {
"creditDays": 1,
"creditLimit": 1,
"outstandingBalance": 1
},
"deleted": true,
"email": "example",
"emailMarketingConsent": true,
"emailReminderConsent": true,
"externalId": "example",
"firstName": "example",
"firstVisit": "example",
"gender": "MALE",
"hasActiveMembership": true,
"landLine": "example",
"lastName": "example",
"lastVisit": "example",
"lastVisitedBranchId": "example",
"linkedClientId": "example",
"linkedClientMobile": "example",
"loyaltyCard": {
"points": 1,
"serial": "example"
},
"mergedToClientId": "example",
"mobile": "example",
"notes": "example",
"photoUrl": "example",
"preferredStaffId": "example",
"smsMarketingConsent": true,
"smsReminderConsent": true,
"updatedAt": "example",
"version": 1
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List leads
List a salon's leads: people interested who aren't clients yet.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Name
nametext - Only leads with this first and last name.
- Statuses
statuslist - Only leads in these statuses.One or more of:
NEW_LEAD(New lead),CONTACT_ATTEMPTED(Contact attempted),CONTACT_MADE(Contact made),INTERESTED,APPOINTMENT_SCHEDULED(Appointment scheduled),CONVERTED,LOST,DELETED. - Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"leads": [
{
"adCampaignName": "example",
"branchId": "example",
"businessId": "example",
"clientId": "example",
"contactableByEmail": true,
"contactableByMobile": true,
"email": "example",
"emailMarketingOptOut": true,
"firstName": "example",
"lastActivityDate": "example",
"lastName": "example",
"leadId": 1,
"messageHistory": [
{
"channel": "example",
"sendDate": "example",
"type": "example"
}
],
"mobile": "example",
"note": "example",
"smsMarketingOptOut": true,
"source": "example",
"status": "NEW_LEAD",
"updateAction": "MANUAL_UPDATE",
"updatedBy": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List reviews
List the reviews clients left after their visits.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Client ID
client_idtext - Only this client's reviews, by ID.
- Date
review_datedate - Only reviews left on this day.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"reviews": [
{
"clientFirstName": "example",
"clientId": "example",
"clientLastName": "example",
"facebookReview": true,
"rating": 1,
"reviewDate": "example",
"reviewId": "example",
"staffFirstName": "example",
"staffId": "example",
"staffLastName": "example",
"text": "example",
"twitterReview": true,
"visitDate": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List service categories
List the categories a salon's services are grouped into.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"serviceCategories": [
{
"categoryId": "example",
"color": 1,
"description": "example",
"internetServiceCategories": [
{
"id": "example",
"name": "example"
}
],
"name": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List services
List the services a salon offers, with their prices and durations.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Category
category_idtext - Only services in this category.
- Include archived
include_archivedtrue/false - On to include archived services.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"services": [
{
"addonServiceIds": [
"example"
],
"archived": true,
"categoryId": "example",
"categoryName": "example",
"department": {
"id": "example",
"name": "example"
},
"disqualifiedStaff": [
"example"
],
"duration": 1,
"finishDuration": 1,
"gapTime": 1,
"internetDescription": "example",
"internetEnabled": true,
"internetName": "example",
"internetServiceCategories": [
{
"id": "example",
"name": "example"
}
],
"isAddonOnly": true,
"machines": [
"example"
],
"name": "example",
"price": 1,
"rooms": [
"example"
],
"serviceId": "example",
"staffCategories": {
"prices": [
{
"id": "example",
"price": 1
}
]
},
"taxRates": [
"example"
],
"userDurations": [
{
"duration": 1,
"userRef": "example"
}
],
"userFinishDurations": [
{
"duration": 1,
"userRef": "example"
}
],
"userGapTimes": [
{
"gapTime": 1,
"userRef": "example"
}
],
"userPrices": [
{
"price": 1,
"userRef": "example"
}
],
"version": 1
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}List staff
List a salon's staff members.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Include archived
fetch_archivedtrue/false - On to include staff who have left.
- Page size
sizenumber - How many records to return on a page, up to 200. Phorest returns 20 when this is empty.From 1 to 200.
- Page
pagenumber - Which page to read, starting at 0 for the first.At least 0.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"_embedded": {
"staffs": [
{
"archived": true,
"birthDate": "example",
"branchId": "example",
"disqualifiedServices": [
"example"
],
"email": "example",
"firstName": "example",
"gender": "example",
"hideFromAppointmentScreen": true,
"hideFromOnlineBookings": true,
"imageUrl": "example",
"lastName": "example",
"mobile": "example",
"notes": "example",
"onlineProfile": "example",
"payrollNumber": "example",
"selfEmployed": true,
"staffCategoryId": "example",
"staffCategoryName": "example",
"staffId": "example",
"startDate": "example",
"taxNumber": "example",
"userId": "example"
}
]
},
"page": {
"number": 1,
"size": 1,
"totalElements": 1,
"totalPages": 1
}
}
}Update a client
Change a client's details. Only the fields filled in change; the rest stay as they are.
Inputs
- Client ID
client_idtextRequired - The client, by ID.
- First name
first_nametext - New first name.
- Last name
last_nametext - New last name.
- Mobile
mobiletext - Mobile number, with the country code.
- Email
emailtext - Email address.
- Landline
land_linetext - Landline number.
- Date of birth
birth_datedate - Date of birth.
- Gender
gendertext - Gender.One of:
MALE,FEMALE,NON_BINARY(Non binary),NOT_SPECIFIED(Not specified),PREFER_NOT_TO_SAY(Prefer not to say),UNKNOWN. - Notes
notestext - Notes about the client.
- Street address
street_address1text - First line of the address.
- Street address line 2
street_address2text - Second line of the address.
- City
citytext - Town or city.
- State
statetext - State or county.
- Postal code
postal_codetext - Postal or ZIP code.
- Country
countrytext - Country.
- Marketing texts
sms_marketing_consenttrue/false - On if the client agreed to marketing texts.
- Marketing email
email_marketing_consenttrue/false - On if the client agreed to marketing email.
- Reminder texts
sms_reminder_consenttrue/false - On if the client agreed to appointment reminders by text.
- Reminder email
email_reminder_consenttrue/false - On if the client agreed to appointment reminders by email.
- External ID
external_idtext - Your own ID for the client, from another system.
- Client categories
client_category_idslist - The client categories the client belongs to.
- Archived
archivedtrue/false - On to archive the client, off to bring them back.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"address": {
"city": "example",
"country": "example",
"postalCode": "example",
"state": "example",
"streetAddress1": "example",
"streetAddress2": "example"
},
"archived": true,
"banned": true,
"birthDate": "example",
"clientCategoryIds": [
"example"
],
"clientId": "example",
"clientSince": "example",
"createdAt": "example",
"creatingBranchId": "example",
"creditAccount": {
"creditDays": 1,
"creditLimit": 1,
"outstandingBalance": 1
},
"deleted": true,
"email": "example",
"emailMarketingConsent": true,
"emailReminderConsent": true,
"externalId": "example",
"firstName": "example",
"firstVisit": "example",
"gender": "MALE",
"hasActiveMembership": true,
"landLine": "example",
"lastName": "example",
"lastVisit": "example",
"lastVisitedBranchId": "example",
"linkedClientId": "example",
"linkedClientMobile": "example",
"loyaltyCard": {
"points": 1,
"serial": "example"
},
"mergedToClientId": "example",
"mobile": "example",
"notes": "example",
"photoUrl": "example",
"preferredStaffId": "example",
"smsMarketingConsent": true,
"smsReminderConsent": true,
"updatedAt": "example",
"version": 1
}
}Update a lead
Change a lead's details or status. Only the fields filled in change.
Inputs
- Branch
branch_idtextRequired - The salon (branch) to work in.
- Lead ID
lead_idnumberRequired - The lead, by ID.At least 1.
- First name
first_nametext - New first name.
- Last name
last_nametext - New last name.
- Mobile
mobiletext - New mobile number.
- Email
emailtext - New email address.
- Status
statustext - Where the lead is now.One of:
NEW_LEAD(New lead),CONTACT_ATTEMPTED(Contact attempted),CONTACT_MADE(Contact made),INTERESTED,APPOINTMENT_SCHEDULED(Appointment scheduled),CONVERTED,LOST,DELETED. - Contact by email
contactable_by_emailtrue/false - On if the salon may email them.
- Contact by text
contactable_by_mobiletrue/false - On if the salon may text them.
- Client ID
client_idtext - The client the lead became, by ID.
Outputs
dataobject- The response from Phorest.
Example output
{
"data": {
"adCampaignName": "example",
"branchId": "example",
"businessId": "example",
"clientId": "example",
"contactableByEmail": true,
"contactableByMobile": true,
"email": "example",
"emailMarketingOptOut": true,
"firstName": "example",
"lastActivityDate": "example",
"lastName": "example",
"leadId": 1,
"messageHistory": [
{
"channel": "example",
"sendDate": "example",
"type": "example"
}
],
"mobile": "example",
"note": "example",
"smsMarketingOptOut": true,
"source": "example",
"status": "NEW_LEAD",
"updateAction": "MANUAL_UPDATE",
"updatedBy": "example"
}
}