Skip to content

Get comments

Request

The comment object has the following fields:

FieldTypeDescription
idnumberComment ID
salon_idnumberlocation ID
typenumber1 - comment to the team member, 0 - to the location
master_idnumberTeam Member ID if type = 1
textstringComment text
datestringDate when the comment was left
ratingnumberRating (from 1 to 5)
user_idnumberId of the user who left the comment
usernamestringName of the user who left the comment
user_avatarstringAvatar of the user who left the comment
record_idnumberID of the post after which the review was left (the value will be non-zero if the review was left through a link asking for a review after the visit)
Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

Query
start_datestring

date in iso8601 format. Filter by date since (for example '2026-09-30')

end_datestring

date in iso8601 format. Filter by date by (for example '2026-09-30')

team_member_idnumber

team member ID

ratingnumber

Rating score. Filter by reviews with a specific rating.

pagenumber

Page number

countnumber

Number of reviews per page

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/comments/{location_id}?start_date=string&end_date=string&team_member_id=0&rating=0&page=0&count=0' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

Array of objects with data

Example:
[ { "id": 18437, "salon_id": 12345, "type": 1, "master_id": 8864, "text": "Fine!", "date": "2026-09-21T23:00:00.000-05:00", "rating": 4, "user_id": 157169, "user_name": "Victor Sitnikov", "user_avatar": "/images/no-master.png", "record_id": 100001 } ]
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": [ { … } ], "meta": [] }