Getting Customer Information By Name in JSON-RPC API

To get information on a customer, use the GetPartnerInfo method.

Required parameters

Parameter Purpose Supported values
name The name of the customer to get details for <std::String> String

Sample request

{
    "id": "jsonrpc",
    "jsonrpc":"2.0",
    "visa": "{{visa}}",
    "method":"GetPartnerInfo",
    "params":{
	    "name":"Zeus & Sons"
    }
}

Sample response

{  
    "id":"jsonrpc",
    "jsonrpc":"2.0",
    "result":{  
	"result":{  
	    "AdvancedPartnerProperties":null,
	    "ChildServiceTypes": null,
	    "Company":{  
		"BankAccountNumber":"",
		"BillingContactPersonId":0,
		"ChamberOfCommerceNumber":"111FF1000",
		"FaxNumber":"+121340000",
		"LegalCompanyName":"Zeus & Sons",
		"PhoneNumber":"+234567890000",
		"PostAddress":{  
		    "Address":"1 Godly Road",
		    "City":"Olympus",
		    "Country":"Greece",
		    "ZipCode":"ABC123"
		},
		    "VatNumber":"CY99999999L",
		    "WebsiteAddress":"www.zeus-and-sons.com"
	    },
	    "CreationTime":1464945793,
	    "ExternalCode":"",
	    "Flags":null,
	    "Id":12345,
	    "Level":"Distributor",
	    "LocationId":1,
	    "MailFrom":"",
	    "MailingOption":"Undefined",
	    "Name":"Zeus & Sons",
	    "ParentId":23456,
	    "PrivateFlags":null,
	    "RegistrationOrigin":"Domestic",
	    "State":"InTrial",
	    "TrialExpirationTime":1467537793,
	    "TrialRegistrationTime":1464945793,
	    "Uid":"abcdef-1234-5678-ghij-lmn901e162e9",
	    "UpdatePackagesMaxAllowedVersion":""
	}
    },
    "visa":"{{visa}}"
}