Getting Customer State in JSON-RPC API

To get the current State of a customer using the customer's ID, use the GetPartnerState method.

Required parameters

Parameter Description Supported values
partnerId

The ID of the customer the device is created for (retrieved through the GetPartnerInfo method)

<std::string>

Sample request

{
    "id": "jsonrpc",
    "visa": "{{visa}}",
    "method": "GetPartnerState",
    "jsonrpc": "2.0",
    "params": {
	"partnerId": 123456
    }
}

Sample response

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