xero-python
xero-python copied to clipboard
Official Xero OAuth 2.0 python SDK
```py xero_tenant_id = '7f8441b3-9d6c-499b-b28d-1250928c7b65' leave_application_id = 'd306a1fe-301e-4126-beef-8d72fdf8105a' payroll_au_api.reject_leave_application(xero_tenant_id, leave_application_id) ``` ``` File .../.direnv/python-3.11/lib/python3.11/site-packages/xero_python/api_client/deserializer.py:78, in deserialize_list(data_type, data, model_finder) 76 raise ValueError("Can't deserialize data_type={!r}".format(data_type)) 77 else: ---> 78 return [deserialize(sub_data_type, sub_data, model_finder)...
Issue Description: When using the Xero API Explorer - Accounting API > Bank Transactions, the response returns the expected currency rate. However, when using get_bank_transactions API endpoint, the response returns...
Hi. I've just started using the xero-python SDK (v 6.3.0) to retrieve Invoices. There appears to be an issue in the client when serializing UUID fields This code: ```python response...
Using xero_python==6.3.0 To reproduce: ``` api_client = ApiClient(...) accounting_api = AccountingApi(_api_client) ... accounting_api.delete_credit_note_allocations( xero_tenant_id=XERO_TENANT_ID, credit_note_id=credit_note_id, allocation_id=allocation_id, ) ``` The allocation will be deleted, however ValueError "Invalid value for `invoice`, must...
It seems like there was a typo in a command and these files were added by mistake.
changed versions for all SDKs for testing the flow
I believed our current method of filtering contacts would be efficient enough, but our systems have crashed due to the new high volume threshold limits. Here is our current approach...
Changing ordering of signature params like this is a surefire recipe for disaster: https://github.com/XeroAPI/xero-python/blame/master/xero_python/accounting/models/contacts.py#L36 Introduced in 25a6d3eb2e03a6205de966336e51ac44a7bcfc88: Where `Contacts([Contact(...)])` would before create a `Contacts` instance with a single `Contact`, it...
The library has a check `can_refresh_access_token` inside which `isinstance(self.scope, (list, tuple))` is checked Otherwise the access token is not refreshed and fails with an error It would be better if...
Hi dear Xero team, We are receiving the following warning from your codebase: ``` DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.6.0. Instead access HTTPResponse.headers directly. ```...