@honeyfield/rent2b-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client.d.ts +24 -0
- package/dist/api-client.js +77 -0
- package/dist/api-client.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -0
- package/dist/generator/openapi-parser.d.ts +30 -0
- package/dist/generator/openapi-parser.js +95 -0
- package/dist/generator/openapi-parser.js.map +1 -0
- package/dist/generator/tool-generator.d.ts +13 -0
- package/dist/generator/tool-generator.js +68 -0
- package/dist/generator/tool-generator.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +65 -0
- package/dist/index.js.map +1 -0
- package/dist/overrides/index.d.ts +10 -0
- package/dist/overrides/index.js +19 -0
- package/dist/overrides/index.js.map +1 -0
- package/dist/overrides/tool-overrides.json +184 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +114 -0
- package/dist/server.js.map +1 -0
- package/generated/tools.json +3136 -0
- package/package.json +54 -0
|
@@ -0,0 +1,3136 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "rent2b_rooms_test_list",
|
|
4
|
+
"description": "Test database connection",
|
|
5
|
+
"method": "GET",
|
|
6
|
+
"path": "/rooms/test",
|
|
7
|
+
"inputSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {},
|
|
10
|
+
"required": []
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "rent2b_rooms_pricing_rules_list",
|
|
15
|
+
"description": "Get available pricing rules for an organization",
|
|
16
|
+
"method": "GET",
|
|
17
|
+
"path": "/rooms/pricing-rules/{organizationId}",
|
|
18
|
+
"inputSchema": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {},
|
|
21
|
+
"required": []
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "rent2b_rooms_create",
|
|
26
|
+
"description": "Create a new room.",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"path": "/rooms",
|
|
29
|
+
"inputSchema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The name of the room"
|
|
35
|
+
},
|
|
36
|
+
"description": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Description of the room"
|
|
39
|
+
},
|
|
40
|
+
"image": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "URL of the room image"
|
|
43
|
+
},
|
|
44
|
+
"capacity": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "Maximum capacity of the room"
|
|
47
|
+
},
|
|
48
|
+
"size_sqm": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"description": "Size of the room in square meters"
|
|
51
|
+
},
|
|
52
|
+
"amenities": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"description": "List of amenities available in the room"
|
|
55
|
+
},
|
|
56
|
+
"category": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Category of the room"
|
|
59
|
+
},
|
|
60
|
+
"organization_id": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "The organization ID this room belongs to"
|
|
63
|
+
},
|
|
64
|
+
"default_price_per_night": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"description": "Default price per night for room rentals"
|
|
67
|
+
},
|
|
68
|
+
"default_price_per_hour": {
|
|
69
|
+
"type": "number",
|
|
70
|
+
"description": "Default price per hour for room rentals"
|
|
71
|
+
},
|
|
72
|
+
"color": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "Color code for the room (hex format)"
|
|
75
|
+
},
|
|
76
|
+
"pricing_rule_id": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "The pricing rule ID to apply to this room"
|
|
79
|
+
},
|
|
80
|
+
"check_in_time": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Check-in time for this room (overrides location setting if set)"
|
|
83
|
+
},
|
|
84
|
+
"check_out_time": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "Check-out time for this room (overrides location setting if set)"
|
|
87
|
+
},
|
|
88
|
+
"is_public": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"description": "Whether this room is visible to the public"
|
|
91
|
+
},
|
|
92
|
+
"public_booking_enabled": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "Whether this room can be booked by the public"
|
|
95
|
+
},
|
|
96
|
+
"is_active": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Whether this room is active"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"name",
|
|
103
|
+
"organization_id"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "rent2b_rooms_list",
|
|
109
|
+
"description": "List all rooms in the organization. Supports pagination.",
|
|
110
|
+
"method": "GET",
|
|
111
|
+
"path": "/rooms/organization/current-org",
|
|
112
|
+
"inputSchema": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"page": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "Page number (1-based)"
|
|
118
|
+
},
|
|
119
|
+
"limit": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"description": "Number of items per page (max 100)"
|
|
122
|
+
},
|
|
123
|
+
"search": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "Search by room name or description"
|
|
126
|
+
},
|
|
127
|
+
"location_id": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "Filter by location ID"
|
|
130
|
+
},
|
|
131
|
+
"category": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "Filter by category"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": []
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "rent2b_rooms_organization_list",
|
|
141
|
+
"description": "Get all rooms for an organization with pagination and search",
|
|
142
|
+
"method": "GET",
|
|
143
|
+
"path": "/rooms/organization/{organizationId}",
|
|
144
|
+
"inputSchema": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"page": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "Page number (1-based)"
|
|
150
|
+
},
|
|
151
|
+
"limit": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Number of items per page (max 100)"
|
|
154
|
+
},
|
|
155
|
+
"search": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Search by room name or description"
|
|
158
|
+
},
|
|
159
|
+
"location_id": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "Filter by location ID"
|
|
162
|
+
},
|
|
163
|
+
"category": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Filter by category"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": []
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "rent2b_rooms_location_list",
|
|
173
|
+
"description": "Get all rooms for a location with pagination and search",
|
|
174
|
+
"method": "GET",
|
|
175
|
+
"path": "/rooms/location/{locationId}",
|
|
176
|
+
"inputSchema": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"properties": {
|
|
179
|
+
"locationId": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "locationId parameter"
|
|
182
|
+
},
|
|
183
|
+
"page": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"description": "Page number (1-based)"
|
|
186
|
+
},
|
|
187
|
+
"limit": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "Number of items per page (max 100)"
|
|
190
|
+
},
|
|
191
|
+
"search": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"description": "Search by room name or description"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"locationId"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "rent2b_rooms_get",
|
|
203
|
+
"description": "Get details of a specific room by ID.",
|
|
204
|
+
"method": "GET",
|
|
205
|
+
"path": "/rooms/{id}",
|
|
206
|
+
"inputSchema": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"id": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"description": "id parameter"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": [
|
|
215
|
+
"id"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "rent2b_rooms_update",
|
|
221
|
+
"description": "Update a room's properties.",
|
|
222
|
+
"method": "PATCH",
|
|
223
|
+
"path": "/rooms/{id}",
|
|
224
|
+
"inputSchema": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"id": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"description": "id parameter"
|
|
230
|
+
},
|
|
231
|
+
"name": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "The name of the room"
|
|
234
|
+
},
|
|
235
|
+
"description": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Description of the room"
|
|
238
|
+
},
|
|
239
|
+
"image": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "URL of the room image"
|
|
242
|
+
},
|
|
243
|
+
"capacity": {
|
|
244
|
+
"type": "number",
|
|
245
|
+
"description": "Maximum capacity of the room"
|
|
246
|
+
},
|
|
247
|
+
"size_sqm": {
|
|
248
|
+
"type": "number",
|
|
249
|
+
"description": "Size of the room in square meters"
|
|
250
|
+
},
|
|
251
|
+
"amenities": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"description": "List of amenities available in the room"
|
|
254
|
+
},
|
|
255
|
+
"category": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"description": "Category of the room"
|
|
258
|
+
},
|
|
259
|
+
"organization_id": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"description": "The organization ID this room belongs to"
|
|
262
|
+
},
|
|
263
|
+
"default_price_per_night": {
|
|
264
|
+
"type": "number",
|
|
265
|
+
"description": "Default price per night for room rentals"
|
|
266
|
+
},
|
|
267
|
+
"default_price_per_hour": {
|
|
268
|
+
"type": "number",
|
|
269
|
+
"description": "Default price per hour for room rentals"
|
|
270
|
+
},
|
|
271
|
+
"color": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Color code for the room (hex format)"
|
|
274
|
+
},
|
|
275
|
+
"pricing_rule_id": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "The pricing rule ID to apply to this room"
|
|
278
|
+
},
|
|
279
|
+
"check_in_time": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "Check-in time for this room (overrides location setting if set)"
|
|
282
|
+
},
|
|
283
|
+
"check_out_time": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"description": "Check-out time for this room (overrides location setting if set)"
|
|
286
|
+
},
|
|
287
|
+
"is_public": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"description": "Whether this room is visible to the public"
|
|
290
|
+
},
|
|
291
|
+
"public_booking_enabled": {
|
|
292
|
+
"type": "boolean",
|
|
293
|
+
"description": "Whether this room can be booked by the public"
|
|
294
|
+
},
|
|
295
|
+
"is_active": {
|
|
296
|
+
"type": "boolean",
|
|
297
|
+
"description": "Whether this room is active"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"required": [
|
|
301
|
+
"id"
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "rent2b_rooms_delete",
|
|
307
|
+
"description": "Delete a room.",
|
|
308
|
+
"method": "DELETE",
|
|
309
|
+
"path": "/rooms/{id}",
|
|
310
|
+
"inputSchema": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"properties": {
|
|
313
|
+
"id": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"description": "id parameter"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"required": [
|
|
319
|
+
"id"
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "rent2b_rooms_images_create",
|
|
325
|
+
"description": "Upload images for a room",
|
|
326
|
+
"method": "POST",
|
|
327
|
+
"path": "/rooms/{id}/images",
|
|
328
|
+
"inputSchema": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"properties": {
|
|
331
|
+
"id": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"description": "id parameter"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"required": [
|
|
337
|
+
"id"
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "rent2b_rooms_images_list",
|
|
343
|
+
"description": "Get all images for a room",
|
|
344
|
+
"method": "GET",
|
|
345
|
+
"path": "/rooms/{id}/images",
|
|
346
|
+
"inputSchema": {
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"id": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "id parameter"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"required": [
|
|
355
|
+
"id"
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "rent2b_rooms_images_delete",
|
|
361
|
+
"description": "Delete a room image",
|
|
362
|
+
"method": "DELETE",
|
|
363
|
+
"path": "/rooms/{id}/images/{imageId}",
|
|
364
|
+
"inputSchema": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"id": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"description": "id parameter"
|
|
370
|
+
},
|
|
371
|
+
"imageId": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "imageId parameter"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"id",
|
|
378
|
+
"imageId"
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "rent2b_rooms_images_primary_update",
|
|
384
|
+
"description": "Set an image as primary for a room",
|
|
385
|
+
"method": "PATCH",
|
|
386
|
+
"path": "/rooms/{id}/images/primary",
|
|
387
|
+
"inputSchema": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"id": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"description": "id parameter"
|
|
393
|
+
},
|
|
394
|
+
"imageId": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"description": "ID of the image to set as primary"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"required": [
|
|
400
|
+
"id",
|
|
401
|
+
"imageId"
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "rent2b_rooms_buffer_times_list",
|
|
407
|
+
"description": "Retrieve buffer time configuration (preparation/cleanup time before and after bookings)",
|
|
408
|
+
"method": "GET",
|
|
409
|
+
"path": "/rooms/{id}/buffer-times",
|
|
410
|
+
"inputSchema": {
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"id": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"description": "id parameter"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"required": [
|
|
419
|
+
"id"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "rent2b_rooms_buffer_times_update",
|
|
425
|
+
"description": "Configure buffer time before and after bookings for preparation, cleaning, or turnover. Buffer times prevent back-to-back bookings.",
|
|
426
|
+
"method": "PATCH",
|
|
427
|
+
"path": "/rooms/{id}/buffer-times",
|
|
428
|
+
"inputSchema": {
|
|
429
|
+
"type": "object",
|
|
430
|
+
"properties": {
|
|
431
|
+
"id": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"description": "id parameter"
|
|
434
|
+
},
|
|
435
|
+
"buffer_before_days": {
|
|
436
|
+
"type": "number",
|
|
437
|
+
"description": "Buffer time in days required before a booking starts (e.g., shipping time to customer)"
|
|
438
|
+
},
|
|
439
|
+
"buffer_after_days": {
|
|
440
|
+
"type": "number",
|
|
441
|
+
"description": "Buffer time in days required after a booking ends (e.g., return shipping time)"
|
|
442
|
+
},
|
|
443
|
+
"allow_buffer_override": {
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"description": "Whether buffer times can be overridden for back-to-back bookings"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"required": [
|
|
449
|
+
"id"
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "rent2b_items_analyze_image_create",
|
|
455
|
+
"description": "Uses AI to analyze an uploaded image and returns 3 different item suggestions with details like name, description, category, attributes, and pricing. Rate limited to 5 requests per minute.",
|
|
456
|
+
"method": "POST",
|
|
457
|
+
"path": "/items/analyze-image",
|
|
458
|
+
"inputSchema": {
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {},
|
|
461
|
+
"required": []
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "rent2b_items_create",
|
|
466
|
+
"description": "Create a new rental item in the organization.",
|
|
467
|
+
"method": "POST",
|
|
468
|
+
"path": "/items",
|
|
469
|
+
"inputSchema": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"name": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"description": "The name of the item"
|
|
475
|
+
},
|
|
476
|
+
"description": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"description": "Description of the item"
|
|
479
|
+
},
|
|
480
|
+
"image": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"description": "URL of the item image"
|
|
483
|
+
},
|
|
484
|
+
"category": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "Category of the item (deprecated - use category_id instead)"
|
|
487
|
+
},
|
|
488
|
+
"category_id": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "The category ID this item belongs to"
|
|
491
|
+
},
|
|
492
|
+
"attributes": {
|
|
493
|
+
"type": "object",
|
|
494
|
+
"description": "Category-specific attributes for the item"
|
|
495
|
+
},
|
|
496
|
+
"quantity": {
|
|
497
|
+
"type": "number",
|
|
498
|
+
"description": "Total quantity available"
|
|
499
|
+
},
|
|
500
|
+
"default_price_per_day": {
|
|
501
|
+
"type": "number",
|
|
502
|
+
"description": "Default daily rental price"
|
|
503
|
+
},
|
|
504
|
+
"default_price_per_hour": {
|
|
505
|
+
"type": "number",
|
|
506
|
+
"description": "Default hourly rental price"
|
|
507
|
+
},
|
|
508
|
+
"deposit_amount": {
|
|
509
|
+
"type": "number",
|
|
510
|
+
"description": "Security deposit amount"
|
|
511
|
+
},
|
|
512
|
+
"organization_id": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"description": "The organization ID this item belongs to"
|
|
515
|
+
},
|
|
516
|
+
"location_id": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"description": "The location ID where this item is stored"
|
|
519
|
+
},
|
|
520
|
+
"color": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"description": "Hex color code for visual representation of the item"
|
|
523
|
+
},
|
|
524
|
+
"is_public": {
|
|
525
|
+
"type": "boolean",
|
|
526
|
+
"description": "Whether this item is visible to the public"
|
|
527
|
+
},
|
|
528
|
+
"public_booking_enabled": {
|
|
529
|
+
"type": "boolean",
|
|
530
|
+
"description": "Whether this item can be booked by the public"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"required": [
|
|
534
|
+
"name",
|
|
535
|
+
"quantity",
|
|
536
|
+
"organization_id",
|
|
537
|
+
"location_id"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "rent2b_items_list",
|
|
543
|
+
"description": "List all rental items in the organization. Supports pagination with page and limit query params.",
|
|
544
|
+
"method": "GET",
|
|
545
|
+
"path": "/items/organization/current-org",
|
|
546
|
+
"inputSchema": {
|
|
547
|
+
"type": "object",
|
|
548
|
+
"properties": {
|
|
549
|
+
"page": {
|
|
550
|
+
"type": "number",
|
|
551
|
+
"description": "Page number (1-based)"
|
|
552
|
+
},
|
|
553
|
+
"limit": {
|
|
554
|
+
"type": "number",
|
|
555
|
+
"description": "Number of items per page (max 100)"
|
|
556
|
+
},
|
|
557
|
+
"search": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"description": "Search by item name or description"
|
|
560
|
+
},
|
|
561
|
+
"category_id": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"description": "Filter by category ID"
|
|
564
|
+
},
|
|
565
|
+
"location_id": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"description": "Filter by location ID"
|
|
568
|
+
},
|
|
569
|
+
"lat": {
|
|
570
|
+
"type": "number",
|
|
571
|
+
"description": "Latitude for distance-based search"
|
|
572
|
+
},
|
|
573
|
+
"lng": {
|
|
574
|
+
"type": "number",
|
|
575
|
+
"description": "Longitude for distance-based search"
|
|
576
|
+
},
|
|
577
|
+
"radius": {
|
|
578
|
+
"type": "number",
|
|
579
|
+
"description": "Search radius in meters (max 500000)"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"required": []
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "rent2b_items_organization_list",
|
|
587
|
+
"description": "Get all items for an organization with pagination, search, and radius filtering",
|
|
588
|
+
"method": "GET",
|
|
589
|
+
"path": "/items/organization/{organizationId}",
|
|
590
|
+
"inputSchema": {
|
|
591
|
+
"type": "object",
|
|
592
|
+
"properties": {
|
|
593
|
+
"page": {
|
|
594
|
+
"type": "number",
|
|
595
|
+
"description": "Page number (1-based)"
|
|
596
|
+
},
|
|
597
|
+
"limit": {
|
|
598
|
+
"type": "number",
|
|
599
|
+
"description": "Number of items per page (max 100)"
|
|
600
|
+
},
|
|
601
|
+
"search": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "Search by item name or description"
|
|
604
|
+
},
|
|
605
|
+
"category_id": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"description": "Filter by category ID"
|
|
608
|
+
},
|
|
609
|
+
"location_id": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"description": "Filter by location ID"
|
|
612
|
+
},
|
|
613
|
+
"lat": {
|
|
614
|
+
"type": "number",
|
|
615
|
+
"description": "Latitude for distance-based search"
|
|
616
|
+
},
|
|
617
|
+
"lng": {
|
|
618
|
+
"type": "number",
|
|
619
|
+
"description": "Longitude for distance-based search"
|
|
620
|
+
},
|
|
621
|
+
"radius": {
|
|
622
|
+
"type": "number",
|
|
623
|
+
"description": "Search radius in meters (max 500000)"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"required": []
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "rent2b_items_location_list",
|
|
631
|
+
"description": "Get all items for a location with pagination, search, and radius filtering",
|
|
632
|
+
"method": "GET",
|
|
633
|
+
"path": "/items/location/{locationId}",
|
|
634
|
+
"inputSchema": {
|
|
635
|
+
"type": "object",
|
|
636
|
+
"properties": {
|
|
637
|
+
"locationId": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"description": "locationId parameter"
|
|
640
|
+
},
|
|
641
|
+
"page": {
|
|
642
|
+
"type": "number",
|
|
643
|
+
"description": "Page number (1-based)"
|
|
644
|
+
},
|
|
645
|
+
"limit": {
|
|
646
|
+
"type": "number",
|
|
647
|
+
"description": "Number of items per page (max 100)"
|
|
648
|
+
},
|
|
649
|
+
"search": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"description": "Search by item name or description"
|
|
652
|
+
},
|
|
653
|
+
"category_id": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"description": "Filter by category ID"
|
|
656
|
+
},
|
|
657
|
+
"location_id": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"description": "Filter by location ID"
|
|
660
|
+
},
|
|
661
|
+
"lat": {
|
|
662
|
+
"type": "number",
|
|
663
|
+
"description": "Latitude for distance-based search"
|
|
664
|
+
},
|
|
665
|
+
"lng": {
|
|
666
|
+
"type": "number",
|
|
667
|
+
"description": "Longitude for distance-based search"
|
|
668
|
+
},
|
|
669
|
+
"radius": {
|
|
670
|
+
"type": "number",
|
|
671
|
+
"description": "Search radius in meters (max 500000)"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [
|
|
675
|
+
"locationId"
|
|
676
|
+
]
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"name": "rent2b_items_get",
|
|
681
|
+
"description": "Get details of a specific rental item by ID.",
|
|
682
|
+
"method": "GET",
|
|
683
|
+
"path": "/items/{id}",
|
|
684
|
+
"inputSchema": {
|
|
685
|
+
"type": "object",
|
|
686
|
+
"properties": {
|
|
687
|
+
"id": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"description": "id parameter"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"required": [
|
|
693
|
+
"id"
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "rent2b_items_update",
|
|
699
|
+
"description": "Update a rental item's properties.",
|
|
700
|
+
"method": "PATCH",
|
|
701
|
+
"path": "/items/{id}",
|
|
702
|
+
"inputSchema": {
|
|
703
|
+
"type": "object",
|
|
704
|
+
"properties": {
|
|
705
|
+
"id": {
|
|
706
|
+
"type": "string",
|
|
707
|
+
"description": "id parameter"
|
|
708
|
+
},
|
|
709
|
+
"name": {
|
|
710
|
+
"type": "string",
|
|
711
|
+
"description": "The name of the item"
|
|
712
|
+
},
|
|
713
|
+
"description": {
|
|
714
|
+
"type": "string",
|
|
715
|
+
"description": "Description of the item"
|
|
716
|
+
},
|
|
717
|
+
"image": {
|
|
718
|
+
"type": "string",
|
|
719
|
+
"description": "URL of the item image"
|
|
720
|
+
},
|
|
721
|
+
"category": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"description": "Category of the item (deprecated - use category_id instead)"
|
|
724
|
+
},
|
|
725
|
+
"category_id": {
|
|
726
|
+
"type": "string",
|
|
727
|
+
"description": "The category ID this item belongs to"
|
|
728
|
+
},
|
|
729
|
+
"attributes": {
|
|
730
|
+
"type": "object",
|
|
731
|
+
"description": "Category-specific attributes for the item"
|
|
732
|
+
},
|
|
733
|
+
"quantity": {
|
|
734
|
+
"type": "number",
|
|
735
|
+
"description": "Total quantity available"
|
|
736
|
+
},
|
|
737
|
+
"default_price_per_day": {
|
|
738
|
+
"type": "number",
|
|
739
|
+
"description": "Default daily rental price"
|
|
740
|
+
},
|
|
741
|
+
"default_price_per_hour": {
|
|
742
|
+
"type": "number",
|
|
743
|
+
"description": "Default hourly rental price"
|
|
744
|
+
},
|
|
745
|
+
"deposit_amount": {
|
|
746
|
+
"type": "number",
|
|
747
|
+
"description": "Security deposit amount"
|
|
748
|
+
},
|
|
749
|
+
"organization_id": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"description": "The organization ID this item belongs to"
|
|
752
|
+
},
|
|
753
|
+
"location_id": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"description": "The location ID where this item is stored"
|
|
756
|
+
},
|
|
757
|
+
"color": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"description": "Hex color code for visual representation of the item"
|
|
760
|
+
},
|
|
761
|
+
"is_public": {
|
|
762
|
+
"type": "boolean",
|
|
763
|
+
"description": "Whether this item is visible to the public"
|
|
764
|
+
},
|
|
765
|
+
"public_booking_enabled": {
|
|
766
|
+
"type": "boolean",
|
|
767
|
+
"description": "Whether this item can be booked by the public"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"required": [
|
|
771
|
+
"id"
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"name": "rent2b_items_delete",
|
|
777
|
+
"description": "Delete a rental item.",
|
|
778
|
+
"method": "DELETE",
|
|
779
|
+
"path": "/items/{id}",
|
|
780
|
+
"inputSchema": {
|
|
781
|
+
"type": "object",
|
|
782
|
+
"properties": {
|
|
783
|
+
"id": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"description": "id parameter"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"required": [
|
|
789
|
+
"id"
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "rent2b_items_quantity_update",
|
|
795
|
+
"description": "Update available quantity of an item",
|
|
796
|
+
"method": "PATCH",
|
|
797
|
+
"path": "/items/{id}/quantity",
|
|
798
|
+
"inputSchema": {
|
|
799
|
+
"type": "object",
|
|
800
|
+
"properties": {
|
|
801
|
+
"id": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"description": "id parameter"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"required": [
|
|
807
|
+
"id"
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "rent2b_items_images_create",
|
|
813
|
+
"description": "Upload images for an item",
|
|
814
|
+
"method": "POST",
|
|
815
|
+
"path": "/items/{id}/images",
|
|
816
|
+
"inputSchema": {
|
|
817
|
+
"type": "object",
|
|
818
|
+
"properties": {
|
|
819
|
+
"id": {
|
|
820
|
+
"type": "string",
|
|
821
|
+
"description": "id parameter"
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"required": [
|
|
825
|
+
"id"
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"name": "rent2b_items_images_list",
|
|
831
|
+
"description": "Get all images for an item",
|
|
832
|
+
"method": "GET",
|
|
833
|
+
"path": "/items/{id}/images",
|
|
834
|
+
"inputSchema": {
|
|
835
|
+
"type": "object",
|
|
836
|
+
"properties": {
|
|
837
|
+
"id": {
|
|
838
|
+
"type": "string",
|
|
839
|
+
"description": "id parameter"
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"required": [
|
|
843
|
+
"id"
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "rent2b_items_debug_images_list",
|
|
849
|
+
"description": "Debug endpoint for testing image fetching",
|
|
850
|
+
"method": "GET",
|
|
851
|
+
"path": "/items/{id}/debug-images",
|
|
852
|
+
"inputSchema": {
|
|
853
|
+
"type": "object",
|
|
854
|
+
"properties": {
|
|
855
|
+
"id": {
|
|
856
|
+
"type": "string",
|
|
857
|
+
"description": "id parameter"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"required": [
|
|
861
|
+
"id"
|
|
862
|
+
]
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "rent2b_items_images_delete",
|
|
867
|
+
"description": "Delete an item image",
|
|
868
|
+
"method": "DELETE",
|
|
869
|
+
"path": "/items/{id}/images/{imageId}",
|
|
870
|
+
"inputSchema": {
|
|
871
|
+
"type": "object",
|
|
872
|
+
"properties": {
|
|
873
|
+
"id": {
|
|
874
|
+
"type": "string",
|
|
875
|
+
"description": "id parameter"
|
|
876
|
+
},
|
|
877
|
+
"imageId": {
|
|
878
|
+
"type": "string",
|
|
879
|
+
"description": "imageId parameter"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
"required": [
|
|
883
|
+
"id",
|
|
884
|
+
"imageId"
|
|
885
|
+
]
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "rent2b_items_images_primary_update",
|
|
890
|
+
"description": "Set an image as primary for an item",
|
|
891
|
+
"method": "PATCH",
|
|
892
|
+
"path": "/items/{id}/images/primary",
|
|
893
|
+
"inputSchema": {
|
|
894
|
+
"type": "object",
|
|
895
|
+
"properties": {
|
|
896
|
+
"id": {
|
|
897
|
+
"type": "string",
|
|
898
|
+
"description": "id parameter"
|
|
899
|
+
},
|
|
900
|
+
"imageId": {
|
|
901
|
+
"type": "string",
|
|
902
|
+
"description": "ID of the image to set as primary"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"required": [
|
|
906
|
+
"id",
|
|
907
|
+
"imageId"
|
|
908
|
+
]
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "rent2b_items_buffer_times_list",
|
|
913
|
+
"description": "Retrieve buffer time configuration (preparation/cleanup time before and after bookings)",
|
|
914
|
+
"method": "GET",
|
|
915
|
+
"path": "/items/{id}/buffer-times",
|
|
916
|
+
"inputSchema": {
|
|
917
|
+
"type": "object",
|
|
918
|
+
"properties": {
|
|
919
|
+
"id": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"description": "id parameter"
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"required": [
|
|
925
|
+
"id"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "rent2b_items_buffer_times_update",
|
|
931
|
+
"description": "Configure buffer time before and after bookings for preparation, cleaning, or turnover. Buffer times prevent back-to-back bookings.",
|
|
932
|
+
"method": "PATCH",
|
|
933
|
+
"path": "/items/{id}/buffer-times",
|
|
934
|
+
"inputSchema": {
|
|
935
|
+
"type": "object",
|
|
936
|
+
"properties": {
|
|
937
|
+
"id": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"description": "id parameter"
|
|
940
|
+
},
|
|
941
|
+
"buffer_before_days": {
|
|
942
|
+
"type": "number",
|
|
943
|
+
"description": "Buffer time in days required before a booking starts (e.g., shipping time to customer)"
|
|
944
|
+
},
|
|
945
|
+
"buffer_after_days": {
|
|
946
|
+
"type": "number",
|
|
947
|
+
"description": "Buffer time in days required after a booking ends (e.g., return shipping time)"
|
|
948
|
+
},
|
|
949
|
+
"allow_buffer_override": {
|
|
950
|
+
"type": "boolean",
|
|
951
|
+
"description": "Whether buffer times can be overridden for back-to-back bookings"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"required": [
|
|
955
|
+
"id"
|
|
956
|
+
]
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "rent2b_locations_items_availability_list",
|
|
961
|
+
"description": "Get item availability calendar",
|
|
962
|
+
"method": "GET",
|
|
963
|
+
"path": "/organizations/{organizationId}/locations/{locationId}/items/{itemId}/availability",
|
|
964
|
+
"inputSchema": {
|
|
965
|
+
"type": "object",
|
|
966
|
+
"properties": {
|
|
967
|
+
"itemId": {
|
|
968
|
+
"type": "string",
|
|
969
|
+
"description": "itemId parameter"
|
|
970
|
+
},
|
|
971
|
+
"start_date": {
|
|
972
|
+
"type": "string",
|
|
973
|
+
"description": "Start date in ISO 8601 format (YYYY-MM-DD)"
|
|
974
|
+
},
|
|
975
|
+
"end_date": {
|
|
976
|
+
"type": "string",
|
|
977
|
+
"description": "End date in ISO 8601 format (YYYY-MM-DD)"
|
|
978
|
+
},
|
|
979
|
+
"locationId": {
|
|
980
|
+
"type": "string",
|
|
981
|
+
"description": "locationId parameter"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"required": [
|
|
985
|
+
"itemId",
|
|
986
|
+
"start_date",
|
|
987
|
+
"end_date",
|
|
988
|
+
"locationId"
|
|
989
|
+
]
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "rent2b_locations_items_availability_generate_create",
|
|
994
|
+
"description": "Generate availability for date range",
|
|
995
|
+
"method": "POST",
|
|
996
|
+
"path": "/organizations/{organizationId}/locations/{locationId}/items/{itemId}/availability/generate",
|
|
997
|
+
"inputSchema": {
|
|
998
|
+
"type": "object",
|
|
999
|
+
"properties": {
|
|
1000
|
+
"itemId": {
|
|
1001
|
+
"type": "string",
|
|
1002
|
+
"description": "itemId parameter"
|
|
1003
|
+
},
|
|
1004
|
+
"locationId": {
|
|
1005
|
+
"type": "string",
|
|
1006
|
+
"description": "locationId parameter"
|
|
1007
|
+
},
|
|
1008
|
+
"start_date": {
|
|
1009
|
+
"type": "string",
|
|
1010
|
+
"description": "start_date"
|
|
1011
|
+
},
|
|
1012
|
+
"end_date": {
|
|
1013
|
+
"type": "string",
|
|
1014
|
+
"description": "end_date"
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"required": [
|
|
1018
|
+
"itemId",
|
|
1019
|
+
"locationId",
|
|
1020
|
+
"start_date",
|
|
1021
|
+
"end_date"
|
|
1022
|
+
]
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "rent2b_locations_items_availability_pricing_update",
|
|
1027
|
+
"description": "Update pricing for date range",
|
|
1028
|
+
"method": "PATCH",
|
|
1029
|
+
"path": "/organizations/{organizationId}/locations/{locationId}/items/{itemId}/availability/pricing",
|
|
1030
|
+
"inputSchema": {
|
|
1031
|
+
"type": "object",
|
|
1032
|
+
"properties": {
|
|
1033
|
+
"itemId": {
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"description": "itemId parameter"
|
|
1036
|
+
},
|
|
1037
|
+
"locationId": {
|
|
1038
|
+
"type": "string",
|
|
1039
|
+
"description": "locationId parameter"
|
|
1040
|
+
},
|
|
1041
|
+
"start_date": {
|
|
1042
|
+
"type": "string",
|
|
1043
|
+
"description": "start_date"
|
|
1044
|
+
},
|
|
1045
|
+
"end_date": {
|
|
1046
|
+
"type": "string",
|
|
1047
|
+
"description": "end_date"
|
|
1048
|
+
},
|
|
1049
|
+
"price_per_day": {
|
|
1050
|
+
"type": "number",
|
|
1051
|
+
"description": "price_per_day"
|
|
1052
|
+
},
|
|
1053
|
+
"price_per_hour": {
|
|
1054
|
+
"type": "number",
|
|
1055
|
+
"description": "price_per_hour"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"required": [
|
|
1059
|
+
"itemId",
|
|
1060
|
+
"locationId",
|
|
1061
|
+
"start_date",
|
|
1062
|
+
"end_date"
|
|
1063
|
+
]
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "rent2b_locations_items_availability_block_create",
|
|
1068
|
+
"description": "Block specific dates",
|
|
1069
|
+
"method": "POST",
|
|
1070
|
+
"path": "/organizations/{organizationId}/locations/{locationId}/items/{itemId}/availability/block",
|
|
1071
|
+
"inputSchema": {
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"properties": {
|
|
1074
|
+
"itemId": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"description": "itemId parameter"
|
|
1077
|
+
},
|
|
1078
|
+
"locationId": {
|
|
1079
|
+
"type": "string",
|
|
1080
|
+
"description": "locationId parameter"
|
|
1081
|
+
},
|
|
1082
|
+
"dates": {
|
|
1083
|
+
"type": "array",
|
|
1084
|
+
"description": "Array of dates in ISO 8601 format (YYYY-MM-DD)"
|
|
1085
|
+
},
|
|
1086
|
+
"reason": {
|
|
1087
|
+
"type": "string",
|
|
1088
|
+
"description": "reason"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"required": [
|
|
1092
|
+
"itemId",
|
|
1093
|
+
"locationId",
|
|
1094
|
+
"dates"
|
|
1095
|
+
]
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "rent2b_locations_items_availability_unblock_create",
|
|
1100
|
+
"description": "Unblock specific dates",
|
|
1101
|
+
"method": "POST",
|
|
1102
|
+
"path": "/organizations/{organizationId}/locations/{locationId}/items/{itemId}/availability/unblock",
|
|
1103
|
+
"inputSchema": {
|
|
1104
|
+
"type": "object",
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"itemId": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"description": "itemId parameter"
|
|
1109
|
+
},
|
|
1110
|
+
"locationId": {
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"description": "locationId parameter"
|
|
1113
|
+
},
|
|
1114
|
+
"dates": {
|
|
1115
|
+
"type": "array",
|
|
1116
|
+
"description": "Array of dates in ISO 8601 format (YYYY-MM-DD)"
|
|
1117
|
+
},
|
|
1118
|
+
"reason": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"description": "reason"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"required": [
|
|
1124
|
+
"itemId",
|
|
1125
|
+
"locationId",
|
|
1126
|
+
"dates"
|
|
1127
|
+
]
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "rent2b_bookings_create",
|
|
1132
|
+
"description": "Create a new booking for an item or room.",
|
|
1133
|
+
"method": "POST",
|
|
1134
|
+
"path": "/bookings",
|
|
1135
|
+
"inputSchema": {
|
|
1136
|
+
"type": "object",
|
|
1137
|
+
"properties": {
|
|
1138
|
+
"room_ids": {
|
|
1139
|
+
"type": "array",
|
|
1140
|
+
"description": "Array of room IDs to book (required if rental_type is \"room\")"
|
|
1141
|
+
},
|
|
1142
|
+
"item_id": {
|
|
1143
|
+
"type": "string",
|
|
1144
|
+
"description": "The item ID to book (required if rental_type is \"item\"). DEPRECATED: Use booking_items instead"
|
|
1145
|
+
},
|
|
1146
|
+
"booking_items": {
|
|
1147
|
+
"type": "array",
|
|
1148
|
+
"description": "Array of items with quantities to book (for multi-item bookings)"
|
|
1149
|
+
},
|
|
1150
|
+
"rental_type": {
|
|
1151
|
+
"type": "string",
|
|
1152
|
+
"description": "Type of rental (room or item)",
|
|
1153
|
+
"enum": [
|
|
1154
|
+
"room",
|
|
1155
|
+
"item"
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1158
|
+
"start_time": {
|
|
1159
|
+
"type": "string",
|
|
1160
|
+
"description": "Start time of the booking in ISO format"
|
|
1161
|
+
},
|
|
1162
|
+
"end_time": {
|
|
1163
|
+
"type": "string",
|
|
1164
|
+
"description": "End time of the booking in ISO format"
|
|
1165
|
+
},
|
|
1166
|
+
"quantity": {
|
|
1167
|
+
"type": "number",
|
|
1168
|
+
"description": "Quantity of items to book (only for item rentals). DEPRECATED: Use booking_items instead"
|
|
1169
|
+
},
|
|
1170
|
+
"guest_id": {
|
|
1171
|
+
"type": "string",
|
|
1172
|
+
"description": "The guest ID for this booking"
|
|
1173
|
+
},
|
|
1174
|
+
"skip_buffer_check": {
|
|
1175
|
+
"type": "boolean",
|
|
1176
|
+
"description": "Skip buffer time checks for back-to-back bookings (only works if the room/item allows buffer override)"
|
|
1177
|
+
},
|
|
1178
|
+
"accepted_document_ids": {
|
|
1179
|
+
"type": "array",
|
|
1180
|
+
"description": "Array of document IDs that customer accepted before booking"
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"required": [
|
|
1184
|
+
"rental_type",
|
|
1185
|
+
"start_time",
|
|
1186
|
+
"end_time"
|
|
1187
|
+
]
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "rent2b_bookings_my_list",
|
|
1192
|
+
"description": "List bookings where the authenticated user is the renter.",
|
|
1193
|
+
"method": "GET",
|
|
1194
|
+
"path": "/bookings",
|
|
1195
|
+
"inputSchema": {
|
|
1196
|
+
"type": "object",
|
|
1197
|
+
"properties": {
|
|
1198
|
+
"booking_id": {
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
"description": "Filter by booking ID"
|
|
1201
|
+
},
|
|
1202
|
+
"start_time": {
|
|
1203
|
+
"type": "string",
|
|
1204
|
+
"description": "Filter bookings starting from this date/time (ISO format)"
|
|
1205
|
+
},
|
|
1206
|
+
"end_time": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"description": "Filter bookings ending before this date/time (ISO format)"
|
|
1209
|
+
},
|
|
1210
|
+
"room_id": {
|
|
1211
|
+
"type": "string",
|
|
1212
|
+
"description": "Filter bookings by room ID"
|
|
1213
|
+
},
|
|
1214
|
+
"item_id": {
|
|
1215
|
+
"type": "string",
|
|
1216
|
+
"description": "Filter bookings by item ID"
|
|
1217
|
+
},
|
|
1218
|
+
"location_id": {
|
|
1219
|
+
"type": "string",
|
|
1220
|
+
"description": "Filter bookings by location ID"
|
|
1221
|
+
},
|
|
1222
|
+
"status": {
|
|
1223
|
+
"type": "string",
|
|
1224
|
+
"description": "Filter bookings by status"
|
|
1225
|
+
},
|
|
1226
|
+
"sortBy": {
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"description": "Field to sort by"
|
|
1229
|
+
},
|
|
1230
|
+
"sortOrder": {
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"description": "Sort order"
|
|
1233
|
+
},
|
|
1234
|
+
"page": {
|
|
1235
|
+
"type": "number",
|
|
1236
|
+
"description": "Page number (1-based)"
|
|
1237
|
+
},
|
|
1238
|
+
"limit": {
|
|
1239
|
+
"type": "number",
|
|
1240
|
+
"description": "Number of items per page (max 1000)"
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"required": []
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "rent2b_bookings_list",
|
|
1248
|
+
"description": "List all bookings for the organization (where user is lessor).",
|
|
1249
|
+
"method": "GET",
|
|
1250
|
+
"path": "/bookings/organization",
|
|
1251
|
+
"inputSchema": {
|
|
1252
|
+
"type": "object",
|
|
1253
|
+
"properties": {
|
|
1254
|
+
"booking_id": {
|
|
1255
|
+
"type": "string",
|
|
1256
|
+
"description": "Filter by booking ID"
|
|
1257
|
+
},
|
|
1258
|
+
"start_time": {
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"description": "Filter bookings starting from this date/time (ISO format)"
|
|
1261
|
+
},
|
|
1262
|
+
"end_time": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"description": "Filter bookings ending before this date/time (ISO format)"
|
|
1265
|
+
},
|
|
1266
|
+
"room_id": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"description": "Filter bookings by room ID"
|
|
1269
|
+
},
|
|
1270
|
+
"item_id": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "Filter bookings by item ID"
|
|
1273
|
+
},
|
|
1274
|
+
"location_id": {
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"description": "Filter bookings by location ID"
|
|
1277
|
+
},
|
|
1278
|
+
"status": {
|
|
1279
|
+
"type": "string",
|
|
1280
|
+
"description": "Filter bookings by status"
|
|
1281
|
+
},
|
|
1282
|
+
"sortBy": {
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"description": "Field to sort by"
|
|
1285
|
+
},
|
|
1286
|
+
"sortOrder": {
|
|
1287
|
+
"type": "string",
|
|
1288
|
+
"description": "Sort order"
|
|
1289
|
+
},
|
|
1290
|
+
"page": {
|
|
1291
|
+
"type": "number",
|
|
1292
|
+
"description": "Page number (1-based)"
|
|
1293
|
+
},
|
|
1294
|
+
"limit": {
|
|
1295
|
+
"type": "number",
|
|
1296
|
+
"description": "Number of items per page (max 1000)"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"required": []
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "rent2b_rooms_availability",
|
|
1304
|
+
"description": "Get availability calendar for a specific room.",
|
|
1305
|
+
"method": "GET",
|
|
1306
|
+
"path": "/bookings/rooms/{roomId}/availability",
|
|
1307
|
+
"inputSchema": {
|
|
1308
|
+
"type": "object",
|
|
1309
|
+
"properties": {
|
|
1310
|
+
"roomId": {
|
|
1311
|
+
"type": "string",
|
|
1312
|
+
"description": "roomId parameter"
|
|
1313
|
+
},
|
|
1314
|
+
"date": {
|
|
1315
|
+
"type": "string",
|
|
1316
|
+
"description": "Single date in YYYY-MM-DD format (for backward compatibility)"
|
|
1317
|
+
},
|
|
1318
|
+
"start_date": {
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"description": "Start date for date range in YYYY-MM-DD format"
|
|
1321
|
+
},
|
|
1322
|
+
"end_date": {
|
|
1323
|
+
"type": "string",
|
|
1324
|
+
"description": "End date for date range in YYYY-MM-DD format"
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
"required": [
|
|
1328
|
+
"roomId"
|
|
1329
|
+
]
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "rent2b_bookings_rooms_availability_bulk_create",
|
|
1334
|
+
"description": "Get availability for multiple rooms at once",
|
|
1335
|
+
"method": "POST",
|
|
1336
|
+
"path": "/bookings/rooms/availability/bulk",
|
|
1337
|
+
"inputSchema": {
|
|
1338
|
+
"type": "object",
|
|
1339
|
+
"properties": {
|
|
1340
|
+
"room_ids": {
|
|
1341
|
+
"type": "array",
|
|
1342
|
+
"description": "Array of room IDs to check availability for"
|
|
1343
|
+
},
|
|
1344
|
+
"date": {
|
|
1345
|
+
"type": "string",
|
|
1346
|
+
"description": "Single date in YYYY-MM-DD format (for backward compatibility)"
|
|
1347
|
+
},
|
|
1348
|
+
"start_date": {
|
|
1349
|
+
"type": "string",
|
|
1350
|
+
"description": "Start date for date range in YYYY-MM-DD format"
|
|
1351
|
+
},
|
|
1352
|
+
"end_date": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"description": "End date for date range in YYYY-MM-DD format"
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
"required": [
|
|
1358
|
+
"room_ids"
|
|
1359
|
+
]
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "rent2b_bookings_items_availability_bulk_create",
|
|
1364
|
+
"description": "Returns per-day availability breakdown for each item in the requested date range.",
|
|
1365
|
+
"method": "POST",
|
|
1366
|
+
"path": "/bookings/items/availability/bulk",
|
|
1367
|
+
"inputSchema": {
|
|
1368
|
+
"type": "object",
|
|
1369
|
+
"properties": {
|
|
1370
|
+
"item_ids": {
|
|
1371
|
+
"type": "array",
|
|
1372
|
+
"description": "Array of item IDs to check availability for"
|
|
1373
|
+
},
|
|
1374
|
+
"date": {
|
|
1375
|
+
"type": "string",
|
|
1376
|
+
"description": "Single date in YYYY-MM-DD format (for backward compatibility)"
|
|
1377
|
+
},
|
|
1378
|
+
"start_date": {
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"description": "Start date for date range in YYYY-MM-DD format"
|
|
1381
|
+
},
|
|
1382
|
+
"end_date": {
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"description": "End date for date range in YYYY-MM-DD format"
|
|
1385
|
+
}
|
|
1386
|
+
},
|
|
1387
|
+
"required": [
|
|
1388
|
+
"item_ids"
|
|
1389
|
+
]
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"name": "rent2b_items_availability",
|
|
1394
|
+
"description": "Get availability calendar for a specific item.",
|
|
1395
|
+
"method": "GET",
|
|
1396
|
+
"path": "/bookings/items/{itemId}/availability",
|
|
1397
|
+
"inputSchema": {
|
|
1398
|
+
"type": "object",
|
|
1399
|
+
"properties": {
|
|
1400
|
+
"itemId": {
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"description": "itemId parameter"
|
|
1403
|
+
},
|
|
1404
|
+
"start_date": {
|
|
1405
|
+
"type": "string",
|
|
1406
|
+
"description": "Start date in YYYY-MM-DD format"
|
|
1407
|
+
},
|
|
1408
|
+
"end_date": {
|
|
1409
|
+
"type": "string",
|
|
1410
|
+
"description": "End date in YYYY-MM-DD format"
|
|
1411
|
+
},
|
|
1412
|
+
"quantity": {
|
|
1413
|
+
"type": "number",
|
|
1414
|
+
"description": "Quantity needed"
|
|
1415
|
+
}
|
|
1416
|
+
},
|
|
1417
|
+
"required": [
|
|
1418
|
+
"itemId",
|
|
1419
|
+
"start_date",
|
|
1420
|
+
"end_date"
|
|
1421
|
+
]
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "rent2b_availability_check",
|
|
1426
|
+
"description": "Check availability and pricing for an item or room for a specific date range.",
|
|
1427
|
+
"method": "POST",
|
|
1428
|
+
"path": "/bookings/check-availability",
|
|
1429
|
+
"inputSchema": {
|
|
1430
|
+
"type": "object",
|
|
1431
|
+
"properties": {
|
|
1432
|
+
"room_ids": {
|
|
1433
|
+
"type": "array",
|
|
1434
|
+
"description": "Array of room IDs to book (required if rental_type is \"room\")"
|
|
1435
|
+
},
|
|
1436
|
+
"item_id": {
|
|
1437
|
+
"type": "string",
|
|
1438
|
+
"description": "The item ID to book (required if rental_type is \"item\"). DEPRECATED: Use booking_items instead"
|
|
1439
|
+
},
|
|
1440
|
+
"booking_items": {
|
|
1441
|
+
"type": "array",
|
|
1442
|
+
"description": "Array of items with quantities to book (for multi-item bookings)"
|
|
1443
|
+
},
|
|
1444
|
+
"rental_type": {
|
|
1445
|
+
"type": "string",
|
|
1446
|
+
"description": "Type of rental (room or item)",
|
|
1447
|
+
"enum": [
|
|
1448
|
+
"room",
|
|
1449
|
+
"item"
|
|
1450
|
+
]
|
|
1451
|
+
},
|
|
1452
|
+
"start_time": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"description": "Start time of the booking in ISO format"
|
|
1455
|
+
},
|
|
1456
|
+
"end_time": {
|
|
1457
|
+
"type": "string",
|
|
1458
|
+
"description": "End time of the booking in ISO format"
|
|
1459
|
+
},
|
|
1460
|
+
"quantity": {
|
|
1461
|
+
"type": "number",
|
|
1462
|
+
"description": "Quantity of items to book (only for item rentals). DEPRECATED: Use booking_items instead"
|
|
1463
|
+
},
|
|
1464
|
+
"guest_id": {
|
|
1465
|
+
"type": "string",
|
|
1466
|
+
"description": "The guest ID for this booking"
|
|
1467
|
+
},
|
|
1468
|
+
"skip_buffer_check": {
|
|
1469
|
+
"type": "boolean",
|
|
1470
|
+
"description": "Skip buffer time checks for back-to-back bookings (only works if the room/item allows buffer override)"
|
|
1471
|
+
},
|
|
1472
|
+
"accepted_document_ids": {
|
|
1473
|
+
"type": "array",
|
|
1474
|
+
"description": "Array of document IDs that customer accepted before booking"
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
"required": [
|
|
1478
|
+
"rental_type",
|
|
1479
|
+
"start_time",
|
|
1480
|
+
"end_time"
|
|
1481
|
+
]
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "rent2b_bookings_update",
|
|
1486
|
+
"description": "Update a booking.",
|
|
1487
|
+
"method": "PATCH",
|
|
1488
|
+
"path": "/bookings/{id}",
|
|
1489
|
+
"inputSchema": {
|
|
1490
|
+
"type": "object",
|
|
1491
|
+
"properties": {
|
|
1492
|
+
"id": {
|
|
1493
|
+
"type": "string",
|
|
1494
|
+
"description": "id parameter"
|
|
1495
|
+
},
|
|
1496
|
+
"room_ids": {
|
|
1497
|
+
"type": "array",
|
|
1498
|
+
"description": "Array of room IDs to book (required if rental_type is \"room\")"
|
|
1499
|
+
},
|
|
1500
|
+
"item_id": {
|
|
1501
|
+
"type": "string",
|
|
1502
|
+
"description": "The item ID to book (required if rental_type is \"item\"). DEPRECATED: Use booking_items instead"
|
|
1503
|
+
},
|
|
1504
|
+
"booking_items": {
|
|
1505
|
+
"type": "array",
|
|
1506
|
+
"description": "Array of items with quantities to book (for multi-item bookings)"
|
|
1507
|
+
},
|
|
1508
|
+
"rental_type": {
|
|
1509
|
+
"type": "string",
|
|
1510
|
+
"description": "Type of rental (room or item)",
|
|
1511
|
+
"enum": [
|
|
1512
|
+
"room",
|
|
1513
|
+
"item"
|
|
1514
|
+
]
|
|
1515
|
+
},
|
|
1516
|
+
"start_time": {
|
|
1517
|
+
"type": "string",
|
|
1518
|
+
"description": "Start time of the booking in ISO format"
|
|
1519
|
+
},
|
|
1520
|
+
"end_time": {
|
|
1521
|
+
"type": "string",
|
|
1522
|
+
"description": "End time of the booking in ISO format"
|
|
1523
|
+
},
|
|
1524
|
+
"quantity": {
|
|
1525
|
+
"type": "number",
|
|
1526
|
+
"description": "Quantity of items to book (only for item rentals). DEPRECATED: Use booking_items instead"
|
|
1527
|
+
},
|
|
1528
|
+
"guest_id": {
|
|
1529
|
+
"type": "string",
|
|
1530
|
+
"description": "The guest ID for this booking"
|
|
1531
|
+
},
|
|
1532
|
+
"skip_buffer_check": {
|
|
1533
|
+
"type": "boolean",
|
|
1534
|
+
"description": "Skip buffer time checks for back-to-back bookings (only works if the room/item allows buffer override)"
|
|
1535
|
+
},
|
|
1536
|
+
"accepted_document_ids": {
|
|
1537
|
+
"type": "array",
|
|
1538
|
+
"description": "Array of document IDs that customer accepted before booking"
|
|
1539
|
+
},
|
|
1540
|
+
"status": {
|
|
1541
|
+
"type": "string",
|
|
1542
|
+
"description": "Status of the booking",
|
|
1543
|
+
"enum": [
|
|
1544
|
+
"confirmed",
|
|
1545
|
+
"cancelled"
|
|
1546
|
+
]
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
"required": [
|
|
1550
|
+
"id"
|
|
1551
|
+
]
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "rent2b_bookings_cancel",
|
|
1556
|
+
"description": "Cancel a booking and process refund.",
|
|
1557
|
+
"method": "DELETE",
|
|
1558
|
+
"path": "/bookings/{id}",
|
|
1559
|
+
"inputSchema": {
|
|
1560
|
+
"type": "object",
|
|
1561
|
+
"properties": {
|
|
1562
|
+
"id": {
|
|
1563
|
+
"type": "string",
|
|
1564
|
+
"description": "id parameter"
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
"required": [
|
|
1568
|
+
"id"
|
|
1569
|
+
]
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"name": "rent2b_bookings_get",
|
|
1574
|
+
"description": "Get details of a specific booking.",
|
|
1575
|
+
"method": "GET",
|
|
1576
|
+
"path": "/bookings/{id}",
|
|
1577
|
+
"inputSchema": {
|
|
1578
|
+
"type": "object",
|
|
1579
|
+
"properties": {
|
|
1580
|
+
"id": {
|
|
1581
|
+
"type": "string",
|
|
1582
|
+
"description": "id parameter"
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
"required": [
|
|
1586
|
+
"id"
|
|
1587
|
+
]
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"name": "rent2b_bookings_confirm",
|
|
1592
|
+
"description": "Confirm a pending booking.",
|
|
1593
|
+
"method": "POST",
|
|
1594
|
+
"path": "/bookings/{id}/confirm",
|
|
1595
|
+
"inputSchema": {
|
|
1596
|
+
"type": "object",
|
|
1597
|
+
"properties": {
|
|
1598
|
+
"id": {
|
|
1599
|
+
"type": "string",
|
|
1600
|
+
"description": "id parameter"
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
"required": [
|
|
1604
|
+
"id"
|
|
1605
|
+
]
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "rent2b_bookings_reservations_pending_requests_list",
|
|
1610
|
+
"description": "Returns off-platform reservations with status pending/reserved that need admin approval. Used by the admin Requests section.",
|
|
1611
|
+
"method": "GET",
|
|
1612
|
+
"path": "/bookings/reservations/pending-requests",
|
|
1613
|
+
"inputSchema": {
|
|
1614
|
+
"type": "object",
|
|
1615
|
+
"properties": {},
|
|
1616
|
+
"required": []
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"name": "rent2b_bookings_reservations_reject_create",
|
|
1621
|
+
"description": "Cancels an off-platform reservation that has not yet been confirmed. Only the organization owner can reject.",
|
|
1622
|
+
"method": "POST",
|
|
1623
|
+
"path": "/bookings/reservations/{id}/reject",
|
|
1624
|
+
"inputSchema": {
|
|
1625
|
+
"type": "object",
|
|
1626
|
+
"properties": {
|
|
1627
|
+
"id": {
|
|
1628
|
+
"type": "string",
|
|
1629
|
+
"description": "id parameter"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"required": [
|
|
1633
|
+
"id"
|
|
1634
|
+
]
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
"name": "rent2b_bookings_reservations_pending_list",
|
|
1639
|
+
"description": "Returns pending and reserved booking reservations that have not yet expired. Used by the admin calendar to show reserved slots.",
|
|
1640
|
+
"method": "GET",
|
|
1641
|
+
"path": "/bookings/reservations/pending",
|
|
1642
|
+
"inputSchema": {
|
|
1643
|
+
"type": "object",
|
|
1644
|
+
"properties": {},
|
|
1645
|
+
"required": []
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "rent2b_bookings_reservations_confirm_create",
|
|
1650
|
+
"description": "Confirm an off-platform reservation (owner only)",
|
|
1651
|
+
"method": "POST",
|
|
1652
|
+
"path": "/bookings/reservations/{id}/confirm",
|
|
1653
|
+
"inputSchema": {
|
|
1654
|
+
"type": "object",
|
|
1655
|
+
"properties": {
|
|
1656
|
+
"id": {
|
|
1657
|
+
"type": "string",
|
|
1658
|
+
"description": "id parameter"
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
"required": [
|
|
1662
|
+
"id"
|
|
1663
|
+
]
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "rent2b_bookings_reject",
|
|
1668
|
+
"description": "Reject a pending booking.",
|
|
1669
|
+
"method": "POST",
|
|
1670
|
+
"path": "/bookings/{id}/reject",
|
|
1671
|
+
"inputSchema": {
|
|
1672
|
+
"type": "object",
|
|
1673
|
+
"properties": {
|
|
1674
|
+
"id": {
|
|
1675
|
+
"type": "string",
|
|
1676
|
+
"description": "id parameter"
|
|
1677
|
+
},
|
|
1678
|
+
"reason": {
|
|
1679
|
+
"type": "string",
|
|
1680
|
+
"description": "Optional reason for rejecting the booking"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
"required": [
|
|
1684
|
+
"id"
|
|
1685
|
+
]
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"name": "rent2b_available_resources",
|
|
1690
|
+
"description": "Get all available rooms and items for the organization.",
|
|
1691
|
+
"method": "GET",
|
|
1692
|
+
"path": "/bookings/available",
|
|
1693
|
+
"inputSchema": {
|
|
1694
|
+
"type": "object",
|
|
1695
|
+
"properties": {
|
|
1696
|
+
"start_date": {
|
|
1697
|
+
"type": "string",
|
|
1698
|
+
"description": "Start date in YYYY-MM-DD format"
|
|
1699
|
+
},
|
|
1700
|
+
"end_date": {
|
|
1701
|
+
"type": "string",
|
|
1702
|
+
"description": "End date in YYYY-MM-DD format"
|
|
1703
|
+
},
|
|
1704
|
+
"start_time": {
|
|
1705
|
+
"type": "string",
|
|
1706
|
+
"description": "Optional start time filter in HH:MM format"
|
|
1707
|
+
},
|
|
1708
|
+
"end_time": {
|
|
1709
|
+
"type": "string",
|
|
1710
|
+
"description": "Optional end time filter in HH:MM format"
|
|
1711
|
+
},
|
|
1712
|
+
"type": {
|
|
1713
|
+
"type": "string",
|
|
1714
|
+
"description": "Filter results to rooms only, items only, or both"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"required": [
|
|
1718
|
+
"start_date",
|
|
1719
|
+
"end_date"
|
|
1720
|
+
]
|
|
1721
|
+
}
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "rent2b_timeslots_create",
|
|
1725
|
+
"description": "Create a time slot for a location.",
|
|
1726
|
+
"method": "POST",
|
|
1727
|
+
"path": "/time-slots/{locationId}",
|
|
1728
|
+
"inputSchema": {
|
|
1729
|
+
"type": "object",
|
|
1730
|
+
"properties": {
|
|
1731
|
+
"locationId": {
|
|
1732
|
+
"type": "string",
|
|
1733
|
+
"description": "locationId parameter"
|
|
1734
|
+
},
|
|
1735
|
+
"day_of_week": {
|
|
1736
|
+
"type": "number",
|
|
1737
|
+
"description": "Day of week (1=Monday, 7=Sunday)"
|
|
1738
|
+
},
|
|
1739
|
+
"start_time": {
|
|
1740
|
+
"type": "string",
|
|
1741
|
+
"description": "Start time in HH:MM format"
|
|
1742
|
+
},
|
|
1743
|
+
"end_time": {
|
|
1744
|
+
"type": "string",
|
|
1745
|
+
"description": "End time in HH:MM format"
|
|
1746
|
+
},
|
|
1747
|
+
"price": {
|
|
1748
|
+
"type": "number",
|
|
1749
|
+
"description": "Price for this time slot"
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
"required": [
|
|
1753
|
+
"locationId",
|
|
1754
|
+
"day_of_week",
|
|
1755
|
+
"start_time",
|
|
1756
|
+
"end_time",
|
|
1757
|
+
"price"
|
|
1758
|
+
]
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "rent2b_timeslots_list",
|
|
1763
|
+
"description": "List time slots for a specific location.",
|
|
1764
|
+
"method": "GET",
|
|
1765
|
+
"path": "/time-slots/{locationId}",
|
|
1766
|
+
"inputSchema": {
|
|
1767
|
+
"type": "object",
|
|
1768
|
+
"properties": {
|
|
1769
|
+
"locationId": {
|
|
1770
|
+
"type": "string",
|
|
1771
|
+
"description": "locationId parameter"
|
|
1772
|
+
},
|
|
1773
|
+
"page": {
|
|
1774
|
+
"type": "number",
|
|
1775
|
+
"description": "Page number (1-based)"
|
|
1776
|
+
},
|
|
1777
|
+
"limit": {
|
|
1778
|
+
"type": "number",
|
|
1779
|
+
"description": "Number of items per page"
|
|
1780
|
+
},
|
|
1781
|
+
"search": {
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"description": "Search term for filtering results"
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"required": [
|
|
1787
|
+
"locationId"
|
|
1788
|
+
]
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"name": "rent2b_time_slots_day_list",
|
|
1793
|
+
"description": "Get all time slots for a specific day",
|
|
1794
|
+
"method": "GET",
|
|
1795
|
+
"path": "/time-slots/{locationId}/day/{dayOfWeek}",
|
|
1796
|
+
"inputSchema": {
|
|
1797
|
+
"type": "object",
|
|
1798
|
+
"properties": {
|
|
1799
|
+
"locationId": {
|
|
1800
|
+
"type": "string",
|
|
1801
|
+
"description": "locationId parameter"
|
|
1802
|
+
},
|
|
1803
|
+
"dayOfWeek": {
|
|
1804
|
+
"type": "string",
|
|
1805
|
+
"description": "dayOfWeek parameter"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"required": [
|
|
1809
|
+
"locationId",
|
|
1810
|
+
"dayOfWeek"
|
|
1811
|
+
]
|
|
1812
|
+
}
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"name": "rent2b_time_slots_list",
|
|
1816
|
+
"description": "Get a specific time slot",
|
|
1817
|
+
"method": "GET",
|
|
1818
|
+
"path": "/time-slots/{locationId}/{id}",
|
|
1819
|
+
"inputSchema": {
|
|
1820
|
+
"type": "object",
|
|
1821
|
+
"properties": {
|
|
1822
|
+
"locationId": {
|
|
1823
|
+
"type": "string",
|
|
1824
|
+
"description": "locationId parameter"
|
|
1825
|
+
},
|
|
1826
|
+
"id": {
|
|
1827
|
+
"type": "string",
|
|
1828
|
+
"description": "id parameter"
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1831
|
+
"required": [
|
|
1832
|
+
"locationId",
|
|
1833
|
+
"id"
|
|
1834
|
+
]
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"name": "rent2b_timeslots_update",
|
|
1839
|
+
"description": "Update a time slot.",
|
|
1840
|
+
"method": "PATCH",
|
|
1841
|
+
"path": "/time-slots/{locationId}/{id}",
|
|
1842
|
+
"inputSchema": {
|
|
1843
|
+
"type": "object",
|
|
1844
|
+
"properties": {
|
|
1845
|
+
"locationId": {
|
|
1846
|
+
"type": "string",
|
|
1847
|
+
"description": "locationId parameter"
|
|
1848
|
+
},
|
|
1849
|
+
"id": {
|
|
1850
|
+
"type": "string",
|
|
1851
|
+
"description": "id parameter"
|
|
1852
|
+
},
|
|
1853
|
+
"day_of_week": {
|
|
1854
|
+
"type": "number",
|
|
1855
|
+
"description": "Day of week (1=Monday, 7=Sunday)"
|
|
1856
|
+
},
|
|
1857
|
+
"start_time": {
|
|
1858
|
+
"type": "string",
|
|
1859
|
+
"description": "Start time in HH:MM format"
|
|
1860
|
+
},
|
|
1861
|
+
"end_time": {
|
|
1862
|
+
"type": "string",
|
|
1863
|
+
"description": "End time in HH:MM format"
|
|
1864
|
+
},
|
|
1865
|
+
"price": {
|
|
1866
|
+
"type": "number",
|
|
1867
|
+
"description": "Price for this time slot"
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
"required": [
|
|
1871
|
+
"locationId",
|
|
1872
|
+
"id"
|
|
1873
|
+
]
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"name": "rent2b_timeslots_delete",
|
|
1878
|
+
"description": "Delete a time slot.",
|
|
1879
|
+
"method": "DELETE",
|
|
1880
|
+
"path": "/time-slots/{locationId}/{id}",
|
|
1881
|
+
"inputSchema": {
|
|
1882
|
+
"type": "object",
|
|
1883
|
+
"properties": {
|
|
1884
|
+
"locationId": {
|
|
1885
|
+
"type": "string",
|
|
1886
|
+
"description": "locationId parameter"
|
|
1887
|
+
},
|
|
1888
|
+
"id": {
|
|
1889
|
+
"type": "string",
|
|
1890
|
+
"description": "id parameter"
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
"required": [
|
|
1894
|
+
"locationId",
|
|
1895
|
+
"id"
|
|
1896
|
+
]
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
"name": "rent2b_timeslots_create_weekly",
|
|
1901
|
+
"description": "Create a full weekly schedule of time slots for a location.",
|
|
1902
|
+
"method": "POST",
|
|
1903
|
+
"path": "/time-slots/{locationId}/weekly",
|
|
1904
|
+
"inputSchema": {
|
|
1905
|
+
"type": "object",
|
|
1906
|
+
"properties": {
|
|
1907
|
+
"locationId": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"description": "locationId parameter"
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
"required": [
|
|
1913
|
+
"locationId"
|
|
1914
|
+
]
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
"name": "rent2b_locations_address_search_create",
|
|
1919
|
+
"description": "Search for addresses using Google Places API",
|
|
1920
|
+
"method": "POST",
|
|
1921
|
+
"path": "/locations/address-search",
|
|
1922
|
+
"inputSchema": {
|
|
1923
|
+
"type": "object",
|
|
1924
|
+
"properties": {
|
|
1925
|
+
"query": {
|
|
1926
|
+
"type": "string",
|
|
1927
|
+
"description": "The search query for address autocomplete"
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"required": [
|
|
1931
|
+
"query"
|
|
1932
|
+
]
|
|
1933
|
+
}
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
"name": "rent2b_locations_place_details_create",
|
|
1937
|
+
"description": "Get detailed place information including coordinates",
|
|
1938
|
+
"method": "POST",
|
|
1939
|
+
"path": "/locations/place-details",
|
|
1940
|
+
"inputSchema": {
|
|
1941
|
+
"type": "object",
|
|
1942
|
+
"properties": {
|
|
1943
|
+
"placeId": {
|
|
1944
|
+
"type": "string",
|
|
1945
|
+
"description": "Google Place ID"
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
"required": [
|
|
1949
|
+
"placeId"
|
|
1950
|
+
]
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "rent2b_locations_create",
|
|
1955
|
+
"description": "Create a new location.",
|
|
1956
|
+
"method": "POST",
|
|
1957
|
+
"path": "/locations",
|
|
1958
|
+
"inputSchema": {
|
|
1959
|
+
"type": "object",
|
|
1960
|
+
"properties": {
|
|
1961
|
+
"name": {
|
|
1962
|
+
"type": "string",
|
|
1963
|
+
"description": "The name of the location"
|
|
1964
|
+
},
|
|
1965
|
+
"address": {
|
|
1966
|
+
"type": "string",
|
|
1967
|
+
"description": "Street address of the location (without house number)"
|
|
1968
|
+
},
|
|
1969
|
+
"street_number": {
|
|
1970
|
+
"type": "string",
|
|
1971
|
+
"description": "Street number/house number of the location"
|
|
1972
|
+
},
|
|
1973
|
+
"city": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"description": "City of the location"
|
|
1976
|
+
},
|
|
1977
|
+
"state": {
|
|
1978
|
+
"type": "string",
|
|
1979
|
+
"description": "State of the location"
|
|
1980
|
+
},
|
|
1981
|
+
"postal_code": {
|
|
1982
|
+
"type": "string",
|
|
1983
|
+
"description": "Postal code of the location"
|
|
1984
|
+
},
|
|
1985
|
+
"country": {
|
|
1986
|
+
"type": "string",
|
|
1987
|
+
"description": "Country of the location"
|
|
1988
|
+
},
|
|
1989
|
+
"phone": {
|
|
1990
|
+
"type": "string",
|
|
1991
|
+
"description": "Phone number of the location"
|
|
1992
|
+
},
|
|
1993
|
+
"email": {
|
|
1994
|
+
"type": "string",
|
|
1995
|
+
"description": "Email address of the location"
|
|
1996
|
+
},
|
|
1997
|
+
"organization_id": {
|
|
1998
|
+
"type": "string",
|
|
1999
|
+
"description": "The organization ID this location belongs to"
|
|
2000
|
+
},
|
|
2001
|
+
"profile_image_url": {
|
|
2002
|
+
"type": "string",
|
|
2003
|
+
"description": "URL to the location profile image"
|
|
2004
|
+
},
|
|
2005
|
+
"description": {
|
|
2006
|
+
"type": "string",
|
|
2007
|
+
"description": "Description of the location"
|
|
2008
|
+
},
|
|
2009
|
+
"latitude": {
|
|
2010
|
+
"type": "number",
|
|
2011
|
+
"description": "Latitude coordinate of the location (required for location-based search)"
|
|
2012
|
+
},
|
|
2013
|
+
"longitude": {
|
|
2014
|
+
"type": "number",
|
|
2015
|
+
"description": "Longitude coordinate of the location (required for location-based search)"
|
|
2016
|
+
},
|
|
2017
|
+
"check_in_time": {
|
|
2018
|
+
"type": "string",
|
|
2019
|
+
"description": "Default check-in time for bookings at this location (HH:MM:SS format)"
|
|
2020
|
+
},
|
|
2021
|
+
"check_out_time": {
|
|
2022
|
+
"type": "string",
|
|
2023
|
+
"description": "Default check-out time for bookings at this location (HH:MM:SS format)"
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2026
|
+
"required": [
|
|
2027
|
+
"name",
|
|
2028
|
+
"organization_id",
|
|
2029
|
+
"latitude",
|
|
2030
|
+
"longitude"
|
|
2031
|
+
]
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"name": "rent2b_locations_list",
|
|
2036
|
+
"description": "List all locations for the organization.",
|
|
2037
|
+
"method": "GET",
|
|
2038
|
+
"path": "/locations",
|
|
2039
|
+
"inputSchema": {
|
|
2040
|
+
"type": "object",
|
|
2041
|
+
"properties": {
|
|
2042
|
+
"page": {
|
|
2043
|
+
"type": "number",
|
|
2044
|
+
"description": "Page number (1-based)"
|
|
2045
|
+
},
|
|
2046
|
+
"limit": {
|
|
2047
|
+
"type": "number",
|
|
2048
|
+
"description": "Number of items per page"
|
|
2049
|
+
},
|
|
2050
|
+
"search": {
|
|
2051
|
+
"type": "string",
|
|
2052
|
+
"description": "Search term for filtering results"
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
"required": []
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"name": "rent2b_locations_organization_list",
|
|
2060
|
+
"description": "Get all locations for an organization",
|
|
2061
|
+
"method": "GET",
|
|
2062
|
+
"path": "/locations/organization/{organizationId}",
|
|
2063
|
+
"inputSchema": {
|
|
2064
|
+
"type": "object",
|
|
2065
|
+
"properties": {
|
|
2066
|
+
"page": {
|
|
2067
|
+
"type": "number",
|
|
2068
|
+
"description": "Page number (1-based)"
|
|
2069
|
+
},
|
|
2070
|
+
"limit": {
|
|
2071
|
+
"type": "number",
|
|
2072
|
+
"description": "Number of items per page"
|
|
2073
|
+
},
|
|
2074
|
+
"search": {
|
|
2075
|
+
"type": "string",
|
|
2076
|
+
"description": "Search term for filtering results"
|
|
2077
|
+
}
|
|
2078
|
+
},
|
|
2079
|
+
"required": []
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"name": "rent2b_locations_get",
|
|
2084
|
+
"description": "Get details of a specific location.",
|
|
2085
|
+
"method": "GET",
|
|
2086
|
+
"path": "/locations/{id}",
|
|
2087
|
+
"inputSchema": {
|
|
2088
|
+
"type": "object",
|
|
2089
|
+
"properties": {
|
|
2090
|
+
"id": {
|
|
2091
|
+
"type": "string",
|
|
2092
|
+
"description": "id parameter"
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
"required": [
|
|
2096
|
+
"id"
|
|
2097
|
+
]
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"name": "rent2b_locations_update",
|
|
2102
|
+
"description": "Update a location.",
|
|
2103
|
+
"method": "PATCH",
|
|
2104
|
+
"path": "/locations/{id}",
|
|
2105
|
+
"inputSchema": {
|
|
2106
|
+
"type": "object",
|
|
2107
|
+
"properties": {
|
|
2108
|
+
"id": {
|
|
2109
|
+
"type": "string",
|
|
2110
|
+
"description": "id parameter"
|
|
2111
|
+
},
|
|
2112
|
+
"name": {
|
|
2113
|
+
"type": "string",
|
|
2114
|
+
"description": "The name of the location"
|
|
2115
|
+
},
|
|
2116
|
+
"address": {
|
|
2117
|
+
"type": "string",
|
|
2118
|
+
"description": "Street address of the location (without house number)"
|
|
2119
|
+
},
|
|
2120
|
+
"street_number": {
|
|
2121
|
+
"type": "string",
|
|
2122
|
+
"description": "Street number/house number of the location"
|
|
2123
|
+
},
|
|
2124
|
+
"city": {
|
|
2125
|
+
"type": "string",
|
|
2126
|
+
"description": "City of the location"
|
|
2127
|
+
},
|
|
2128
|
+
"state": {
|
|
2129
|
+
"type": "string",
|
|
2130
|
+
"description": "State of the location"
|
|
2131
|
+
},
|
|
2132
|
+
"postal_code": {
|
|
2133
|
+
"type": "string",
|
|
2134
|
+
"description": "Postal code of the location"
|
|
2135
|
+
},
|
|
2136
|
+
"country": {
|
|
2137
|
+
"type": "string",
|
|
2138
|
+
"description": "Country of the location"
|
|
2139
|
+
},
|
|
2140
|
+
"phone": {
|
|
2141
|
+
"type": "string",
|
|
2142
|
+
"description": "Phone number of the location"
|
|
2143
|
+
},
|
|
2144
|
+
"email": {
|
|
2145
|
+
"type": "string",
|
|
2146
|
+
"description": "Email address of the location"
|
|
2147
|
+
},
|
|
2148
|
+
"organization_id": {
|
|
2149
|
+
"type": "string",
|
|
2150
|
+
"description": "The organization ID this location belongs to"
|
|
2151
|
+
},
|
|
2152
|
+
"profile_image_url": {
|
|
2153
|
+
"type": "string",
|
|
2154
|
+
"description": "URL to the location profile image"
|
|
2155
|
+
},
|
|
2156
|
+
"description": {
|
|
2157
|
+
"type": "string",
|
|
2158
|
+
"description": "Description of the location"
|
|
2159
|
+
},
|
|
2160
|
+
"latitude": {
|
|
2161
|
+
"type": "number",
|
|
2162
|
+
"description": "Latitude coordinate of the location (required for location-based search)"
|
|
2163
|
+
},
|
|
2164
|
+
"longitude": {
|
|
2165
|
+
"type": "number",
|
|
2166
|
+
"description": "Longitude coordinate of the location (required for location-based search)"
|
|
2167
|
+
},
|
|
2168
|
+
"check_in_time": {
|
|
2169
|
+
"type": "string",
|
|
2170
|
+
"description": "Default check-in time for bookings at this location (HH:MM:SS format)"
|
|
2171
|
+
},
|
|
2172
|
+
"check_out_time": {
|
|
2173
|
+
"type": "string",
|
|
2174
|
+
"description": "Default check-out time for bookings at this location (HH:MM:SS format)"
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
"required": [
|
|
2178
|
+
"id"
|
|
2179
|
+
]
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"name": "rent2b_locations_delete",
|
|
2184
|
+
"description": "Delete a location.",
|
|
2185
|
+
"method": "DELETE",
|
|
2186
|
+
"path": "/locations/{id}",
|
|
2187
|
+
"inputSchema": {
|
|
2188
|
+
"type": "object",
|
|
2189
|
+
"properties": {
|
|
2190
|
+
"id": {
|
|
2191
|
+
"type": "string",
|
|
2192
|
+
"description": "id parameter"
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
"required": [
|
|
2196
|
+
"id"
|
|
2197
|
+
]
|
|
2198
|
+
}
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
"name": "rent2b_guests_create",
|
|
2202
|
+
"description": "Create a new guest for the organization.",
|
|
2203
|
+
"method": "POST",
|
|
2204
|
+
"path": "/organizations/{organizationId}/guests",
|
|
2205
|
+
"inputSchema": {
|
|
2206
|
+
"type": "object",
|
|
2207
|
+
"properties": {
|
|
2208
|
+
"first_name": {
|
|
2209
|
+
"type": "string",
|
|
2210
|
+
"description": "First name of the guest"
|
|
2211
|
+
},
|
|
2212
|
+
"last_name": {
|
|
2213
|
+
"type": "string",
|
|
2214
|
+
"description": "Last name of the guest"
|
|
2215
|
+
},
|
|
2216
|
+
"email": {
|
|
2217
|
+
"type": "string",
|
|
2218
|
+
"description": "Email address of the guest"
|
|
2219
|
+
},
|
|
2220
|
+
"phone": {
|
|
2221
|
+
"type": "string",
|
|
2222
|
+
"description": "Phone number of the guest"
|
|
2223
|
+
},
|
|
2224
|
+
"address": {
|
|
2225
|
+
"type": "string",
|
|
2226
|
+
"description": "Address of the guest"
|
|
2227
|
+
},
|
|
2228
|
+
"city": {
|
|
2229
|
+
"type": "string",
|
|
2230
|
+
"description": "City of the guest"
|
|
2231
|
+
},
|
|
2232
|
+
"postal_code": {
|
|
2233
|
+
"type": "string",
|
|
2234
|
+
"description": "Postal code of the guest"
|
|
2235
|
+
},
|
|
2236
|
+
"country": {
|
|
2237
|
+
"type": "string",
|
|
2238
|
+
"description": "Country of the guest"
|
|
2239
|
+
},
|
|
2240
|
+
"notes": {
|
|
2241
|
+
"type": "string",
|
|
2242
|
+
"description": "Additional notes about the guest"
|
|
2243
|
+
}
|
|
2244
|
+
},
|
|
2245
|
+
"required": [
|
|
2246
|
+
"first_name",
|
|
2247
|
+
"last_name"
|
|
2248
|
+
]
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"name": "rent2b_guests_list",
|
|
2253
|
+
"description": "List guests for the organization. Supports search and pagination.",
|
|
2254
|
+
"method": "GET",
|
|
2255
|
+
"path": "/organizations/{organizationId}/guests",
|
|
2256
|
+
"inputSchema": {
|
|
2257
|
+
"type": "object",
|
|
2258
|
+
"properties": {
|
|
2259
|
+
"search": {
|
|
2260
|
+
"type": "string",
|
|
2261
|
+
"description": "Search term to filter by name, email or phone"
|
|
2262
|
+
},
|
|
2263
|
+
"page": {
|
|
2264
|
+
"type": "number",
|
|
2265
|
+
"description": "Page number (starts from 1)"
|
|
2266
|
+
},
|
|
2267
|
+
"limit": {
|
|
2268
|
+
"type": "number",
|
|
2269
|
+
"description": "Number of items per page"
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
2272
|
+
"required": []
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
"name": "rent2b_guests_get",
|
|
2277
|
+
"description": "Get a specific guest by ID.",
|
|
2278
|
+
"method": "GET",
|
|
2279
|
+
"path": "/organizations/{organizationId}/guests/{id}",
|
|
2280
|
+
"inputSchema": {
|
|
2281
|
+
"type": "object",
|
|
2282
|
+
"properties": {
|
|
2283
|
+
"id": {
|
|
2284
|
+
"type": "string",
|
|
2285
|
+
"description": "Guest ID"
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
"required": [
|
|
2289
|
+
"id"
|
|
2290
|
+
]
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
"name": "rent2b_guests_update",
|
|
2295
|
+
"description": "Update a guest's information.",
|
|
2296
|
+
"method": "PATCH",
|
|
2297
|
+
"path": "/organizations/{organizationId}/guests/{id}",
|
|
2298
|
+
"inputSchema": {
|
|
2299
|
+
"type": "object",
|
|
2300
|
+
"properties": {
|
|
2301
|
+
"id": {
|
|
2302
|
+
"type": "string",
|
|
2303
|
+
"description": "Guest ID"
|
|
2304
|
+
},
|
|
2305
|
+
"first_name": {
|
|
2306
|
+
"type": "string",
|
|
2307
|
+
"description": "First name of the guest"
|
|
2308
|
+
},
|
|
2309
|
+
"last_name": {
|
|
2310
|
+
"type": "string",
|
|
2311
|
+
"description": "Last name of the guest"
|
|
2312
|
+
},
|
|
2313
|
+
"email": {
|
|
2314
|
+
"type": "string",
|
|
2315
|
+
"description": "Email address of the guest"
|
|
2316
|
+
},
|
|
2317
|
+
"phone": {
|
|
2318
|
+
"type": "string",
|
|
2319
|
+
"description": "Phone number of the guest"
|
|
2320
|
+
},
|
|
2321
|
+
"address": {
|
|
2322
|
+
"type": "string",
|
|
2323
|
+
"description": "Address of the guest"
|
|
2324
|
+
},
|
|
2325
|
+
"city": {
|
|
2326
|
+
"type": "string",
|
|
2327
|
+
"description": "City of the guest"
|
|
2328
|
+
},
|
|
2329
|
+
"postal_code": {
|
|
2330
|
+
"type": "string",
|
|
2331
|
+
"description": "Postal code of the guest"
|
|
2332
|
+
},
|
|
2333
|
+
"country": {
|
|
2334
|
+
"type": "string",
|
|
2335
|
+
"description": "Country of the guest"
|
|
2336
|
+
},
|
|
2337
|
+
"notes": {
|
|
2338
|
+
"type": "string",
|
|
2339
|
+
"description": "Additional notes about the guest"
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
"required": [
|
|
2343
|
+
"id"
|
|
2344
|
+
]
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"name": "rent2b_guests_delete",
|
|
2349
|
+
"description": "Delete a guest.",
|
|
2350
|
+
"method": "DELETE",
|
|
2351
|
+
"path": "/organizations/{organizationId}/guests/{id}",
|
|
2352
|
+
"inputSchema": {
|
|
2353
|
+
"type": "object",
|
|
2354
|
+
"properties": {
|
|
2355
|
+
"id": {
|
|
2356
|
+
"type": "string",
|
|
2357
|
+
"description": "Guest ID"
|
|
2358
|
+
}
|
|
2359
|
+
},
|
|
2360
|
+
"required": [
|
|
2361
|
+
"id"
|
|
2362
|
+
]
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"name": "rent2b_categories_create",
|
|
2367
|
+
"description": "Create a new category (Admin only)",
|
|
2368
|
+
"method": "POST",
|
|
2369
|
+
"path": "/categories",
|
|
2370
|
+
"inputSchema": {
|
|
2371
|
+
"type": "object",
|
|
2372
|
+
"properties": {
|
|
2373
|
+
"name": {
|
|
2374
|
+
"type": "string",
|
|
2375
|
+
"description": "Internal name of the category (must be unique)"
|
|
2376
|
+
},
|
|
2377
|
+
"display_name": {
|
|
2378
|
+
"type": "string",
|
|
2379
|
+
"description": "Display name of the category"
|
|
2380
|
+
},
|
|
2381
|
+
"parent_category_id": {
|
|
2382
|
+
"type": "string",
|
|
2383
|
+
"description": "Parent category ID for hierarchical categories"
|
|
2384
|
+
},
|
|
2385
|
+
"icon": {
|
|
2386
|
+
"type": "string",
|
|
2387
|
+
"description": "Icon or emoji for the category"
|
|
2388
|
+
},
|
|
2389
|
+
"description": {
|
|
2390
|
+
"type": "string",
|
|
2391
|
+
"description": "Description of the category"
|
|
2392
|
+
},
|
|
2393
|
+
"is_active": {
|
|
2394
|
+
"type": "boolean",
|
|
2395
|
+
"description": "Whether the category is active"
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"required": [
|
|
2399
|
+
"name",
|
|
2400
|
+
"display_name"
|
|
2401
|
+
]
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "rent2b_categories_list",
|
|
2406
|
+
"description": "List all item categories.",
|
|
2407
|
+
"method": "GET",
|
|
2408
|
+
"path": "/categories",
|
|
2409
|
+
"inputSchema": {
|
|
2410
|
+
"type": "object",
|
|
2411
|
+
"properties": {
|
|
2412
|
+
"includeInactive": {
|
|
2413
|
+
"type": "boolean",
|
|
2414
|
+
"description": "Include inactive categories"
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
"required": []
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"name": "rent2b_categories_get",
|
|
2422
|
+
"description": "Get a specific category by ID.",
|
|
2423
|
+
"method": "GET",
|
|
2424
|
+
"path": "/categories/{categoryId}",
|
|
2425
|
+
"inputSchema": {
|
|
2426
|
+
"type": "object",
|
|
2427
|
+
"properties": {
|
|
2428
|
+
"categoryId": {
|
|
2429
|
+
"type": "string",
|
|
2430
|
+
"description": "Category ID"
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2433
|
+
"required": [
|
|
2434
|
+
"categoryId"
|
|
2435
|
+
]
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"name": "rent2b_categories_update",
|
|
2440
|
+
"description": "Update a category (Admin only)",
|
|
2441
|
+
"method": "PUT",
|
|
2442
|
+
"path": "/categories/{categoryId}",
|
|
2443
|
+
"inputSchema": {
|
|
2444
|
+
"type": "object",
|
|
2445
|
+
"properties": {
|
|
2446
|
+
"categoryId": {
|
|
2447
|
+
"type": "string",
|
|
2448
|
+
"description": "Category ID"
|
|
2449
|
+
},
|
|
2450
|
+
"display_name": {
|
|
2451
|
+
"type": "string",
|
|
2452
|
+
"description": "Display name of the category"
|
|
2453
|
+
},
|
|
2454
|
+
"parent_category_id": {
|
|
2455
|
+
"type": "string",
|
|
2456
|
+
"description": "Parent category ID for hierarchical categories"
|
|
2457
|
+
},
|
|
2458
|
+
"icon": {
|
|
2459
|
+
"type": "string",
|
|
2460
|
+
"description": "Icon or emoji for the category"
|
|
2461
|
+
},
|
|
2462
|
+
"description": {
|
|
2463
|
+
"type": "string",
|
|
2464
|
+
"description": "Description of the category"
|
|
2465
|
+
},
|
|
2466
|
+
"is_active": {
|
|
2467
|
+
"type": "boolean",
|
|
2468
|
+
"description": "Whether the category is active"
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
"required": [
|
|
2472
|
+
"categoryId"
|
|
2473
|
+
]
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"name": "rent2b_categories_delete",
|
|
2478
|
+
"description": "Delete a category (Admin only)",
|
|
2479
|
+
"method": "DELETE",
|
|
2480
|
+
"path": "/categories/{categoryId}",
|
|
2481
|
+
"inputSchema": {
|
|
2482
|
+
"type": "object",
|
|
2483
|
+
"properties": {
|
|
2484
|
+
"categoryId": {
|
|
2485
|
+
"type": "string",
|
|
2486
|
+
"description": "Category ID"
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
"required": [
|
|
2490
|
+
"categoryId"
|
|
2491
|
+
]
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2494
|
+
{
|
|
2495
|
+
"name": "rent2b_categories_attributes_create",
|
|
2496
|
+
"description": "Create a new attribute for a category (Admin only)",
|
|
2497
|
+
"method": "POST",
|
|
2498
|
+
"path": "/categories/{categoryId}/attributes",
|
|
2499
|
+
"inputSchema": {
|
|
2500
|
+
"type": "object",
|
|
2501
|
+
"properties": {
|
|
2502
|
+
"categoryId": {
|
|
2503
|
+
"type": "string",
|
|
2504
|
+
"description": "Category ID"
|
|
2505
|
+
},
|
|
2506
|
+
"category_id": {
|
|
2507
|
+
"type": "string",
|
|
2508
|
+
"description": "The category this attribute belongs to"
|
|
2509
|
+
},
|
|
2510
|
+
"attribute_key": {
|
|
2511
|
+
"type": "string",
|
|
2512
|
+
"description": "Internal key for the attribute (must be unique within category)"
|
|
2513
|
+
},
|
|
2514
|
+
"display_name": {
|
|
2515
|
+
"type": "string",
|
|
2516
|
+
"description": "Display name of the attribute"
|
|
2517
|
+
},
|
|
2518
|
+
"data_type": {
|
|
2519
|
+
"type": "string",
|
|
2520
|
+
"description": "Data type of the attribute",
|
|
2521
|
+
"enum": [
|
|
2522
|
+
"text",
|
|
2523
|
+
"number",
|
|
2524
|
+
"select",
|
|
2525
|
+
"multi_select",
|
|
2526
|
+
"boolean",
|
|
2527
|
+
"date"
|
|
2528
|
+
]
|
|
2529
|
+
},
|
|
2530
|
+
"unit": {
|
|
2531
|
+
"type": "string",
|
|
2532
|
+
"description": "Unit of measurement"
|
|
2533
|
+
},
|
|
2534
|
+
"options": {
|
|
2535
|
+
"type": "object",
|
|
2536
|
+
"description": "Options for select/multi-select fields"
|
|
2537
|
+
},
|
|
2538
|
+
"is_required": {
|
|
2539
|
+
"type": "boolean",
|
|
2540
|
+
"description": "Whether this attribute is required"
|
|
2541
|
+
},
|
|
2542
|
+
"is_filterable": {
|
|
2543
|
+
"type": "boolean",
|
|
2544
|
+
"description": "Whether this attribute can be used for filtering"
|
|
2545
|
+
},
|
|
2546
|
+
"display_order": {
|
|
2547
|
+
"type": "number",
|
|
2548
|
+
"description": "Display order of the attribute"
|
|
2549
|
+
},
|
|
2550
|
+
"validation_rules": {
|
|
2551
|
+
"type": "object",
|
|
2552
|
+
"description": "Validation rules for the attribute"
|
|
2553
|
+
},
|
|
2554
|
+
"help_text": {
|
|
2555
|
+
"type": "string",
|
|
2556
|
+
"description": "Help text for the attribute"
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
"required": [
|
|
2560
|
+
"categoryId",
|
|
2561
|
+
"category_id",
|
|
2562
|
+
"attribute_key",
|
|
2563
|
+
"display_name",
|
|
2564
|
+
"data_type"
|
|
2565
|
+
]
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
"name": "rent2b_categories_attributes_list",
|
|
2570
|
+
"description": "Get all attributes for a category",
|
|
2571
|
+
"method": "GET",
|
|
2572
|
+
"path": "/categories/{categoryId}/attributes",
|
|
2573
|
+
"inputSchema": {
|
|
2574
|
+
"type": "object",
|
|
2575
|
+
"properties": {
|
|
2576
|
+
"categoryId": {
|
|
2577
|
+
"type": "string",
|
|
2578
|
+
"description": "Category ID"
|
|
2579
|
+
}
|
|
2580
|
+
},
|
|
2581
|
+
"required": [
|
|
2582
|
+
"categoryId"
|
|
2583
|
+
]
|
|
2584
|
+
}
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "rent2b_categories_attributes_update",
|
|
2588
|
+
"description": "Update an attribute (Admin only)",
|
|
2589
|
+
"method": "PUT",
|
|
2590
|
+
"path": "/categories/attributes/{attributeId}",
|
|
2591
|
+
"inputSchema": {
|
|
2592
|
+
"type": "object",
|
|
2593
|
+
"properties": {
|
|
2594
|
+
"attributeId": {
|
|
2595
|
+
"type": "string",
|
|
2596
|
+
"description": "Attribute ID"
|
|
2597
|
+
},
|
|
2598
|
+
"display_name": {
|
|
2599
|
+
"type": "string",
|
|
2600
|
+
"description": "Display name of the attribute"
|
|
2601
|
+
},
|
|
2602
|
+
"unit": {
|
|
2603
|
+
"type": "string",
|
|
2604
|
+
"description": "Unit of measurement"
|
|
2605
|
+
},
|
|
2606
|
+
"options": {
|
|
2607
|
+
"type": "object",
|
|
2608
|
+
"description": "Options for select/multi-select fields"
|
|
2609
|
+
},
|
|
2610
|
+
"is_required": {
|
|
2611
|
+
"type": "boolean",
|
|
2612
|
+
"description": "Whether this attribute is required"
|
|
2613
|
+
},
|
|
2614
|
+
"is_filterable": {
|
|
2615
|
+
"type": "boolean",
|
|
2616
|
+
"description": "Whether this attribute can be used for filtering"
|
|
2617
|
+
},
|
|
2618
|
+
"display_order": {
|
|
2619
|
+
"type": "number",
|
|
2620
|
+
"description": "Display order of the attribute"
|
|
2621
|
+
},
|
|
2622
|
+
"validation_rules": {
|
|
2623
|
+
"type": "object",
|
|
2624
|
+
"description": "Validation rules for the attribute"
|
|
2625
|
+
},
|
|
2626
|
+
"help_text": {
|
|
2627
|
+
"type": "string",
|
|
2628
|
+
"description": "Help text for the attribute"
|
|
2629
|
+
}
|
|
2630
|
+
},
|
|
2631
|
+
"required": [
|
|
2632
|
+
"attributeId"
|
|
2633
|
+
]
|
|
2634
|
+
}
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"name": "rent2b_categories_attributes_delete",
|
|
2638
|
+
"description": "Delete an attribute (Admin only)",
|
|
2639
|
+
"method": "DELETE",
|
|
2640
|
+
"path": "/categories/attributes/{attributeId}",
|
|
2641
|
+
"inputSchema": {
|
|
2642
|
+
"type": "object",
|
|
2643
|
+
"properties": {
|
|
2644
|
+
"attributeId": {
|
|
2645
|
+
"type": "string",
|
|
2646
|
+
"description": "Attribute ID"
|
|
2647
|
+
}
|
|
2648
|
+
},
|
|
2649
|
+
"required": [
|
|
2650
|
+
"attributeId"
|
|
2651
|
+
]
|
|
2652
|
+
}
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
"name": "rent2b_categories_items_attributes_list",
|
|
2656
|
+
"description": "Get all attributes for an item",
|
|
2657
|
+
"method": "GET",
|
|
2658
|
+
"path": "/categories/items/{itemId}/attributes",
|
|
2659
|
+
"inputSchema": {
|
|
2660
|
+
"type": "object",
|
|
2661
|
+
"properties": {
|
|
2662
|
+
"itemId": {
|
|
2663
|
+
"type": "string",
|
|
2664
|
+
"description": "Item ID"
|
|
2665
|
+
}
|
|
2666
|
+
},
|
|
2667
|
+
"required": [
|
|
2668
|
+
"itemId"
|
|
2669
|
+
]
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
"name": "rent2b_categories_items_attributes_create",
|
|
2674
|
+
"description": "Set attributes for an item",
|
|
2675
|
+
"method": "POST",
|
|
2676
|
+
"path": "/categories/items/{itemId}/attributes",
|
|
2677
|
+
"inputSchema": {
|
|
2678
|
+
"type": "object",
|
|
2679
|
+
"properties": {
|
|
2680
|
+
"itemId": {
|
|
2681
|
+
"type": "string",
|
|
2682
|
+
"description": "Item ID"
|
|
2683
|
+
},
|
|
2684
|
+
"categoryId": {
|
|
2685
|
+
"type": "string",
|
|
2686
|
+
"description": "Category ID"
|
|
2687
|
+
},
|
|
2688
|
+
"attributes": {
|
|
2689
|
+
"type": "object",
|
|
2690
|
+
"description": "Attribute key-value pairs"
|
|
2691
|
+
}
|
|
2692
|
+
},
|
|
2693
|
+
"required": [
|
|
2694
|
+
"itemId",
|
|
2695
|
+
"categoryId",
|
|
2696
|
+
"attributes"
|
|
2697
|
+
]
|
|
2698
|
+
}
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"name": "rent2b_categories_items_attributes_update",
|
|
2702
|
+
"description": "Update a specific attribute for an item",
|
|
2703
|
+
"method": "PUT",
|
|
2704
|
+
"path": "/categories/items/{itemId}/attributes/{attributeKey}",
|
|
2705
|
+
"inputSchema": {
|
|
2706
|
+
"type": "object",
|
|
2707
|
+
"properties": {
|
|
2708
|
+
"itemId": {
|
|
2709
|
+
"type": "string",
|
|
2710
|
+
"description": "Item ID"
|
|
2711
|
+
},
|
|
2712
|
+
"attributeKey": {
|
|
2713
|
+
"type": "string",
|
|
2714
|
+
"description": "Attribute key"
|
|
2715
|
+
},
|
|
2716
|
+
"value": {
|
|
2717
|
+
"type": "object",
|
|
2718
|
+
"description": "Attribute value (can be string, number, boolean, array, or null)"
|
|
2719
|
+
}
|
|
2720
|
+
},
|
|
2721
|
+
"required": [
|
|
2722
|
+
"itemId",
|
|
2723
|
+
"attributeKey",
|
|
2724
|
+
"value"
|
|
2725
|
+
]
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
{
|
|
2729
|
+
"name": "rent2b_categories_items_attributes_delete",
|
|
2730
|
+
"description": "Delete a specific attribute for an item",
|
|
2731
|
+
"method": "DELETE",
|
|
2732
|
+
"path": "/categories/items/{itemId}/attributes/{attributeKey}",
|
|
2733
|
+
"inputSchema": {
|
|
2734
|
+
"type": "object",
|
|
2735
|
+
"properties": {
|
|
2736
|
+
"itemId": {
|
|
2737
|
+
"type": "string",
|
|
2738
|
+
"description": "Item ID"
|
|
2739
|
+
},
|
|
2740
|
+
"attributeKey": {
|
|
2741
|
+
"type": "string",
|
|
2742
|
+
"description": "Attribute key"
|
|
2743
|
+
}
|
|
2744
|
+
},
|
|
2745
|
+
"required": [
|
|
2746
|
+
"itemId",
|
|
2747
|
+
"attributeKey"
|
|
2748
|
+
]
|
|
2749
|
+
}
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
"name": "rent2b_items_favorites_create",
|
|
2753
|
+
"description": "Toggle favorite status for an item",
|
|
2754
|
+
"method": "POST",
|
|
2755
|
+
"path": "/items/{itemId}/favorites",
|
|
2756
|
+
"inputSchema": {
|
|
2757
|
+
"type": "object",
|
|
2758
|
+
"properties": {
|
|
2759
|
+
"itemId": {
|
|
2760
|
+
"type": "string",
|
|
2761
|
+
"description": "itemId parameter"
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
"required": [
|
|
2765
|
+
"itemId"
|
|
2766
|
+
]
|
|
2767
|
+
}
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
"name": "rent2b_items_favorites_delete",
|
|
2771
|
+
"description": "Remove item from favorites",
|
|
2772
|
+
"method": "DELETE",
|
|
2773
|
+
"path": "/items/{itemId}/favorites",
|
|
2774
|
+
"inputSchema": {
|
|
2775
|
+
"type": "object",
|
|
2776
|
+
"properties": {
|
|
2777
|
+
"itemId": {
|
|
2778
|
+
"type": "string",
|
|
2779
|
+
"description": "itemId parameter"
|
|
2780
|
+
}
|
|
2781
|
+
},
|
|
2782
|
+
"required": [
|
|
2783
|
+
"itemId"
|
|
2784
|
+
]
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"name": "rent2b_items_favorite_status_list",
|
|
2789
|
+
"description": "Check if item is favorited by current user",
|
|
2790
|
+
"method": "GET",
|
|
2791
|
+
"path": "/items/{itemId}/favorite-status",
|
|
2792
|
+
"inputSchema": {
|
|
2793
|
+
"type": "object",
|
|
2794
|
+
"properties": {
|
|
2795
|
+
"itemId": {
|
|
2796
|
+
"type": "string",
|
|
2797
|
+
"description": "itemId parameter"
|
|
2798
|
+
}
|
|
2799
|
+
},
|
|
2800
|
+
"required": [
|
|
2801
|
+
"itemId"
|
|
2802
|
+
]
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"name": "rent2b_bookings_reviews_create",
|
|
2807
|
+
"description": "Create a review for a completed booking",
|
|
2808
|
+
"method": "POST",
|
|
2809
|
+
"path": "/bookings/{bookingId}/reviews",
|
|
2810
|
+
"inputSchema": {
|
|
2811
|
+
"type": "object",
|
|
2812
|
+
"properties": {
|
|
2813
|
+
"bookingId": {
|
|
2814
|
+
"type": "string",
|
|
2815
|
+
"description": "bookingId parameter"
|
|
2816
|
+
},
|
|
2817
|
+
"rating": {
|
|
2818
|
+
"type": "number",
|
|
2819
|
+
"description": "Star rating from 1 to 5"
|
|
2820
|
+
},
|
|
2821
|
+
"review_text": {
|
|
2822
|
+
"type": "string",
|
|
2823
|
+
"description": "Review text content"
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
"required": [
|
|
2827
|
+
"bookingId",
|
|
2828
|
+
"rating"
|
|
2829
|
+
]
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
"name": "rent2b_items_reviews_list",
|
|
2834
|
+
"description": "Get reviews for an item",
|
|
2835
|
+
"method": "GET",
|
|
2836
|
+
"path": "/items/{itemId}/reviews",
|
|
2837
|
+
"inputSchema": {
|
|
2838
|
+
"type": "object",
|
|
2839
|
+
"properties": {
|
|
2840
|
+
"itemId": {
|
|
2841
|
+
"type": "string",
|
|
2842
|
+
"description": "itemId parameter"
|
|
2843
|
+
},
|
|
2844
|
+
"page": {
|
|
2845
|
+
"type": "number",
|
|
2846
|
+
"description": "Page number"
|
|
2847
|
+
},
|
|
2848
|
+
"limit": {
|
|
2849
|
+
"type": "number",
|
|
2850
|
+
"description": "Items per page"
|
|
2851
|
+
},
|
|
2852
|
+
"rating": {
|
|
2853
|
+
"type": "number",
|
|
2854
|
+
"description": "Filter by specific rating"
|
|
2855
|
+
},
|
|
2856
|
+
"sort_by": {
|
|
2857
|
+
"type": "string",
|
|
2858
|
+
"description": "Sort order"
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
"required": [
|
|
2862
|
+
"itemId"
|
|
2863
|
+
]
|
|
2864
|
+
}
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
"name": "rent2b_statistics_overview",
|
|
2868
|
+
"description": "Get comprehensive organization statistics including bookings, revenue, and utilization.",
|
|
2869
|
+
"method": "GET",
|
|
2870
|
+
"path": "/statistics/organization/{organizationId}",
|
|
2871
|
+
"inputSchema": {
|
|
2872
|
+
"type": "object",
|
|
2873
|
+
"properties": {
|
|
2874
|
+
"days": {
|
|
2875
|
+
"type": "number",
|
|
2876
|
+
"description": "Number of days to include in statistics (default: 30)"
|
|
2877
|
+
}
|
|
2878
|
+
},
|
|
2879
|
+
"required": []
|
|
2880
|
+
}
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
"name": "rent2b_statistics_summary",
|
|
2884
|
+
"description": "Get a quick summary of organization statistics.",
|
|
2885
|
+
"method": "GET",
|
|
2886
|
+
"path": "/statistics/organization/{organizationId}/summary",
|
|
2887
|
+
"inputSchema": {
|
|
2888
|
+
"type": "object",
|
|
2889
|
+
"properties": {},
|
|
2890
|
+
"required": []
|
|
2891
|
+
}
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
"name": "rent2b_statistics_revenue",
|
|
2895
|
+
"description": "Get detailed revenue statistics for the organization.",
|
|
2896
|
+
"method": "GET",
|
|
2897
|
+
"path": "/statistics/organization/{organizationId}/revenue",
|
|
2898
|
+
"inputSchema": {
|
|
2899
|
+
"type": "object",
|
|
2900
|
+
"properties": {
|
|
2901
|
+
"days": {
|
|
2902
|
+
"type": "number",
|
|
2903
|
+
"description": "Number of days to include in statistics (default: 30)"
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2906
|
+
"required": []
|
|
2907
|
+
}
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
"name": "rent2b_statistics_utilization",
|
|
2911
|
+
"description": "Get utilization statistics for the organization.",
|
|
2912
|
+
"method": "GET",
|
|
2913
|
+
"path": "/statistics/organization/{organizationId}/utilization",
|
|
2914
|
+
"inputSchema": {
|
|
2915
|
+
"type": "object",
|
|
2916
|
+
"properties": {
|
|
2917
|
+
"days": {
|
|
2918
|
+
"type": "number",
|
|
2919
|
+
"description": "Number of days to include in statistics (default: 30)"
|
|
2920
|
+
}
|
|
2921
|
+
},
|
|
2922
|
+
"required": []
|
|
2923
|
+
}
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"name": "rent2b_statistics_location_list",
|
|
2927
|
+
"description": "Returns detailed analytics including bookings, revenue, utilization, and trends for the specified location",
|
|
2928
|
+
"method": "GET",
|
|
2929
|
+
"path": "/statistics/location/{locationId}",
|
|
2930
|
+
"inputSchema": {
|
|
2931
|
+
"type": "object",
|
|
2932
|
+
"properties": {
|
|
2933
|
+
"locationId": {
|
|
2934
|
+
"type": "string",
|
|
2935
|
+
"description": "The ID of the location to get statistics for"
|
|
2936
|
+
},
|
|
2937
|
+
"days": {
|
|
2938
|
+
"type": "number",
|
|
2939
|
+
"description": "Number of days to include in statistics (default: 30)"
|
|
2940
|
+
}
|
|
2941
|
+
},
|
|
2942
|
+
"required": [
|
|
2943
|
+
"locationId"
|
|
2944
|
+
]
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
"name": "rent2b_statistics_location_summary_list",
|
|
2949
|
+
"description": "Returns key metrics summary for dashboard display",
|
|
2950
|
+
"method": "GET",
|
|
2951
|
+
"path": "/statistics/location/{locationId}/summary",
|
|
2952
|
+
"inputSchema": {
|
|
2953
|
+
"type": "object",
|
|
2954
|
+
"properties": {
|
|
2955
|
+
"locationId": {
|
|
2956
|
+
"type": "string",
|
|
2957
|
+
"description": "The ID of the location to get summary for"
|
|
2958
|
+
}
|
|
2959
|
+
},
|
|
2960
|
+
"required": [
|
|
2961
|
+
"locationId"
|
|
2962
|
+
]
|
|
2963
|
+
}
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"name": "rent2b_statistics_location_revenue_list",
|
|
2967
|
+
"description": "Returns comprehensive revenue breakdown and trends",
|
|
2968
|
+
"method": "GET",
|
|
2969
|
+
"path": "/statistics/location/{locationId}/revenue",
|
|
2970
|
+
"inputSchema": {
|
|
2971
|
+
"type": "object",
|
|
2972
|
+
"properties": {
|
|
2973
|
+
"locationId": {
|
|
2974
|
+
"type": "string",
|
|
2975
|
+
"description": "The ID of the location"
|
|
2976
|
+
},
|
|
2977
|
+
"days": {
|
|
2978
|
+
"type": "number",
|
|
2979
|
+
"description": "Number of days to include in statistics (default: 30)"
|
|
2980
|
+
}
|
|
2981
|
+
},
|
|
2982
|
+
"required": [
|
|
2983
|
+
"locationId"
|
|
2984
|
+
]
|
|
2985
|
+
}
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"name": "rent2b_statistics_location_utilization_list",
|
|
2989
|
+
"description": "Returns utilization rates and booking patterns",
|
|
2990
|
+
"method": "GET",
|
|
2991
|
+
"path": "/statistics/location/{locationId}/utilization",
|
|
2992
|
+
"inputSchema": {
|
|
2993
|
+
"type": "object",
|
|
2994
|
+
"properties": {
|
|
2995
|
+
"locationId": {
|
|
2996
|
+
"type": "string",
|
|
2997
|
+
"description": "The ID of the location"
|
|
2998
|
+
},
|
|
2999
|
+
"days": {
|
|
3000
|
+
"type": "number",
|
|
3001
|
+
"description": "Number of days to include in statistics (default: 30)"
|
|
3002
|
+
}
|
|
3003
|
+
},
|
|
3004
|
+
"required": [
|
|
3005
|
+
"locationId"
|
|
3006
|
+
]
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"name": "rent2b_bookings_checklists_create",
|
|
3011
|
+
"description": "Create a checklist instance for a booking",
|
|
3012
|
+
"method": "POST",
|
|
3013
|
+
"path": "/bookings/{bookingId}/checklists",
|
|
3014
|
+
"inputSchema": {
|
|
3015
|
+
"type": "object",
|
|
3016
|
+
"properties": {
|
|
3017
|
+
"bookingId": {
|
|
3018
|
+
"type": "string",
|
|
3019
|
+
"description": "bookingId parameter"
|
|
3020
|
+
},
|
|
3021
|
+
"phase": {
|
|
3022
|
+
"type": "string",
|
|
3023
|
+
"description": "Phase for this checklist",
|
|
3024
|
+
"enum": [
|
|
3025
|
+
"check_out",
|
|
3026
|
+
"check_in"
|
|
3027
|
+
]
|
|
3028
|
+
}
|
|
3029
|
+
},
|
|
3030
|
+
"required": [
|
|
3031
|
+
"bookingId",
|
|
3032
|
+
"phase"
|
|
3033
|
+
]
|
|
3034
|
+
}
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"name": "rent2b_checklists_list",
|
|
3038
|
+
"description": "List all checklists for a specific booking.",
|
|
3039
|
+
"method": "GET",
|
|
3040
|
+
"path": "/bookings/{bookingId}/checklists",
|
|
3041
|
+
"inputSchema": {
|
|
3042
|
+
"type": "object",
|
|
3043
|
+
"properties": {
|
|
3044
|
+
"bookingId": {
|
|
3045
|
+
"type": "string",
|
|
3046
|
+
"description": "bookingId parameter"
|
|
3047
|
+
}
|
|
3048
|
+
},
|
|
3049
|
+
"required": [
|
|
3050
|
+
"bookingId"
|
|
3051
|
+
]
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
"name": "rent2b_checklists_get",
|
|
3056
|
+
"description": "Get a specific checklist by ID for a booking.",
|
|
3057
|
+
"method": "GET",
|
|
3058
|
+
"path": "/bookings/{bookingId}/checklists/{id}",
|
|
3059
|
+
"inputSchema": {
|
|
3060
|
+
"type": "object",
|
|
3061
|
+
"properties": {
|
|
3062
|
+
"bookingId": {
|
|
3063
|
+
"type": "string",
|
|
3064
|
+
"description": "bookingId parameter"
|
|
3065
|
+
},
|
|
3066
|
+
"id": {
|
|
3067
|
+
"type": "string",
|
|
3068
|
+
"description": "id parameter"
|
|
3069
|
+
}
|
|
3070
|
+
},
|
|
3071
|
+
"required": [
|
|
3072
|
+
"bookingId",
|
|
3073
|
+
"id"
|
|
3074
|
+
]
|
|
3075
|
+
}
|
|
3076
|
+
},
|
|
3077
|
+
{
|
|
3078
|
+
"name": "rent2b_bookings_checklists_items_update",
|
|
3079
|
+
"description": "Check/uncheck an item or add a note",
|
|
3080
|
+
"method": "PATCH",
|
|
3081
|
+
"path": "/bookings/{bookingId}/checklists/{id}/items/{itemId}",
|
|
3082
|
+
"inputSchema": {
|
|
3083
|
+
"type": "object",
|
|
3084
|
+
"properties": {
|
|
3085
|
+
"bookingId": {
|
|
3086
|
+
"type": "string",
|
|
3087
|
+
"description": "bookingId parameter"
|
|
3088
|
+
},
|
|
3089
|
+
"id": {
|
|
3090
|
+
"type": "string",
|
|
3091
|
+
"description": "id parameter"
|
|
3092
|
+
},
|
|
3093
|
+
"itemId": {
|
|
3094
|
+
"type": "string",
|
|
3095
|
+
"description": "itemId parameter"
|
|
3096
|
+
},
|
|
3097
|
+
"is_checked": {
|
|
3098
|
+
"type": "boolean",
|
|
3099
|
+
"description": "Check or uncheck the item"
|
|
3100
|
+
},
|
|
3101
|
+
"note": {
|
|
3102
|
+
"type": "string",
|
|
3103
|
+
"description": "Optional note"
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
"required": [
|
|
3107
|
+
"bookingId",
|
|
3108
|
+
"id",
|
|
3109
|
+
"itemId"
|
|
3110
|
+
]
|
|
3111
|
+
}
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"name": "rent2b_bookings_checklists_complete_update",
|
|
3115
|
+
"description": "Mark a checklist as completed",
|
|
3116
|
+
"method": "PATCH",
|
|
3117
|
+
"path": "/bookings/{bookingId}/checklists/{id}/complete",
|
|
3118
|
+
"inputSchema": {
|
|
3119
|
+
"type": "object",
|
|
3120
|
+
"properties": {
|
|
3121
|
+
"bookingId": {
|
|
3122
|
+
"type": "string",
|
|
3123
|
+
"description": "bookingId parameter"
|
|
3124
|
+
},
|
|
3125
|
+
"id": {
|
|
3126
|
+
"type": "string",
|
|
3127
|
+
"description": "id parameter"
|
|
3128
|
+
}
|
|
3129
|
+
},
|
|
3130
|
+
"required": [
|
|
3131
|
+
"bookingId",
|
|
3132
|
+
"id"
|
|
3133
|
+
]
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
]
|