Authenticated: Commerce/Transactions/History
Greyfus.4613:
Evening,
I’m here to discuss a “issue” that I’m encountering in:
Authenticated: Commerce/Transactions/History API
I’m accessing via HTML and programmatic, both returning only around 7 days past, and not 90 as told in:
https://wiki.guildwars2.com/wiki/API:2/commerce/transactions.
I want to know why, and how to fix that.
Ty for now
:D
Lawton Campbell.8517:
Seems like a documentation issue. The endpoint is actually paginated, and respects both the page_size and page query parameters. Try using ?page_size=200&page=0 to start, then increment page until it stops returning results.
Greyfus.4613:
I’m trying this:
https://api.guildwars2.com/v2/commerce/transactions/history/buys?page_size=200&page=0?access_token=[API_KEY]
And gettings this:
{"text":“endpoint requires authentication”}
Lawton Campbell.8517:
That second ? should be an &, e.g.
https://api.guildwars2.com/v2/commerce/transactions/history/buys?page_size=200&page=0&access_token=[API_KEY]
Greyfus.4613:
Thank you for the answer!
It’s working as I expected.