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
*[Retrieve Business Booking Profile](../../doc/apis/bookings.md#retrieve-business-booking-profile)
17
18
*[List Team Member Booking Profiles](../../doc/apis/bookings.md#list-team-member-booking-profiles)
18
19
*[Retrieve Team Member Booking Profile](../../doc/apis/bookings.md#retrieve-team-member-booking-profile)
@@ -32,6 +33,7 @@ To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ`
32
33
function listBookings(
33
34
?int $limit = null,
34
35
?string $cursor = null,
36
+
?string $customerId = null,
35
37
?string $teamMemberId = null,
36
38
?string $locationId = null,
37
39
?string $startAtMin = null,
@@ -45,6 +47,7 @@ function listBookings(
45
47
| --- | --- | --- | --- |
46
48
|`limit`|`?int`| Query, Optional | The maximum number of results per page to return in a paged response. |
47
49
|`cursor`|`?string`| Query, Optional | The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results. |
50
+
|`customerId`|`?string`| Query, Optional | The [customer](entity:Customer) for whom to retrieve bookings. If this is not set, bookings for all customers are retrieved. |
48
51
|`teamMemberId`|`?string`| Query, Optional | The team member for whom to retrieve bookings. If this is not set, bookings of all members are retrieved. |
49
52
|`locationId`|`?string`| Query, Optional | The location for which to retrieve bookings. If this is not set, all locations' bookings are retrieved. |
50
53
|`startAtMin`|`?string`| Query, Optional | The RFC 3339 timestamp specifying the earliest of the start time. If this is not set, the current time is used. |
To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
181
+
To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
182
+
183
+
```php
184
+
function bulkRetrieveBookings(BulkRetrieveBookingsRequest $body): ApiResponse
185
+
```
186
+
187
+
## Parameters
188
+
189
+
| Parameter | Type | Tags | Description |
190
+
| --- | --- | --- | --- |
191
+
|`body`|[`BulkRetrieveBookingsRequest`](../../doc/models/bulk-retrieve-bookings-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
192
+
193
+
## Response Type
194
+
195
+
This method returns a `Square\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`BulkRetrieveBookingsResponse`](../../doc/models/bulk-retrieve-bookings-response.md).
Copy file name to clipboardExpand all lines: doc/apis/gift-cards.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ function listGiftCards(
40
40
| --- | --- | --- | --- |
41
41
|`type`|`?string`| Query, Optional | If a [type](entity:GiftCardType) is provided, the endpoint returns gift cards of the specified type.<br>Otherwise, the endpoint returns gift cards of all types. |
42
42
|`state`|`?string`| Query, Optional | If a [state](entity:GiftCardStatus) is provided, the endpoint returns the gift cards in the specified state.<br>Otherwise, the endpoint returns the gift cards of all states. |
43
-
|`limit`|`?int`| Query, Optional | If a limit is provided, the endpoint returns only the specified number of results per page.<br>The maximum value is 50. The default value is 30.<br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
43
+
|`limit`|`?int`| Query, Optional | If a limit is provided, the endpoint returns only the specified number of results per page.<br>The maximum value is 200. The default value is 30.<br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
44
44
|`cursor`|`?string`| 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>If a cursor is not provided, the endpoint returns the first page of the results.<br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
45
45
|`customerId`|`?string`| Query, Optional | If a customer ID is provided, the endpoint returns only the gift cards linked to the specified customer. |
Copy file name to clipboardExpand all lines: doc/client.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
5
5
6
6
| Parameter | Type | Description |
7
7
| --- | --- | --- |
8
-
|`squareVersion`|`string`| Square Connect API versions<br>*Default*: `'2023-07-20'`|
8
+
|`squareVersion`|`string`| Square Connect API versions<br>*Default*: `'2023-08-16'`|
9
9
|`customUrl`|`string`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'`|
10
10
|`environment`|`string`| The API environment. <br> **Default: `production`**|
11
11
|`timeout`|`int`| Timeout for API calls in seconds.<br>*Default*: `60`|
@@ -26,7 +26,7 @@ The API client can be initialized as follows:
Copy file name to clipboardExpand all lines: doc/models/booking-custom-attribute-delete-request.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ request. An individual request contains a booking ID, the custom attribute to de
12
12
13
13
| Name | Type | Tags | Description | Getter | Setter |
14
14
| --- | --- | --- | --- | --- | --- |
15
-
|`bookingId`|`string`| Required | The ID of the target [booking](entity:Booking).<br>**Constraints**: *Minimum Length*: `1`| getBookingId(): string | setBookingId(string bookingId): void |
15
+
|`bookingId`|`string`| Required | The ID of the target [booking](entity:Booking).<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`| getBookingId(): string | setBookingId(string bookingId): void |
16
16
|`key`|`string`| Required | The key of the custom attribute to delete. This key must match the `key` of a<br>custom attribute definition in the Square seller account. If the requesting application is not<br>the definition owner, you must use the qualified key.<br>**Constraints**: *Minimum Length*: `1`| getKey(): string | setKey(string key): void |
Copy file name to clipboardExpand all lines: doc/models/booking-custom-attribute-upsert-request.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ and an optional idempotency key.
13
13
14
14
| Name | Type | Tags | Description | Getter | Setter |
15
15
| --- | --- | --- | --- | --- | --- |
16
-
|`bookingId`|`string`| Required | The ID of the target [booking](entity:Booking).<br>**Constraints**: *Minimum Length*: `1`| getBookingId(): string | setBookingId(string bookingId): void |
16
+
|`bookingId`|`string`| Required | The ID of the target [booking](entity:Booking).<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`| getBookingId(): string | setBookingId(string bookingId): void |
17
17
|`customAttribute`|[`CustomAttribute`](../../doc/models/custom-attribute.md)| Required | A custom attribute value. Each custom attribute value has a corresponding<br>`CustomAttributeDefinition` object. | getCustomAttribute(): CustomAttribute | setCustomAttribute(CustomAttribute customAttribute): void |
18
18
|`idempotencyKey`|`?string`| Optional | A unique identifier for this individual upsert request, used to ensure idempotency.<br>For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).<br>**Constraints**: *Maximum Length*: `45`| getIdempotencyKey(): ?string | setIdempotencyKey(?string idempotencyKey): void |
0 commit comments