Adding customers in JSON-RPC API

To add customers, use the AddPartner method. Customers are added one at a time.

Required parameters

Parameter Description Supported values
partnerInfo A group of parameters related to the partner PartnerInfo, (has child parameters of its own see the PartnerInfo child parameters table below)
createDefaultAccount The type of account to be created

bool Boolean

  • True
  • False

Sample request

{
    "id": "jsonrpc",
    "visa": "{{visa}}",
    "method": "AddPartner",
    "jsonrpc": "2.0",
    "params": {
	"partnerInfo": {
	    "ParentId": 12345,
	    "Name": "Zeus & Sons",
	    "Level": "EndCustomer",
	    "ServiceType": "AllInclusive",
	    "ChildServiceTypes": [
		"AllInclusive"
	    ],
	    "Country": "Greece"
	    }
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
	"result": 55806
    },
    "visa": "{{visa}}"
}