v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

List all services of a center

This API helps you to retrieve all the services that are active in a center.

You must specify the appropriate details for the center_id paramter in the API request.

You can also use the expand parameter in the API request to specify details for the additional_info, catalog_info, category_id, variants_info, add_ons_info, and image_paths parameters. The category_id parameter enables you to filter services according to their respective category or sub-category.

In addition, you can leverage the pagination feature by passing page and size query parameters if you have a large number of records. By default, page is set as 1 and size is set as 10. Size cannot be more than 100: which means that the maximum records per page cannot be more than 100.

get/v1/Centers/{center_id}/services

Path parameters

center_idstring required

Mandatory Unique 32-character identifier of the center.

Query parameters

only_add_onsboolean

Optional If passed as true, this parameter retrives only add-on services. Default value is false.

catalog_enabledboolean

Optional If passed as true, this parameter retrieves only catalog-enabled services. Default value is false.

category_idstring

Optional Filters the services of the center according to their respective category_id or sub-category_id values.

pageinteger

Optional Number of the center's services to be displayed per page. Default value for this parameter is 10 and the maximum value is 100.

sizeinteger

Optional Number of the center's services to be displayed per page. Default value for this parameter is 10 and the maximum value is 100.

expandstring

Returns extra fields. Supported: additional_info, catalog_info, category_id, variants_info, add_ons_info, image_paths, tags.

Response

200

OR

Example response

{
  "id": "55265b47-ad10-4ee6-8883-ff198c5dc433",
  "code": "LS1066",
  "name": "Acrylic -  Natural Full Set Extension",
  "duration": 90,
  "price_info": {
    "currency_id": 147,
    "sale_price": 310,
    "tax_id": "ebabf80f-ac9b-4270-b0b4-fca8cb0e2627"
  },
  "additional_info": {
    "category": {
      "id": "9b2ce954-2a44-4775-9154-e226e8786bd9",
      "name": "Hands And Feet"
    },
    "sub_category": {
      "id": "b8cc59f6-e7dc-44e1-a6ce-104ef05aa58c",
      "name": "Nail Extension"
    },
    "business_unit": {
      "id": "0ab7513c-82d6-4e0c-99db-12d52852db91",
      "name": "Female"
    }
  },
  "catalog_info": {
    "show_in_catalog": true,
    "can_book": true,
    "show_price": true
  }
}