How to fetch the master data using list API

Hey all,

I am using the list API to fetch all the data related to a specific entry (an organization in my case).
I am referring to this API:
https://frappeframework.com/docs/user/en/guides/integration/rest_api/listing_documents

When I click on an organization, it takes me to this page (as shown in the screenshot below). However, when I call the API to get the details of a particular organization, it only returns the details tab info but not the address and contact information.


Here is the response:
“data”: {
“name”: “org”,
“owner”: “xx”,
“creation”: “xx”,
“modified”: “xx”,
“modified_by”: “xx”,
“docstatus”: 0,
“idx”: x,
“naming_series”: “xx”,
“customer_name”: “xx”,
“customer_type”: “xx”,
“customer_group”: “xx”,
“default_currency”: “INR”,
“is_internal_customer”: 0,
“language”: “en”,
“custom_preferred_billing_frequency”: “”,
“gst_category”: “xx”,
“default_commission_rate”: 0.0,
“so_required”: 0,
“dn_required”: 0,
“is_frozen”: 0,
“disabled”: 0,
“doctype”: “Customer”,
“sales_team”: ,
“custom_sector”: ,
“portal_users”: ,
“credit_limits”: ,
“accounts”: ,
“custom_product_type”: ,
“companies”: ,
“address and contact”: {}
}
How can I retrieve the address, contact details, and other tabs’ information?

You will have to make another API call.
First you have to add the address to the Supplier Primary Address field so that you get the link to the address.

Or if you want it in a single call you can write a custom method and call it.

(Introduction)