Parameters:
Possible Parameters are :
Root Level Name[Optional]
LevelID[Optional]
Location Name/Code[Optional]
Country[Optional]
Location Details with Hierarchical Org Structure in Breadcrumb/Flat Format :
{ "Level: : "By Geography/By Country", "LocationId": "1234", "LocationCode": "Test", "LocationName": "Test", "Address": "Test", "City": "Test", "State": "Test", "Country": "Test", "Zip": "765432" }
2. Location Details with Hierarchical Org Structure : [@RootNode Name - Mandatory]
{ "Levels": [ [ "By Division", "Sub Level 1", "Sub Level 2" ], [ "By Geography", "Sub Level 11" ], [ "By Distribution", "Sub Level 21", "Sub Level 22", "Sub Level 23", "Sub Level 24" ] ], "Details": { "LocationId" :"1234", "LocationCode": "Test", "LocationName": "Test", "Address": "Test", "City": "Test", "State": "Test", "Country": "Test", "Zip": "765432" } "Levels": [ [ "By Division", "Sub Level 1", "Sub Level 2" ], [ "By Geography", "Sub Level 11" ], [ "By Distribution", "Sub Level 21", "Sub Level 22", "Sub Level 23", "Sub Level 24" ] ], "Details": { "LocationId" :"1234", "LocationCode": "Test", "LocationName": "Test", "Address": "Test", "City": "Test", "State": "Test", "Country": "Test", "Zip": "765432" } }
3. Org Details [@RootName - mandatory] - Only Level information shown with ID. No location information. For mapping to location we need to call location API with the LevelName & LevelID
{ "LevelDetails": [ { "LevelName": "By Divison", "Id": "1001", "ParentId": "1001", "ParentLevel": "By Division" }, { "LevelName": "Sales", "Id": "1002", "ParentId": "1001", "ParentLevel": "ByDivision" }, { "LevelName": "Canada", "Id": "1003", "ParentId": "1002", "ParentLevel": "Sales" }, { "LevelName": "India", "Id": "1004", "ParentId": "1002", "ParentLevel": "Sales" }, { "LevelName": "US", "Id": "1005", "ParentId": "1002", "ParentLevel": "Sales" }, { "LevelName": "CustomerSuccess", "Id": "1006", "ParentId": "1001", "ParentLevel": "ByDivision" } ] }