Get Available Territory Slots

A time slot represents a period in a day when an appointment can be scheduled. Use the available-territory-slots Connect API to fetch the consolidated availability of each service resource within the selected territory.

  1. Create a page in your app where you can show the available time slots based on the work type group and service territory.

  2. Make a POST request on the available-territory-slots Connect API by passing the required workTypeGroupId and territoryIds parameters.

  3. Parse the JSON response, and show only the available time slots on the page. Don’t show the service resources to maintain their privacy.

    Here’s how a page showing the available time slots can look.

    A representation of the Select Service Appointment Time screen.

  4. Write custom code to randomly select a service resource for the appointment based on the time slot that the user selects. This sample code automatically selects a service resource and stores it in serviceResourceId property.

  5. Pass the list of service resources available for the selected time slot in resources.

Example 

Resource URI

1https://yourInstance.salesforce.com/services/data/vXX.X/connect/scheduling/available-territory-slots

For an Existing User (Account)

To consider an existing user’s preferred visiting hours, pass accountId in the input request body. The preference is enforced when the Enforce Account’s Visiting Hours policy rule is enabled.

Sample Request

1{
2   "accountId" : "001S7000001pFlJIAU",
3   "workTypeGroupId" : "0VSS700000000sVOAQ",
4   "territoryIds" : [
5      "0HhS700000001DYKAY"
6   ],
7 "engagementChannelTypeIds": [
8    "0eFS70000004CG5MAM"
9  ]
10}

Sample Response

The API returns the available time slots and service resources.

