List services

Lists the services (prestations) the salon offers with their duration.

GET https://cotlet.dev/api/v1/planity/services

read

Returns the services set up under Admin, with the duration of each. Use the ids in create_appointment and update_appointment. Prices and products linked to a service are not returned.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/planity/services \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("planity", "list_services")
Node.js
const result = await cotlet.call('planity', 'list_services');
CLI
cotlet call planity list_services

Example response

JSON

{
  "services": [
    {
      "service_id": "sv_11",
      "name": "Coupe femme",
      "duration_minutes": 60
    },
    {
      "service_id": "sv_12",
      "name": "Couleur",
      "duration_minutes": 90
    },
    {
      "service_id": "sv_14",
      "name": "Brushing",
      "duration_minutes": 30
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.