+ Start a Discussion
MKAMKA 

How can we fetch Account data using standard rest APIs?

How can we fetch Account data using standard rest APIs?
Best Answer chosen by MKA
RituSharmaRituSharma
You may query contacts as inner query or you may fire a separate get request as well.

/services/data/v46.0/query?q=select+Id,Name,(Select+Id+from+Contacts)+from+Account+WHERE+SystemModStamp>=2019-11-10T20:12:37.000%2B0000

All Answers

RituSharmaRituSharma
External system can use get method and fire query like below to get the accounts data:

/services/data/v46.0/query?q=select+Id,Name+from+Account+WHERE+SystemModStamp>=2019-11-10T20:12:37.000%2B0000
MKAMKA
Thanks for the prompt response! How can I query contacts as well?
RituSharmaRituSharma
You may query contacts as inner query or you may fire a separate get request as well.

/services/data/v46.0/query?q=select+Id,Name,(Select+Id+from+Contacts)+from+Account+WHERE+SystemModStamp>=2019-11-10T20:12:37.000%2B0000
This was selected as the best answer