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
Returns information about an [OAuth access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-an-oauth-access-token) or an application’s [personal access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-a-personal-access-token).
194
+
195
+
Add the access token to the Authorization header of the request.
196
+
197
+
__Important:__ The `Authorization` header you provide to this endpoint must have the following format:
198
+
199
+
```
200
+
Authorization: Bearer ACCESS_TOKEN
201
+
```
202
+
203
+
where `ACCESS_TOKEN` is a
204
+
[valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens).
205
+
206
+
If the access token is expired or not a valid access token, the endpoint returns an `UNAUTHORIZED` error.
207
+
208
+
:information_source:**Note** This endpoint does not require authentication.
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
-
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2022-11-16'`|
8
+
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2022-12-14'`|
9
9
|`custom_url`|`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
|`http_client_instance`|`HttpClient`| The Http Client passed from the sdk user for making requests |
@@ -26,7 +26,7 @@ The API client can be initialized as follows:
Copy file name to clipboardExpand all lines: doc/models/customer-filter.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
2
2
# Customer Filter
3
3
4
-
Represents a set of `CustomerQuery` filters used to limit the set of
5
-
customers returned by the [SearchCustomers](../../doc/api/customers.md#search-customers)endpoint.
4
+
Represents the filtering criteria in a [search query](../../doc/models/customer-query.md) that defines how to filter
5
+
customer profiles returned in [SearchCustomers](../../doc/api/customers.md#search-customers)results.
6
6
7
7
## Structure
8
8
@@ -20,6 +20,7 @@ customers returned by the [SearchCustomers](../../doc/api/customers.md#search-cu
20
20
|`reference_id`|[`Customer Text Filter`](../../doc/models/customer-text-filter.md)| Optional | A filter to select customers based on exact or fuzzy matching of<br>customer attributes against a specified query. Depending on the customer attributes,<br>the filter can be case-sensitive. This filter can be exact or fuzzy, but it cannot be both. |
21
21
|`group_ids`|[`Filter Value`](../../doc/models/filter-value.md)| Optional | A filter to select resources based on an exact field value. For any given<br>value, the value can only be in one property. Depending on the field, either<br>all properties can be set or only a subset will be available.<br><br>Refer to the documentation of the field. |
22
22
|`custom_attribute`|[`Customer Custom Attribute Filters`](../../doc/models/customer-custom-attribute-filters.md)| Optional | The custom attribute filters in a set of [customer filters](../../doc/models/customer-filter.md) used in a search query. Use this filter<br>to search based on [custom attributes](../../doc/models/custom-attribute.md) that are assigned to customer profiles. For more information, see<br>[Search by custom attribute](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#search-by-custom-attribute). |
23
+
|`segment_ids`|[`Filter Value`](../../doc/models/filter-value.md)| Optional | A filter to select resources based on an exact field value. For any given<br>value, the value can only be in one property. Depending on the field, either<br>all properties can be set or only a subset will be available.<br><br>Refer to the documentation of the field. |
23
24
24
25
## Example (as JSON)
25
26
@@ -32,7 +33,8 @@ customers returned by the [SearchCustomers](../../doc/api/customers.md#search-cu
Copy file name to clipboardExpand all lines: doc/models/customer-query.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
2
2
# Customer Query
3
3
4
-
Represents a query (including filtering criteria, sorting criteria, or both) used to search
5
-
for customer profiles.
4
+
Represents filtering and sorting criteria for a [SearchCustomers](../../doc/api/customers.md#search-customers) request.
6
5
7
6
## Structure
8
7
@@ -12,8 +11,8 @@ for customer profiles.
12
11
13
12
| Name | Type | Tags | Description |
14
13
| --- | --- | --- | --- |
15
-
|`filter`|[`Customer Filter`](../../doc/models/customer-filter.md)| Optional | Represents a set of `CustomerQuery` filters used to limit the set of<br>customers returned by the [SearchCustomers](../../doc/api/customers.md#search-customers)endpoint. |
16
-
|`sort`|[`Customer Sort`](../../doc/models/customer-sort.md)| Optional |Specifies how searched customers profiles are sorted, including the sort key and sort order. |
14
+
|`filter`|[`Customer Filter`](../../doc/models/customer-filter.md)| Optional | Represents the filtering criteria in a [search query](../../doc/models/customer-query.md) that defines how to filter<br>customer profiles returned in [SearchCustomers](../../doc/api/customers.md#search-customers)results. |
15
+
|`sort`|[`Customer Sort`](../../doc/models/customer-sort.md)| Optional |Represents the sorting criteria in a [search query](../../doc/models/customer-query.md) that defines how to sort<br>customer profiles returned in [SearchCustomers](../../doc/api/customers.md#search-customers) results. |
0 commit comments