Retrieve a service offered in a center

GET https://api.zenoti.com/v1/Centers/{center_id}/services/{service_id}

This API helps you to retrieve the details of a specific service at the required center.You must specify in the API request the unique identifier of the location (center) as center_id and the unique identifier of the service as service_id. The API then retrieves the details of the service.You can also use the expand parameter in the API request to specify details for the additional_info, catalog_info, variants_info, add_ons_info, tags, and image_paths parameters.

Before you begin

Permission: Manage API Keys (on the Administrator security object) — Required to access Zenoti APIs.

Endpoint

GET /v1/Centers/{center_id}/services/{service_id}

Base URL: https://api.zenoti.com

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Path parameters

Parameter Type Required Description
center_id string Yes Mandatory Unique 32-character identifier of the center.
service_id string Yes Mandatory Unique 32-character identifier of the service.

Query parameters

Parameter Type Required Default Description
expand string No — Expand the internal objects in the service model. Supported values: additional_info, catalog_info, variants_info, add_ons_info, image_paths, tags.

Response

Success (200 OK)

{}

Example

curl --request GET \
  --url 'https://api.zenoti.com/v1/Centers/{center_id}/services/{service_id}' \
  --header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/v1/Centers/{center_id}/services/{service_id}', {
  method: 'GET',
  headers: {
    'Authorization': 'bearer {{access_token}}'
  },
});
const data = await response.json();
import requests

response = requests.get(
    'https://api.zenoti.com/v1/Centers/{center_id}/services/{service_id}',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var response = await client.GetAsync(
    "https://api.zenoti.com/v1/Centers/{center_id}/services/{service_id}");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/Centers/{center_id}/services/{service_id}')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
response = http.request(request)
data = JSON.parse(response.body)

Error codes

Status Description
401 Unauthorized -- invalid or expired access token
429 Too many requests -- rate limit exceeded