how to query multiple endpoints with curl on sdata web serivce

618 Views Asked by At

I am trying make a request query to Sage sdata web service to the following endpoints tradingActivites and receipts as nothing is obvious on these docs

I have this so far localhost:5493/sdata/accounts50/GCRM/-/tradingActivities?where=accountReference eq "1200" &format=json that gives me all the transactions of this account but I also need the information from receipts endpoint as well.

Is it better to do two curl requests or what would be the correct syntax for querying this type of web service in the URL. Thank you for reading this any help would be appreciated.

1

There are 1 best solutions below

6
On

You would need to do two curl requests to get the data you need and then do whatever matching of data you need in PHP.

This is based off the information I have unless you can look through the docs and get a method that provides all the data you need.