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
The following parameters are configurable for the API Client:
5
4
6
-
| Parameter | Type | Description |
7
-
|--- | --- | --- |
8
-
|`square_version`|`String`| Square Connect API versions<br>*Default*: `'2025-07-16'`|
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
-
|`environment`|`string`| The API environment. <br> **Default: `production`**|
11
-
|`connection`|`Faraday::Connection`| The Faraday connection object passed by the SDK user for making requests |
12
-
|`adapter`|`Faraday::Adapter`| The Faraday adapter object passed by the SDK user for performing http requests |
13
-
|`timeout`|`Float`| The value to use for connection timeout. <br> **Default: 60**|
14
-
|`max_retries`|`Integer`| The number of times to retry an endpoint call if it fails. <br> **Default: 0**|
15
-
|`retry_interval`|`Float`| Pause in seconds between retries. <br> **Default: 1**|
16
-
|`backoff_factor`|`Float`| The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2**|
17
-
|`retry_statuses`|`Array`| A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]**|
18
-
|`retry_methods`|`Array`| A list of HTTP methods to retry. <br> **Default: %i[get put]**|
19
-
|`http_callback`|`HttpCallBack`| The Http CallBack allows defining callables for pre and post API calls. |
20
-
|`user_agent_detail`|`string`| User agent detail, to be appended with user-agent header. |
21
-
|`additional_headers`|`String`| Additional headers to add to each API request |
22
-
|`bearer_auth_credentials`|[`BearerAuthCredentials`](auth/oauth-2-bearer-token.md)| The credential object for OAuth 2 Bearer token |
|`square_version`|`String`| Square Connect API versions<br>_Default_: `'2025-07-16'`|
8
+
|`custom_url`|`String`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>_Default_: `'https://connect.squareup.com'`|
9
+
|`environment`|`string`| The API environment. <br> **Default: `production`**|
10
+
|`connection`|`Faraday::Connection`| The Faraday connection object passed by the SDK user for making requests|
11
+
|`adapter`|`Faraday::Adapter`| The Faraday adapter object passed by the SDK user for performing http requests|
12
+
|`timeout`|`Float`| The value to use for connection timeout. <br> **Default: 60**|
13
+
|`max_retries`|`Integer`| The number of times to retry an endpoint call if it fails. <br> **Default: 0**|
14
+
|`retry_interval`|`Float`| Pause in seconds between retries. <br> **Default: 1**|
15
+
|`backoff_factor`|`Float`| The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2**|
16
+
|`retry_statuses`|`Array`| A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]**|
17
+
|`retry_methods`|`Array`| A list of HTTP methods to retry. <br> **Default: %i[get put]**|
18
+
|`http_callback`|`HttpCallBack`| The Http CallBack allows defining callables for pre and post API calls.|
19
+
|`user_agent_detail`|`string`| User agent detail, to be appended with user-agent header.|
20
+
|`additional_headers`|`String`| Additional headers to add to each API request|
21
+
|`bearer_auth_credentials`|[`BearerAuthCredentials`](auth/oauth-2-bearer-token.md)| The credential object for OAuth 2 Bearer token |
0 commit comments