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
print("Exception when calling AccountingApi->getContacts: %s\n" % e)</code></pre>
@@ -21870,6 +21877,26 @@ <h2>Parameters</h2>
21870
21877
</div>
21871
21878
</div>
21872
21879
</td>
21880
+
</tr>
21881
+
21882
+
<tr><td style="width:150px;">summaryOnly</td>
21883
+
<td>
21884
+
21885
+
21886
+
<div id="d2e199_getContacts_summaryOnly">
21887
+
<div class="json-schema-view">
21888
+
<div class="primitive">
21889
+
<span class="type">
21890
+
Boolean
21891
+
</span>
21892
+
21893
+
<div class="inner description marked">
21894
+
Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
21895
+
</div>
21896
+
</div>
21897
+
</div>
21898
+
</div>
21899
+
</td>
21873
21900
</tr>
21874
21901
21875
21902
</table>
@@ -24794,9 +24821,10 @@ <h3>Usage and SDK Samples</h3>
print("Exception when calling AccountingApi->getInvoices: %s\n" % e)</code></pre>
@@ -25055,6 +25083,26 @@ <h2>Parameters</h2>
25055
25083
</div>
25056
25084
</div>
25057
25085
</td>
25086
+
</tr>
25087
+
25088
+
<tr><td style="width:150px;">summaryOnly</td>
25089
+
<td>
25090
+
25091
+
25092
+
<div id="d2e199_getInvoices_summaryOnly">
25093
+
<div class="json-schema-view">
25094
+
<div class="primitive">
25095
+
<span class="type">
25096
+
Boolean
25097
+
</span>
25098
+
25099
+
<div class="inner description marked">
25100
+
Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
Copy file name to clipboardExpand all lines: xero_python/accounting/api/accounting_api.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
"""
11
11
12
12
"""
13
-
OpenAPI spec version: 2.10.4
13
+
OpenAPI spec version: 2.12.0
14
14
"""
15
15
16
16
import importlib
@@ -8290,6 +8290,7 @@ def get_contacts(
8290
8290
i_ds=empty,
8291
8291
page=empty,
8292
8292
include_archived=empty,
8293
+
summary_only=empty,
8293
8294
_return_http_data_only=True,
8294
8295
_preload_content=True,
8295
8296
_request_timeout=None,
@@ -8303,6 +8304,7 @@ def get_contacts(
8303
8304
:param list[str] i_ds: Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call.
8304
8305
:param int page: e.g. page=1 - Up to 100 contacts will be returned in a single API call.
8305
8306
:param bool include_archived: e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
8307
+
:param bool summary_only: Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
8306
8308
:param bool _return_http_data_only: return received data only
8307
8309
:param bool _preload_content: load received data in models
8308
8310
:param bool _request_timeout: maximum wait time for response
:param int page: e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
10040
10046
:param bool include_archived: e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response
10041
10047
:param bool created_by_my_app: When set to true you'll only retrieve Invoices created by your app
10048
+
:param bool summary_only: Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
10042
10049
:param int unitdp: e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
10043
10050
:param bool _return_http_data_only: return received data only
10044
10051
:param bool _preload_content: load received data in models
Copy file name to clipboardExpand all lines: xero_python/accounting/docs/AccountingApi.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6401,7 +6401,7 @@ Name | Type | Description | Notes
6401
6401
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -6438,9 +6438,10 @@ order = 'Name ASC' # str | Order by an any element (optional)
6438
6438
i_ds = ['"00000000-0000-0000-0000-000000000000"'] # list[str] | Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. (optional)
6439
6439
page = 1 # int | e.g. page=1 - Up to 100 contacts will be returned in a single API call. (optional)
6440
6440
include_archived = True # bool | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional)
6441
+
summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False)
print("Exception when calling AccountingApi->get_contacts: %s\n" % e)
@@ -6457,6 +6458,7 @@ Name | Type | Description | Notes
6457
6458
**i_ds** | [**list[str]**](str.md)| Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. | [optional]
6458
6459
**page** | **int**| e.g. page=1 - Up to 100 contacts will be returned in a single API call. | [optional]
6459
6460
**include_archived** | **bool**| e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response | [optional]
6461
+
**summary_only** | **bool**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to False]
6460
6462
6461
6463
### Return type
6462
6464
@@ -7770,7 +7772,7 @@ Name | Type | Description | Notes
7770
7772
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
page = 1 # int | e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice (optional)
7812
7814
include_archived = True # bool | e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response (optional)
7813
7815
created_by_my_app = false # bool | When set to true you'll only retrieve Invoices created by your app (optional)
7816
+
summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False)
7814
7817
unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
print("Exception when calling AccountingApi->get_invoices: %s\n" % e)
@@ -7835,6 +7838,7 @@ Name | Type | Description | Notes
7835
7838
**page** | **int**| e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice | [optional]
7836
7839
**include_archived** | **bool**| e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response | [optional]
7837
7840
**created_by_my_app** | **bool**| When set to true you'll only retrieve Invoices created by your app | [optional]
7841
+
**summary_only** | **bool**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to False]
7838
7842
**unitdp** | **int**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
0 commit comments