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
|`bookable_only`|`bool`| Query, Optional | Indicates whether to include only bookable team members in the returned result (`true`) or not (`false`).<br>**Default**: `False`|
209
-
|`limit`|`int`| Query, Optional | The maximum number of results to return. |
210
-
|`cursor`|`string`| Query, Optional | The cursor for paginating through the results. |
218
+
|`limit`|`int`| Query, Optional | The maximum number of results to return in a paged response. |
219
+
|`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. |
211
220
|`location_id`|`string`| Query, Optional | Indicates whether to include only team members enabled at the given location in the returned result. |
212
221
213
222
## Response Type
@@ -268,6 +277,9 @@ elif result.is_error():
268
277
269
278
Retrieves a booking.
270
279
280
+
To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
281
+
To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
282
+
271
283
```python
272
284
defretrieve_booking(self,
273
285
booking_id)
@@ -301,6 +313,9 @@ elif result.is_error():
301
313
302
314
Updates a booking.
303
315
316
+
To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
317
+
To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
318
+
304
319
```python
305
320
defupdate_booking(self,
306
321
booking_id,
@@ -344,6 +359,9 @@ elif result.is_error():
344
359
345
360
Cancels an existing booking.
346
361
362
+
To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
363
+
To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
Copy file name to clipboardExpand all lines: doc/api/loyalty.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,9 +164,6 @@ Adds points to a loyalty account.
164
164
[CalculateLoyaltyPoints](/doc/api/loyalty.md#calculate-loyalty-points) to compute the points
165
165
that you provide to this endpoint.
166
166
167
-
__Note:__ The country of the seller's Square account determines whether tax is included in the purchase amount when accruing points for spend-based and visit-based programs.
168
-
For more information, see [Availability of Square Loyalty](https://developer.squareup.com/docs/loyalty-api/overview#loyalty-market-availability).
169
-
170
167
```python
171
168
defaccumulate_loyalty_points(self,
172
169
account_id,
@@ -374,16 +371,15 @@ elif result.is_error():
374
371
375
372
Calculates the points a purchase earns.
376
373
377
-
- If you are using the Orders API to manage orders, you provide `order_id` in the request. The
374
+
- If you are using the Orders API to manage orders, you provide the `order_id` in the request. The
378
375
endpoint calculates the points by reading the order.
379
376
- If you are not using the Orders API to manage orders, you provide the purchase amount in
380
377
the request for the endpoint to calculate the points.
381
378
382
379
An application might call this endpoint to show the points that a buyer can earn with the
383
380
specific purchase.
384
381
385
-
__Note:__ The country of the seller's Square account determines whether tax is included in the purchase amount when accruing points for spend-based and visit-based programs.
386
-
For more information, see [Availability of Square Loyalty](https://developer.squareup.com/docs/loyalty-api/overview#loyalty-market-availability).
382
+
For spend-based and visit-based programs, the `tax_mode` setting of the accrual rule indicates how taxes should be treated for loyalty points accrual.
Copy file name to clipboardExpand all lines: doc/api/refunds.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
@@ -46,7 +46,7 @@ def list_payment_refunds(self,
46
46
|`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><br>For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination). |
47
47
|`location_id`|`string`| Query, Optional | Limit results to the location supplied. By default, results are returned<br>for all locations associated with the seller. |
48
48
|`status`|`string`| Query, Optional | If provided, only refunds with the given status are returned.<br>For a list of refund status values, see [PaymentRefund](/doc/models/payment-refund.md).<br><br>Default: If omitted, refunds are returned regardless of their status. |
49
-
|`source_type`|`string`| Query, Optional | If provided, only refunds with the given source type are returned.<br><br>- `CARD` - List refunds only for payments where `CARD` was specified as the payment<br> source.<br><br>Default: If omitted, refunds are returned regardless of the source type. |
49
+
|`source_type`|`string`| Query, Optional | If provided, only returns refunds whose payments have the indicated source type.<br>Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `CASH`, and `EXTERNAL`.<br>For information about these payment source types, see<br>[Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).<br><br>Default: If omitted, refunds are returned regardless of the source type. |
50
50
|`limit`|`int`| Query, Optional | The maximum number of results to be returned in a single page.<br><br>It is possible to receive fewer results than the specified limit on a given page.<br><br>If the supplied value is greater than 100, no more than 100 results are returned.<br><br>Default: 100 |
Copy file name to clipboardExpand all lines: doc/client.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@ The following parameters are configurable for the API Client:
5
5
6
6
| Parameter | Type | Description |
7
7
| --- | --- | --- |
8
-
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2021-12-15'`|
9
-
|`access_token`|`string`| The OAuth 2.0 Access Token to use for API requests. |
8
+
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2022-01-20'`|
10
9
|`custom_url`|`string`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'`|
11
10
|`environment`|`string`| The API environment. <br> **Default: `production`**|
12
11
|`http_client_instance`|`HttpClient`| The Http Client passed from the sdk user for making requests |
@@ -25,8 +24,7 @@ The API client can be initialized as follows:
25
24
from square.client import Client
26
25
27
26
client = Client(
28
-
square_version='2021-12-15',
29
-
access_token='AccessToken',
27
+
square_version='2022-01-20',
30
28
environment='production',
31
29
custom_url='https://connect.squareup.com',)
32
30
```
@@ -50,8 +48,7 @@ API calls return an `ApiResponse` object that includes the following fields:
When it comes to localization, the seller's language preferences
27
-
(see [Language preferences](https://developer.squareup.com/docs/locations-api#location-specific-and-seller-level-language-preferences))
28
-
are ignored for addresses. Even though Square products (such as Square Point of Sale
29
-
and the Seller Dashboard) mostly use a seller's language preference in
30
-
communication, when it comes to addresses, they will use English for a US address,
31
-
Japanese for an address in Japan, and so on.
4
+
Represents a postal address in a country.
5
+
For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
32
6
33
7
## Structure
34
8
@@ -41,18 +15,11 @@ Japanese for an address in Japan, and so on.
41
15
|`address_line_1`|`string`| Optional | The first line of the address.<br><br>Fields that start with `address_line` provide the address's most specific<br>details, like street number, street name, and building name. They do *not*<br>provide less specific details like city, state/province, or country (these<br>details are provided in other fields). |
42
16
|`address_line_2`|`string`| Optional | The second line of the address, if any. |
43
17
|`address_line_3`|`string`| Optional | The third line of the address, if any. |
44
-
|`locality`|`string`| Optional | The city or town of the address. |
18
+
|`locality`|`string`| Optional | The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). |
45
19
|`sublocality`|`string`| Optional | A civil region within the address's `locality`, if any. |
46
-
|`sublocality_2`|`string`| Optional | A civil region within the address's `sublocality`, if any. |
47
-
|`sublocality_3`|`string`| Optional | A civil region within the address's `sublocality_2`, if any. |
48
-
|`administrative_district_level_1`|`string`| Optional | A civil entity within the address's country. In the US, this<br>is the state. |
49
-
|`administrative_district_level_2`|`string`| Optional | A civil entity within the address's `administrative_district_level_1`.<br>In the US, this is the county. |
50
-
|`administrative_district_level_3`|`string`| Optional | A civil entity within the address's `administrative_district_level_2`,<br>if any. |
51
-
|`postal_code`|`string`| Optional | The address's postal code. |
20
+
|`administrative_district_level_1`|`string`| Optional | A civil entity within the address's country. In the US, this<br>is the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). |
21
+
|`postal_code`|`string`| Optional | The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). |
52
22
|`country`|[`str (Country)`](/doc/models/country.md)| Optional | Indicates the country associated with another entity, such as a business.<br>Values are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm). |
53
-
|`first_name`|`string`| Optional | Optional first name when it's representing recipient. |
54
-
|`last_name`|`string`| Optional | Optional last name when it's representing recipient. |
55
-
|`organization`|`string`| Optional | Optional organization name when it's representing recipient. |
0 commit comments