Getting customer info 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": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000", "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 Blah Road", "City":"Small City", "Country":"Greece", "ZipCode":"ABC123" }, "VatNumber":"CY99999999L", "WebsiteAddress":"www.zeus-and-sons.com" }, "CreationTime":1464945793, "Discount":0, "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":"33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000" }