freakboy3742 / pyxero

Python API for accessing the REST API of the Xero accounting tool.
BSD 3-Clause "New" or "Revised" License
280 stars 209 forks source link

XERO Delete connection with connection id #307

Closed anton000v closed 3 years ago

anton000v commented 3 years ago

I want to allow deleting specific tenant from my api but every time I make DELETE request to https://api.xero.com/connections/{connectionId} with my access token I get "AuthenticationUnsuccessful". Furthemore, when I change DELETE to GET I recieve all active connections properly :/ How can I resolve this problem?

anton000v commented 3 years ago

Solved the problem with the help of Xero developers. We have to set the connection id instead of the authEventId