Download OpenAPI specification:Download
The service provides capabilities to interact with the client’s stored data inside of BEAUTY_OS Core in MongoDB. This is used throughout the website to retrieve information about the client and interact with the client’s settings.
Retrieves clients by given filter.
| salonId required | string |
| skip | number <double> Default: 0 |
| top | number <double> Default: 10 |
| status | string (ClientStatus) Enum: "CREATED" "ACTIVATED" "DELETED" "DEACTIVATED" "SUSPENDED" |
| search | string |
{- "metadata": {
- "totalRecords": 0.1,
- "pageSize": 0.1,
- "page": 0.1
}, - "records": [
- {
- "id": "string",
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "showRate": 0.1,
- "totalReviews": 0.1,
- "visits": 0.1,
- "totalPaid": 0.1,
- "avgVisit": 0.1,
- "avgVisitValue": 0.1
}
]
}| firstName required | string |
| lastName required | string |
| phone required | string |
| salonId required | string |
string | |
| gender | string (Gender) Enum: "Male" "Female" "Non-binary" "Transgender" "Intersex" "opt-out" Possible values of Gender |
| pronouns | string |
| referredBy | string |
| clientType | string |
| birthday | string <date-time> |
object (CreateAddressRequest) |
{- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "salonId": "string",
- "email": "string",
- "gender": "Male",
- "pronouns": "string",
- "referredBy": "string",
- "clientType": "string",
- "birthday": "2019-08-24T14:15:22Z",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Authenticates user to Okta account with username and password that user signed up to Okta.
The object containing authentication credentials.
| username required | string Username of the user should be email or phone number |
| salonId required | string |
{- "username": "string",
- "salonId": "string"
}{- "id": "string"
}Verifies login OTP.
The object containing OTP.
| id required | string User or client id |
| otp required | string OTP |
{- "id": "string",
- "otp": "string"
}{- "status": "CREATED",
- "accessToken": "string",
- "client": {
- "id": "string",
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "showRate": 0.1,
- "totalReviews": 0.1,
- "visits": 0.1,
- "totalPaid": 0.1,
- "avgVisit": 0.1,
- "avgVisitValue": 0.1
}
}Retrieves current client's data.
| client-id required | string |
{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Updates client's data by given ID.
| client-id required | string |
| firstName required | string |
| lastName required | string |
| phone required | string |
string | |
| gender | string (Gender) Enum: "Male" "Female" "Non-binary" "Transgender" "Intersex" "opt-out" Possible values of Gender |
| pronouns | string |
| referredBy | string |
| clientType | string |
| birthday | string <date-time> |
object (CreateAddressRequest) | |
| status | string (ClientStatus) Enum: "CREATED" "ACTIVATED" "DELETED" "DEACTIVATED" "SUSPENDED" |
| profileImage | string |
{- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string",
- "gender": "Male",
- "pronouns": "string",
- "referredBy": "string",
- "clientType": "string",
- "birthday": "2019-08-24T14:15:22Z",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "status": "CREATED",
- "profileImage": "string"
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Retrieves client's data by given ID.
| clientId required | string |
{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Updates client's data by given ID.
| clientId required | string |
| firstName required | string |
| lastName required | string |
| phone required | string |
string | |
| gender | string (Gender) Enum: "Male" "Female" "Non-binary" "Transgender" "Intersex" "opt-out" Possible values of Gender |
| pronouns | string |
| referredBy | string |
| clientType | string |
| birthday | string <date-time> |
object (CreateAddressRequest) | |
| status | string (ClientStatus) Enum: "CREATED" "ACTIVATED" "DELETED" "DEACTIVATED" "SUSPENDED" |
| profileImage | string |
{- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string",
- "gender": "Male",
- "pronouns": "string",
- "referredBy": "string",
- "clientType": "string",
- "birthday": "2019-08-24T14:15:22Z",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "status": "CREATED",
- "profileImage": "string"
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Generates a pre-signed URL for uploading a client's profile image to S3.
| clientId required | string The ID of the client |
The upload request containing filename and content type
| filename required | string |
| contentType required | string |
{- "filename": "string",
- "contentType": "string"
}{- "uploadUrl": "string",
- "imageUrl": "string"
}Updates only the profile image URL for a client.
| clientId required | string The ID of the client |
Object containing the profileImage URL
| profileImage required | string |
{- "profileImage": "string"
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Retrieves client's data by given email.
| email required | string Represents the given email for an account holder. |
{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Reactivates a client if they are deleted.
| clientId required | string Represents the client ID. |
{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Retrieves clients' data by given array of IDs.
| clientIds required | Array of strings Represents the array of client IDs as query parameters. |
{- "clients": [
- {
- "id": "string",
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "phone": "string",
- "showRate": 0.1,
- "totalReviews": 0.1,
- "visits": 0.1,
- "totalPaid": 0.1,
- "avgVisit": 0.1,
- "avgVisitValue": 0.1
}
]
}Retrieves client's data by given ID.
| clientId required | string Represents the given ID for an account holder. |
{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Creates new clients from a list of phone numbers.
Represents the request body.
| salonId required | string |
| phoneNumbers required | Array of strings |
{- "salonId": "string",
- "phoneNumbers": [
- "string"
]
}{- "clients": [
- {
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}
]
}Adds a rating to a client and updates their rating statistics.
Represents the request body containing clientId and rating.
| clientId required | string |
| rating required | number <double> |
{- "clientId": "string",
- "rating": 0.1
}{- "totalReviews": 0.1,
- "showRate": 0.1,
- "success": true
}Updates a rating for a client and recalculates their rating statistics.
Represents the request body containing clientId, oldRating, and newRating.
| clientId required | string |
| oldRating required | number <double> |
| newRating required | number <double> |
{- "clientId": "string",
- "oldRating": 0.1,
- "newRating": 0.1
}{- "totalReviews": 0.1,
- "showRate": 0.1,
- "success": true
}Notifies client service of a paid basket to update visit statistics.
The paid basket data.
| basketId required | string |
| mainClientId required | string |
| clientIds required | Array of strings |
| salonId required | string |
| amountPaid required | number <double> |
| tipAmountPaid required | number <double> |
| startDate required | string <date-time> |
| endDate required | string <date-time> |
{- "basketId": "string",
- "mainClientId": "string",
- "clientIds": [
- "string"
], - "salonId": "string",
- "amountPaid": 0.1,
- "tipAmountPaid": 0.1,
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z"
}{- "name": "string",
- "message": "string",
- "code": "string",
- "status": 0.1
}Gets or creates a client for Firebase authentication.
The object containing username, salonId, and optional email/phone.
| phone | string |
string | |
| salonId required | string |
| username required | string |
{- "phone": "string",
- "email": "string",
- "salonId": "string",
- "username": "string"
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "avgVisitValue": 0.1,
- "avgVisit": 0.1,
- "totalPaid": 0.1,
- "visits": 0.1,
- "totalReviews": 0.1,
- "showRate": 0.1,
- "status": "CREATED",
- "address": {
- "street": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string",
- "location": {
- "type": "string",
- "coordinates": [
- 0.1
]
}
}, - "birthday": "2019-08-24T14:15:22Z",
- "clientType": "string",
- "referredBy": "string",
- "pronouns": "string",
- "gender": "Male",
- "phone": "string",
- "email": "string",
- "profileImage": "string",
- "otp": "string",
- "salonId": "string",
- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "id": "string"
}Retrieves comments by client ID.
| clientId required | string |
| skip | number <double> Default: 0 |
| top | number <double> Default: 10 |
| user-id required | string |
{- "top": 0.1,
- "skip": 0.1,
- "total": 0.1,
- "comments": [
- {
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "ACTIVE",
- "stylistFullName": "string",
- "stylistSingleSalonId": "string",
- "salonId": "string",
- "clientId": "string",
- "comment": "string",
- "id": "string"
}
]
}Creates a new comment.
| user-id required | string |
| comment required | string |
| clientId required | string |
| stylistSingleSalonId | string |
| salonId required | string |
{- "comment": "string",
- "clientId": "string",
- "stylistSingleSalonId": "string",
- "salonId": "string"
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "ACTIVE",
- "stylistFullName": "string",
- "stylistSingleSalonId": "string",
- "salonId": "string",
- "clientId": "string",
- "comment": "string",
- "id": "string"
}Retrieves comment by given ID.
| commentId required | string |
| user-id required | string |
{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "ACTIVE",
- "stylistFullName": "string",
- "stylistSingleSalonId": "string",
- "salonId": "string",
- "clientId": "string",
- "comment": "string",
- "id": "string"
}Updates comment by given ID.
| commentId required | string |
| user-id required | string |
| comment | string |
| clientId | string |
| stylistSingleSalonId | string |
| salonId | string |
{- "comment": "string",
- "clientId": "string",
- "stylistSingleSalonId": "string",
- "salonId": "string"
}{- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "status": "ACTIVE",
- "stylistFullName": "string",
- "stylistSingleSalonId": "string",
- "salonId": "string",
- "clientId": "string",
- "comment": "string",
- "id": "string"
}