1{
2  "result" : {
3    "territorySlots" : [ {
4      "slots" : [{
5        "endTime" : "2023-11-29T20:00:00.000Z",
6        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
7        "resources" : [ "0HnS700000002jAKAQ" ],
8        "startTime" : "2023-11-29T19:00:00.000Z"
9      }, {
10        "endTime" : "2023-11-29T20:15:00.000Z",
11        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
12        "resources" : [ "0HnS700000002jAKAQ" ],
13        "startTime" : "2023-11-29T19:15:00.000Z"
14      }, {
15        "endTime" : "2023-11-29T20:30:00.000Z",
16        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
17        "resources" : [ "0HnS700000002jAKAQ" ],
18        "startTime" : "2023-11-29T19:30:00.000Z"
19      }, {
20        "endTime" : "2023-11-29T20:45:00.000Z",
21        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
22        "resources" : [ "0HnS700000002jAKAQ" ],
23        "startTime" : "2023-11-29T19:45:00.000Z"
24      }, {
25        "endTime" : "2023-11-29T21:00:00.000Z",
26        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
27        "resources" : [ "0HnS700000002jAKAQ" ],
28        "startTime" : "2023-11-29T20:00:00.000Z"
29      }, {
30        "endTime" : "2023-11-29T21:15:00.000Z",
31        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
32        "resources" : [ "0HnS700000002jAKAQ" ],
33        "startTime" : "2023-11-29T20:15:00.000Z"
34      }, {
35        "endTime" : "2023-11-29T21:30:00.000Z",
36        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
37        "resources" : [ "0HnS700000002jAKAQ" ],
38        "startTime" : "2023-11-29T20:30:00.000Z"
39      }, {
40        "endTime" : "2023-11-29T21:45:00.000Z",
41        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
42        "resources" : [ "0HnS700000002jAKAQ" ],
43        "startTime" : "2023-11-29T20:45:00.000Z"
44      }, {
45        "endTime" : "2023-11-29T22:00:00.000Z",
46        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
47        "resources" : [ "0HnS700000002jAKAQ" ],
48        "startTime" : "2023-11-29T21:00:00.000Z"
49      }, {
50        "endTime" : "2023-11-29T22:15:00.000Z",
51        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
52        "resources" : [ "0HnS700000002jAKAQ" ],
53        "startTime" : "2023-11-29T21:15:00.000Z"
54      }, {
55        "endTime" : "2023-11-29T22:30:00.000Z",
56        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
57        "resources" : [ "0HnS700000002jAKAQ" ],
58        "startTime" : "2023-11-29T21:30:00.000Z"
59      }, {
60        "endTime" : "2023-11-29T22:45:00.000Z",
61        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
62        "resources" : [ "0HnS700000002jAKAQ" ],
63        "startTime" : "2023-11-29T21:45:00.000Z"
64      }, {
65        "endTime" : "2023-11-29T23:00:00.000Z",
66        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
67        "resources" : [ "0HnS700000002jAKAQ" ],
68        "startTime" : "2023-11-29T22:00:00.000Z"
69      }, {
70        "endTime" : "2023-11-29T23:15:00.000Z",
71        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
72        "resources" : [ "0HnS700000002jAKAQ" ],
73        "startTime" : "2023-11-29T22:15:00.000Z"
74      }, {
75        "endTime" : "2023-11-29T23:30:00.000Z",
76        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
77        "resources" : [ "0HnS700000002jAKAQ" ],
78        "startTime" : "2023-11-29T22:30:00.000Z"
79      }, {
80        "endTime" : "2023-11-29T23:45:00.000Z",
81        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
82        "resources" : [ "0HnS700000002jAKAQ" ],
83        "startTime" : "2023-11-29T22:45:00.000Z"
84      }, {
85        "endTime" : "2023-11-30T00:00:00.000Z",
86        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
87        "resources" : [ "0HnS700000002jAKAQ" ],
88        "startTime" : "2023-11-29T23:00:00.000Z"
89      }, {
90        "endTime" : "2023-11-30T00:15:00.000Z",
91        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
92        "resources" : [ "0HnS700000002jAKAQ" ],
93        "startTime" : "2023-11-29T23:15:00.000Z"
94      }, {
95        "endTime" : "2023-11-30T00:30:00.000Z",
96        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
97        "resources" : [ "0HnS700000002jAKAQ" ],
98        "startTime" : "2023-11-29T23:30:00.000Z"
99      }, {
100        "endTime" : "2023-11-30T00:45:00.000Z",
101        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
102        "resources" : [ "0HnS700000002jAKAQ" ],
103        "startTime" : "2023-11-29T23:45:00.000Z"
104      }, {
105        "endTime" : "2023-11-30T01:00:00.000Z",
106        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
107        "resources" : [ "0HnS700000002jAKAQ" ],
108        "startTime" : "2023-11-30T00:00:00.000Z"
109      }, {
110        "endTime" : "2023-11-30T01:15:00.000Z",
111        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
112        "resources" : [ "0HnS700000002jAKAQ" ],
113        "startTime" : "2023-11-30T00:15:00.000Z"
114      }, {
115        "endTime" : "2023-11-30T01:30:00.000Z",
116        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
117        "resources" : [ "0HnS700000002jAKAQ" ],
118        "startTime" : "2023-11-30T00:30:00.000Z"
119      }, {
120        "endTime" : "2023-11-30T01:45:00.000Z",
121        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
122        "resources" : [ "0HnS700000002jAKAQ" ],
123        "startTime" : "2023-11-30T00:45:00.000Z"
124      }, {
125        "endTime" : "2023-11-30T02:00:00.000Z",
126        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
127        "resources" : [ "0HnS700000002jAKAQ" ],
128        "startTime" : "2023-11-30T01:00:00.000Z"
129      }, {
130        "endTime" : "2023-11-30T18:00:00.000Z",
131        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
132        "resources" : [ "0HnS700000002jAKAQ" ],
133        "startTime" : "2023-11-30T17:00:00.000Z"
134      }, {
135        "endTime" : "2023-11-30T18:15:00.000Z",
136        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
137        "resources" : [ "0HnS700000002jAKAQ" ],
138        "startTime" : "2023-11-30T17:15:00.000Z"
139      }, {
140        "endTime" : "2023-11-30T18:30:00.000Z",
141        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
142        "resources" : [ "0HnS700000002jAKAQ" ],
143        "startTime" : "2023-11-30T17:30:00.000Z"
144      }, {
145        "endTime" : "2023-11-30T18:45:00.000Z",
146        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
147        "resources" : [ "0HnS700000002jAKAQ" ],
148        "startTime" : "2023-11-30T17:45:00.000Z"
149      }, {
150        "endTime" : "2023-11-30T19:00:00.000Z",
151        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
152        "resources" : [ "0HnS700000002jAKAQ" ],
153        "startTime" : "2023-11-30T18:00:00.000Z"
154      }, {
155        "endTime" : "2023-11-30T19:15:00.000Z",
156        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
157        "resources" : [ "0HnS700000002jAKAQ" ],
158        "startTime" : "2023-11-30T18:15:00.000Z"
159      }, {
160        "endTime" : "2023-11-30T19:30:00.000Z",
161        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
162        "resources" : [ "0HnS700000002jAKAQ" ],
163        "startTime" : "2023-11-30T18:30:00.000Z"
164      }, {
165        "endTime" : "2023-11-30T19:45:00.000Z",
166        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
167        "resources" : [ "0HnS700000002jAKAQ" ],
168        "startTime" : "2023-11-30T18:45:00.000Z"
169      }, {
170        "endTime" : "2023-11-30T20:00:00.000Z",
171        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
172        "resources" : [ "0HnS700000002jAKAQ" ],
173        "startTime" : "2023-11-30T19:00:00.000Z"
174      }, {
175        "endTime" : "2023-11-30T20:15:00.000Z",
176        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
177        "resources" : [ "0HnS700000002jAKAQ" ],
178        "startTime" : "2023-11-30T19:15:00.000Z"
179      }, {
180        "endTime" : "2023-11-30T20:30:00.000Z",
181        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
182        "resources" : [ "0HnS700000002jAKAQ" ],
183        "startTime" : "2023-11-30T19:30:00.000Z"
184      }, {
185        "endTime" : "2023-11-30T20:45:00.000Z",
186        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
187        "resources" : [ "0HnS700000002jAKAQ" ],
188        "startTime" : "2023-11-30T19:45:00.000Z"
189      }, {
190        "endTime" : "2023-11-30T21:00:00.000Z",
191        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
192        "resources" : [ "0HnS700000002jAKAQ" ],
193        "startTime" : "2023-11-30T20:00:00.000Z"
194      }, {
195        "endTime" : "2023-11-30T21:15:00.000Z",
196        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
197        "resources" : [ "0HnS700000002jAKAQ" ],
198        "startTime" : "2023-11-30T20:15:00.000Z"
199      }],
200      "territoryId" : "0HhS700000001DYKAY"
201    } ]
202  }
203}

