Skip to content

Get a list of service categories

Request

  • Options
    • company_id (required, number) - location ID
    • id (optional, number) - service category ID (to work with a specific category)
    • staff_id (optional, number) - team member ID (to get categories associated with a team member)
Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

idnumberrequired

Service Category ID

Query
team_member_idnumber

Team Member ID (to get categories associated with a Team Member)

Headers
Acceptstringrequired

e.g. 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/locations/{location_id}/service_categories/{id}?team_member_id=0' \
  -H 'Accept: string' \
  -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

Example:
[ { "id": 345, "salon_service_id": 353, "title": "Haircuts for men", "api_id": "adw322", "weight": 10, "staff": [ … ] }, { "id": 3456, "salon_service_id": 3252, "title": "Haircuts for women", "api_id": "adw323", "weight": 9, "staff": [ … ] } ]
metaobject or Array of any
Example:
{ "total_count": 2 }
One of:

Metadata (object with total_count or empty array)

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