Fetching a Complete Hierarchy (Parent, Child, Grandchild)

Use this API to fetch a complete hierarchy, using the query parameter ?getChildren=ALL

QueryParams: getallchildren

Value: ALL

URI: https://host:port/siebel/v1.0/data/Account/Account?getChildren=ALL

HTTP Method : GET

Content-Type: application/json

Authorization: Basic

Partial Response Body :

{
    "YTD Sales": "",
    "Contact Id": "0CR-1MF5Z6",
    "Total Potential Volume Currency Code": "USD",
    "Primary Contact Id": "0CR-1MF5Z6",

    ........
    "Contact": [{
            "Income Expenses Ownership Value": "",
            "Primary Personal Address Indicator": "",
            "DeDup Key Modification Date": "",
            "Since Date": "",
            "My Position Id": "0-5220",
            "AssetLiab Ownership Value": "",
            "ID Type": ""
        },
        {
            "Last Name": "ABRAHAM",
            "Provider Flag": "N",
            .......
            "Primary Assignment Manual Flag": "N",
            "Id": "0CR-1MF5Z6",
            "Login Name": "MAYABRAH",
            "Since Date": "",
            "My Position Id": "0-5220",
            "AssetLiab Ownership Value": "",
            "ID Type": ""
        }
    ],
    "Person": [{
            "Party Name": " SINGH, DARWIN",
            "Account Id": "88-26CND",
            "Primary Position Id": "0-5220",
            "Joined Account Id": "88-26CND",
            "Party UId": "88-34IB1D",
            "Account Primary Ship To Address Id": "",
            "Employee Row Id": "88-34IB1D",
            "Primary Personal Payment Profile Id": "",
            "Work Phone #": "",
            "New Responsibility": "Siebel Administrator",
            "Employee Flag": "Y",
            "Job Title": "",
            "Start Date": "01/30/2023",
            "User Type": "",
            "Party Type Code": "Person"

        },
        {
            "Party Name": "ABRAHAM, MAYA",
            "Account Primary Ship To Person Id": "",
            "Account Id": "88-26CND",
            "Primary Position Id": "0-5220",
            "Login Domain": "",
            "Thumbnail Source Path": "",
            "Status": "",
            "Image Source Path": "",
            "Id": "0CR-1MF5Z6",
            "Personal Contact": "N",
            "Account Price List Id": "",
            "Joined Account Id": "88-26CND"

        }
    ],
    "Link": [{
            "rel": "self",
            "href": "https://host:port/siebel/v1.0/data/Account/Account/88-26CND",
            "name": "Account"
        },
        {
            "rel": "canonical",
            "href": "https://host:port/siebel/v1.0/data/Account/Account/88-26CND",
            "name": "Account"
        }
    ]
}