For a Guest User (Lead)

Sample Request

1{
2   "workTypeGroupId" : "0VSS700000000sVOAQ",
3   "territoryIds" : [
4      "0HhS700000001DYKAY"
5   ],
6 "engagementChannelTypeIds": [
7    "0eFS70000004CG5MAM"
8  ]
9}

Sample Response

The API returns the available time slots and service resources.

1{
2  "result" : {
3    "territorySlots" : [ {
4      "slots" : [{
5        "endTime" : "2023-11-29T20:00:00.000Z",
6        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
7        "resources" : [ "0HnS700000002jAKAQ" ],
8        "startTime" : "2023-11-29T19:00:00.000Z"
9      }, {
10        "endTime" : "2023-11-29T20:15:00.000Z",
11        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
12        "resources" : [ "0HnS700000002jAKAQ" ],
13        "startTime" : "2023-11-29T19:15:00.000Z"
14      }, {
15        "endTime" : "2023-11-29T20:30:00.000Z",
16        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
17        "resources" : [ "0HnS700000002jAKAQ" ],
18        "startTime" : "2023-11-29T19:30:00.000Z"
19      }, {
20        "endTime" : "2023-11-29T20:45:00.000Z",
21        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
22        "resources" : [ "0HnS700000002jAKAQ" ],
23        "startTime" : "2023-11-29T19:45:00.000Z"
24      }, {
25        "endTime" : "2023-11-29T21:00:00.000Z",
26        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
27        "resources" : [ "0HnS700000002jAKAQ" ],
28        "startTime" : "2023-11-29T20:00:00.000Z"
29      }, {
30        "endTime" : "2023-11-29T21:15:00.000Z",
31        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
32        "resources" : [ "0HnS700000002jAKAQ" ],
33        "startTime" : "2023-11-29T20:15:00.000Z"
34      }, {
35        "endTime" : "2023-11-29T21:30:00.000Z",
36        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
37        "resources" : [ "0HnS700000002jAKAQ" ],
38        "startTime" : "2023-11-29T20:30:00.000Z"
39      }, {
40        "endTime" : "2023-11-29T21:45:00.000Z",
41        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
42        "resources" : [ "0HnS700000002jAKAQ" ],
43        "startTime" : "2023-11-29T20:45:00.000Z"
44      }, {
45        "endTime" : "2023-11-29T22:00:00.000Z",
46        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
47        "resources" : [ "0HnS700000002jAKAQ" ],
48        "startTime" : "2023-11-29T21:00:00.000Z"
49      }, {
50        "endTime" : "2023-11-29T22:15:00.000Z",
51        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
52        "resources" : [ "0HnS700000002jAKAQ" ],
53        "startTime" : "2023-11-29T21:15:00.000Z"
54      }, {
55        "endTime" : "2023-11-29T22:30:00.000Z",
56        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
57        "resources" : [ "0HnS700000002jAKAQ" ],
58        "startTime" : "2023-11-29T21:30:00.000Z"
59      }, {
60        "endTime" : "2023-11-29T22:45:00.000Z",
61        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
62        "resources" : [ "0HnS700000002jAKAQ" ],
63        "startTime" : "2023-11-29T21:45:00.000Z"
64      }, {
65        "endTime" : "2023-11-29T23:00:00.000Z",
66        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
67        "resources" : [ "0HnS700000002jAKAQ" ],
68        "startTime" : "2023-11-29T22:00:00.000Z"
69      }, {
70        "endTime" : "2023-11-29T23:15:00.000Z",
71        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
72        "resources" : [ "0HnS700000002jAKAQ" ],
73        "startTime" : "2023-11-29T22:15:00.000Z"
74      }, {
75        "endTime" : "2023-11-29T23:30:00.000Z",
76        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
77        "resources" : [ "0HnS700000002jAKAQ" ],
78        "startTime" : "2023-11-29T22:30:00.000Z"
79      }, {
80        "endTime" : "2023-11-29T23:45:00.000Z",
81        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
82        "resources" : [ "0HnS700000002jAKAQ" ],
83        "startTime" : "2023-11-29T22:45:00.000Z"
84      }, {
85        "endTime" : "2023-11-30T00:00:00.000Z",
86        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
87        "resources" : [ "0HnS700000002jAKAQ" ],
88        "startTime" : "2023-11-29T23:00:00.000Z"
89      }, {
90        "endTime" : "2023-11-30T00:15:00.000Z",
91        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
92        "resources" : [ "0HnS700000002jAKAQ" ],
93        "startTime" : "2023-11-29T23:15:00.000Z"
94      }, {
95        "endTime" : "2023-11-30T00:30:00.000Z",
96        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
97        "resources" : [ "0HnS700000002jAKAQ" ],
98        "startTime" : "2023-11-29T23:30:00.000Z"
99      }, {
100        "endTime" : "2023-11-30T00:45:00.000Z",
101        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
102        "resources" : [ "0HnS700000002jAKAQ" ],
103        "startTime" : "2023-11-29T23:45:00.000Z"
104      }, {
105        "endTime" : "2023-11-30T01:00:00.000Z",
106        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
107        "resources" : [ "0HnS700000002jAKAQ" ],
108        "startTime" : "2023-11-30T00:00:00.000Z"
109      }, {
110        "endTime" : "2023-11-30T01:15:00.000Z",
111        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
112        "resources" : [ "0HnS700000002jAKAQ" ],
113        "startTime" : "2023-11-30T00:15:00.000Z"
114      }, {
115        "endTime" : "2023-11-30T01:30:00.000Z",
116        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
117        "resources" : [ "0HnS700000002jAKAQ" ],
118        "startTime" : "2023-11-30T00:30:00.000Z"
119      }, {
120        "endTime" : "2023-11-30T01:45:00.000Z",
121        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
122        "resources" : [ "0HnS700000002jAKAQ" ],
123        "startTime" : "2023-11-30T00:45:00.000Z"
124      }, {
125        "endTime" : "2023-11-30T02:00:00.000Z",
126        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
127        "resources" : [ "0HnS700000002jAKAQ" ],
128        "startTime" : "2023-11-30T01:00:00.000Z"
129      }, {
130        "endTime" : "2023-11-30T18:00:00.000Z",
131        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
132        "resources" : [ "0HnS700000002jAKAQ" ],
133        "startTime" : "2023-11-30T17:00:00.000Z"
134      }, {
135        "endTime" : "2023-11-30T18:15:00.000Z",
136        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
137        "resources" : [ "0HnS700000002jAKAQ" ],
138        "startTime" : "2023-11-30T17:15:00.000Z"
139      }, {
140        "endTime" : "2023-11-30T18:30:00.000Z",
141        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
142        "resources" : [ "0HnS700000002jAKAQ" ],
143        "startTime" : "2023-11-30T17:30:00.000Z"
144      }, {
145        "endTime" : "2023-11-30T18:45:00.000Z",
146        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
147        "resources" : [ "0HnS700000002jAKAQ" ],
148        "startTime" : "2023-11-30T17:45:00.000Z"
149      }, {
150        "endTime" : "2023-11-30T19:00:00.000Z",
151        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
152        "resources" : [ "0HnS700000002jAKAQ" ],
153        "startTime" : "2023-11-30T18:00:00.000Z"
154      }, {
155        "endTime" : "2023-11-30T19:15:00.000Z",
156        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
157        "resources" : [ "0HnS700000002jAKAQ" ],
158        "startTime" : "2023-11-30T18:15:00.000Z"
159      }, {
160        "endTime" : "2023-11-30T19:30:00.000Z",
161        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
162        "resources" : [ "0HnS700000002jAKAQ" ],
163        "startTime" : "2023-11-30T18:30:00.000Z"
164      }, {
165        "endTime" : "2023-11-30T19:45:00.000Z",
166        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
167        "resources" : [ "0HnS700000002jAKAQ" ],
168        "startTime" : "2023-11-30T18:45:00.000Z"
169      }, {
170        "endTime" : "2023-11-30T20:00:00.000Z",
171        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
172        "resources" : [ "0HnS700000002jAKAQ" ],
173        "startTime" : "2023-11-30T19:00:00.000Z"
174      }, {
175        "endTime" : "2023-11-30T20:15:00.000Z",
176        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
177        "resources" : [ "0HnS700000002jAKAQ" ],
178        "startTime" : "2023-11-30T19:15:00.000Z"
179      }, {
180        "endTime" : "2023-11-30T20:30:00.000Z",
181        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
182        "resources" : [ "0HnS700000002jAKAQ" ],
183        "startTime" : "2023-11-30T19:30:00.000Z"
184      }, {
185        "endTime" : "2023-11-30T20:45:00.000Z",
186        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
187        "resources" : [ "0HnS700000002jAKAQ" ],
188        "startTime" : "2023-11-30T19:45:00.000Z"
189      }, {
190        "endTime" : "2023-11-30T21:00:00.000Z",
191        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
192        "resources" : [ "0HnS700000002jAKAQ" ],
193        "startTime" : "2023-11-30T20:00:00.000Z"
194      }, {
195        "endTime" : "2023-11-30T21:15:00.000Z",
196        "engagementChannelTypeIds" : [ "0eFS70000004CG5MAM" ],
197        "resources" : [ "0HnS700000002jAKAQ" ],
198        "startTime" : "2023-11-30T20:15:00.000Z"
199      }],
200      "territoryId" : "0HhS700000001DYKAY"
201    } ]
202  }
203}

On the next page in your app, you can show the appointment details for the user to review and create the appointment.