namaggarwal / splitwise

Python SDK for Splitwise
MIT License
183 stars 46 forks source link

Add default currency code or update docs #80

Closed Raphtor closed 1 year ago

Raphtor commented 1 year ago

For some reason, I am getting the error

{'base': ['Currency code Splitwise does not support the given currency code']}

When trying to create an expense without explicitly setting the currency code. Previously this was not an issue, and I suspect something changed in the Splitwise API.

Mencucci commented 1 year ago

As of right now, the splitwise documentation at https://dev.splitwise.com/#tag/expenses/paths/~1create_expense/post does not mark the currency_code field as required. Image below of the documentation taken just now image

I am running into the same error and failing to create an expense. Will try to add currency code and update later

Mencucci commented 1 year ago

Adding e.setCurrencyCode("EUR") in my code made the request go through, now the expense shows up on the Splitwise app on my phone.

+1 on official and SDK's documentation being outdated

namaggarwal commented 1 year ago

Fixed in v3.0.0