❗️JSON-RPC API is deprecated.
The method will verify if a user with a given email exists in the database and purchased a specified offer in the past
| Name | Type | Description | 
|---|
| publisherToken | string | Your publisher token. To open enterprise account contact us | 
| customerEmail | string | Customer's email address | 
| offerId* | string | Offer ID, e.g. S123123123_US | 
 
| Name | Type | Description | 
|---|
| trialAvailable | boolean | Information about user eligibility for trial period | 
 
{
  "method": "isTrialAllowed",
  "params": {
    "publisherToken":"CybqkiTFp4gTKYvuBImBXzn86yMo8VY4fyZNdl-CfFhxGDw9",
    "customerEmail":"[email protected]",
    "offerId":"P770818221_FR"
  },
  "id":1,
  "json-rpc":"2.0"
}
 
{
  "result":{
    "trialAvailable":true
  },
  "id":"1",
  "error":null,
  "jsonrpc":"2.0"
}
 
| Code | Description | 
|---|
| 3 | Invalid publisher token | 
| 4 | Invalid offer ID | 
| 10 | Invalid user email |