I have integrate the iOS SDK and its working fine with Payment process. After payment successfully done I am getting transaction_id and other 2 ids.
So now, I want to list all the transactions https://docs.connect.squareup.com/api/connect/v2/#endpoint-listtransactions I have Application ID and Personal Access Token of my app.
I referred Square Connect API. But it requires location_id to be passed with the HTTP request https://docs.connect.squareup.com/api/connect/v2/#endpointpaths
I don’t know from where I get the location_id of my app. Once I get location_id I can make request and get all transactions and then I can make refund request as well.
Any suggestions/Help ?
In order to get your
location_id
you should call the locations endpoint and pick which location you'd like to make the requests on the behalf of.