isTrialAllowed

❗️

Deprecated

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

Parameters

NameTypeDescription
publisherTokenstringYour publisher token. To open enterprise account contact us
customerEmailstringCustomer's email address
offerId*stringOffer ID, e.g. S123123123_US

Result Parameters

NameTypeDescription
trialAvailablebooleanInformation about user eligibility for trial period

API Request/Response

Request

{
  "method": "isTrialAllowed",
  "params": {
    "publisherToken":"CybqkiTFp4gTKYvuBImBXzn86yMo8VY4fyZNdl-CfFhxGDw9",
    "customerEmail":"[email protected]",
    "offerId":"P770818221_FR"
  },
  "id":1,
  "json-rpc":"2.0"
}

Response

{
  "result":{
    "trialAvailable":true
  },
  "id":"1",
  "error":null,
  "jsonrpc":"2.0"
}

ErrorCodes

CodeDescription
3Invalid publisher token
4Invalid offer ID
10Invalid user email