+
+
+
# 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_delete_bank_transfers():
+ api_instance = AccountingApi(api_client)
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+ summarize_errors = 'True'
+ idempotency_key = 'KEY_VALUE'
+
+ bankTransferDelete = BankTransferDelete(
+ bank_transfer_id = "00000000-0000-0000-0000-000000000000",
+ status = "DELETED")
+
+ bankTransfers = BankTransfers(
+ bank_transfers = [bank_transfer])
+
+ try:
+ api_response = api_instance.delete_bank_transfers(xero_tenant_id, bankTransfersDelete, summarize_errors, idempotency_key)
+ print(api_response)
+ except AccountingBadRequestException as e:
+ print("Exception when calling AccountingApi->deleteBankTransfers: %s\n" % e)
+
+
+