Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Support transactions within spaces #128

Open
stevenleeg opened this issue Mar 6, 2023 · 2 comments
Open

Support transactions within spaces #128

stevenleeg opened this issue Mar 6, 2023 · 2 comments

Comments

@stevenleeg
Copy link
Contributor

stevenleeg commented Mar 6, 2023

I'm relatively new to the N26 API so forgive me if I'm lacking context here, but is there any way to query transactions that occur within spaces? According to the PSD2 documentation the main transactions endpoint only returns transactions from the main space. Unfortunately I don't see any other information about accessing data within spaces, and it appears the current n26 spaces command is broken which leads me to believe they've shuffled their API around.

The data shows up in the app, so clearly there is some way of accessing it, but I'm guessing it will require some sleuthing rather than a clearly defined API endpoint. Is there a standard procedure for figuring out how these undocumented APIs work?

@stevenleeg
Copy link
Contributor Author

stevenleeg commented Mar 7, 2023

Update: I've been doing a bit of digging myself and am finding some less than encouraging results. At the suggestion of N26's responsible disclosure page, I started looking around at the API requests being made by their web app. Unfortunately it looks like everything there is using a different GraphQL API at app.n26.com, including a getSpaceTransactions query which has the data I'm looking for here.

Unfortunately it sounds like getting that GraphQL API working is quite the challenge as the folks over at the golang implementation have discovered. It looks like there's some wonky public/private key stuff going on for each request that may prove challenging to reverse engineer (details here). It does seem possible though, just not straightforward.

If anyone has any other details/hints about how we might go about doing something like this feel free to add to this thread. It seems like eventually switching to the GraphQL is the way to go unless I'm missing something.

@tranb3r
Copy link

tranb3r commented Mar 7, 2023

Why don't you use the mobile app API ?
I've detailed the queries here: #110 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants