You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`body`|[`Bulk Retrieve Team Member Booking Profiles Request`](../../doc/models/bulk-retrieve-team-member-booking-profiles-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
290
+
291
+
## Response Type
292
+
293
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Retrieve Team Member Booking Profiles Response`](../../doc/models/bulk-retrieve-team-member-booking-profiles-response.md).
294
+
295
+
## Example Usage
296
+
297
+
```python
298
+
body = {
299
+
'team_member_ids': [
300
+
'team_member_ids3',
301
+
'team_member_ids4',
302
+
'team_member_ids5'
303
+
]
304
+
}
305
+
306
+
result = bookings_api.bulk_retrieve_team_member_booking_profiles(body)
List devices associated with the merchant. Currently, only Terminal API
23
+
devices are supported.
24
+
25
+
```python
26
+
deflist_devices(self,
27
+
cursor=None,
28
+
sort_order=None,
29
+
limit=None,
30
+
location_id=None)
31
+
```
32
+
33
+
## Parameters
34
+
35
+
| Parameter | Type | Tags | Description |
36
+
| --- | --- | --- | --- |
37
+
|`cursor`|`str`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for the original query.<br>See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
38
+
|`sort_order`|[`str (Sort Order)`](../../doc/models/sort-order.md)| Query, Optional | The order in which results are listed.<br><br>- `ASC` - Oldest to newest.<br>- `DESC` - Newest to oldest (default). |
39
+
|`limit`|`int`| Query, Optional | The number of results to return in a single page. |
40
+
|`location_id`|`str`| Query, Optional | If present, only returns devices at the target location. |
41
+
42
+
## Response Type
43
+
44
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`List Devices Response`](../../doc/models/list-devices-response.md).
45
+
46
+
## Example Usage
47
+
48
+
```python
49
+
result = devices_api.list_devices()
50
+
print(result)
51
+
52
+
if result.is_success():
53
+
print(result.body)
54
+
elif result.is_error():
55
+
print(result.errors)
56
+
```
16
57
17
58
18
59
# List Device Codes
@@ -128,3 +169,37 @@ elif result.is_error():
128
169
print(result.errors)
129
170
```
130
171
172
+
173
+
# Get Device
174
+
175
+
Retrieves Device with the associated `device_id`.
176
+
177
+
```python
178
+
defget_device(self,
179
+
device_id)
180
+
```
181
+
182
+
## Parameters
183
+
184
+
| Parameter | Type | Tags | Description |
185
+
| --- | --- | --- | --- |
186
+
|`device_id`|`str`| Template, Required | The unique ID for the desired `Device`. |
187
+
188
+
## Response Type
189
+
190
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Get Device Response`](../../doc/models/get-device-response.md).
0 commit comments