Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Get Service

Developer Preview

Retrieves a service by Id

Permissions
This endpoint requires the Read Bookings - Public Data or Read Bookings - Including Participants permissions scope

Authorization

This endpoint requires an authorization header - pass the access token from the OAuth installation flow.

GET

https://www.wixapis.com/bookings/v1/services/{id}

Path Params

NAME
TYPE
DESCRIPTION
id
Required

string

Requested service Id

Response Object

NAME
TYPE
DESCRIPTION
service

object

Requested service

Status/Error Codes

The response will include an HTTP status code.

Was this helpful?

Get Service

Returns a service by its Id

Request

curl

Copy Code
1curl -X GET \
2 'https://www.wixapis.com/bookings/v1/services/4c0bae61-4599-4d02-a2f4-25e9222df416' \
3 -H 'Authorization: <AUTH>'

Response

json

1
2{"service": {
3 "id": "4c0bae61-4599-4d02-a2f4-25e9222df416",
4 "info": {
5 "name": "Haircut",
6 "description": "A regular short haircut",
7 "images": [ {
8 "id": "bd10eec5-564a-47b7-8638-ff005f18261d",
9 "url": "bd10eec5564a47b78638ff005f18261d.jpg",
10 "height": 4912,
11 "width": 7360
12 }],
13 "tagLine": "A regular Haircut"
14 },
15 "policy": {
16 "maxParticipantsPerBooking": 1,
17 "bookUpToXMinutesBefore": 1440,
18 "cancelRescheduleUpToXMinutesBefore": 61,
19 "isBookOnlineAllowed": true,
20 "isCancelAllowed": true,
21 "isRescheduleAllowed": true,
22 "futureBookingsPolicy": {
23 "shouldLimit": false,
24 "limitXMinutesToTheFuture": 1440
25 },
26 "waitingListPolicy": {
27 "isEnabled": false,
28 "capacity": 10,
29 "timeWindowMinutes": 10
30 },
31 "bookingsApprovalPolicy": {
32 "isBusinessApprovalRequired": false,
33 "requestsAffectsAvailability": true
34 }
35 },
36 "paymentOptions": {
37 "wixPayOnline": true,
38 "wixPayInPerson": false,
39 "custom": false,
40 "wixPaidPlan": false
41 },
42 "categoryId": "442d101a-37b1-4769-81e5-4e7f809585e8",
43 "bookingFormId": "00000000-0000-0000-0000-000000000000",
44 "scheduleIds": ["a93abaf4-c776-46d2-aba0-c986c40ae8c1"],
45 "customProperties": {
46 "order": "10",
47 "uouHidden": "false"
48 },
49 "status": "CREATED",
50 "sortOrder": 10
51}}