+
+
+
# configure api_client for use with xero-python sdk client
+api_client = ApiClient(
+ Configuration(
+ debug=false,
+ oauth2_token=OAuth2Token(
+ client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
+ ),
+ ),
+ pool_threads=1,
+)
+
+api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
+
+def accounting_get_tax_rate_by_tax_type():
+ api_instance = AccountingApi(api_client)
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+ taxType = 'INPUT2'
+
+ try:
+ api_response = api_instance.get_tax_rate_by_tax_type(xero_tenant_id, taxType)
+ print(api_response)
+ except AccountingBadRequestException as e:
+ print("Exception when calling AccountingApi->getTaxRateByTaxType: %s\n" % e)
+
+
+