isTrialAllowed

The method will verify if a user with a given email exists in the database and purchased a specified offer in the past

📘

You can try that method by clicking here

Parameters

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

Result Parameters

Name

Type

Description

trialAvailable

boolean

Information 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

Code

Description

3

Invalid publisher token

4

Invalid offer ID

10

Invalid user email