Expand Merchant Data - Python Get Request

(Matteo) #1

Hi guys,

I am querying transactions through requests. A sample call would be

transaction = requests.get(https://api.monzo.com/transactions/{transaction_id}, headers=bearer_token).json()

Everything works fine. I am trying to expand merchant data as well, but I am not sure how to translate the API documentation into a functionable get call.

Hopefully somebody can help me out.

(Matteo) #2

Solved it with ?expand[]=merchant after {transaction_id} leaving it here for somebody in the same situation

5 Likes