You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users perhaps needs to submit the financialyear value while retrieving an account.
An example of such account retrieving end-point is provided: https://api.fortnox.se/3/accounts/1010?financialyear=4
However, the retrieve() method of AccountService does not accept additional arguments like list() methods. It only accepts id.
def retrieve(self, id):
"""
Retrieve a single Accounts
Returns a single Account according to the unique Account ID provided
If the specified Account does not exist, this query returns an error
:calls: ``get /accounts/{id}``
:param int id: Unique identifier of a Account.
:return: Dictionary that support attriubte-style access and represent Accounts resource.
:rtype: dict
"""
_, _, account = self.http_client.get("/accounts/{id}".format(id=id))
return account
The text was updated successfully, but these errors were encountered:
prantoamt
pushed a commit
to prantoamt/pyfortnox
that referenced
this issue
Oct 28, 2021
* helper function added to collect all items of paginated response
* account services list method modified to get all paginated items
* account service retrieve method modified to fix issue #73
* param name changed to kwargs
Co-authored-by: badiuzzaman <[email protected]>
Users perhaps needs to submit the
financialyear
value while retrieving an account.An example of such account retrieving end-point is provided:
https://api.fortnox.se/3/accounts/1010?financialyear=4
However, the
retrieve()
method of AccountService does not accept additional arguments likelist()
methods. It only acceptsid
.The text was updated successfully, but these errors were encountered: