Enumerating child customers

To get the list of child customers for your own company or your customers, use the EnumerateChildPartners method.

Required parameters

ParameterDescriptionSupported values
partnerIdThe ID of the customer<int> Integer
rangeProvide a display range of how many child customers to display

<

std::size_t>

partnerFilterProvide additional criteria to filter the list of child customers by

PartnerTreeFilter, (has child parameters of its own see the

PartnerTreeFilter Child Parameters

table below)

PartnerTreeFilter Child Parameters

ParameterDescriptionSupported values
StatesAn array to chose from of the state of the customerPartnerState::Enum
  • Undefined
  • Registered
  • InProduction
  • Rejected
  • InTrial
  • NotActive
  • WaitingForProduction
  • Expired
  • Count
NamePatternFilter child customer names by specific text<std::string>
LevelsAn array of customer levelsPartnerLevel::Enum
  • Undefined
  • Root
  • SubRoot
  • Distributor
  • SubDistributor
  • Reseller
  • EndCustomer
  • Site
  • Count
SortOrderAn array of ways of sorting the resultsPartnerTreeSortOrder::Enum
  • Undefined
  • ById
  • ByName
  • ByLevelAndName
  • ByCreationTime
  • Count

Sample request

{
    "id": "jsonrpc",
    "visa": "{{visa}}",
    "method": "EnumerateChildPartners",
    "jsonrpc": "2.0",
    "params": {
	    "partnerId": 12345
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
	"result": {
	    "ActualChildCount": 7,
	    "Children": null,
	    "Info": {
		"AdvancedPartnerProperties": {
		    "RegionId": 8
		    },
		"ChildServiceTypes": [
		    "AllInclusive",
		    "SoftwareOnly"
		],
		"Company": {
		    "BankAccountNumber": "0",
		    "BillingContactPersonId": 019283,
		    "ChamberOfCommerceNumber": "",
		    "FaxNumber": "",
		    "LegalCompanyName": "Zeus & Sons",
		    "PhoneNumber": "",
		    "PostAddress": {
			"Address": "x",
			"City": "x",
			"Country": "NL",
			"District": "",
			"State": "",
			"ZipCode": ""
		},
		"VatNumber": "AB123 456789",
		"WebsiteAddress": ""
	    },
	    "CreationTime": 1879064897,
	    "ExternalCode": "",
	    "ExternalPartnerProperties": {
		"GreatPlainsId": 09876,
		"Properties": [
		    [
			"AutomaticPaymentStatus",
			"0"
		    ]
		]
	    },
	    "Flags": [
		"HasCustomBranding"
	    ],
	    "Guid": "123a4567-8901-2bcd-ef34-56g7h89i0123",
	    "Id": 1,
	    "Level": "Root",
	    "LocationId": 1,
	    "MailFrom": "[email protected]",
	    "Name": "IASO",
	    "ParentId": 0,
	    "PrivateFlags": null,
	    "RegistrationOrigin": "Undefined",
	    "ServiceType": "AllInclusive",
	    "State": "InProduction",
	    "TrialExpirationTime": 0,
	    "TrialRegistrationTime": 0,
	    "Uid": "z09yxw87-6v5u-4ts3-rq2p-o10nm987l6k5j4"
	    }
	}
    },
    "visa": "{{visa}}"
}

Did this page help you?