generateCustomerTokenFromTransactionId

❗️

Deprecated

This JSON-RPC method is deprecated.

This API call was build to help you with Roku, or any other TV App integration. Customer make a purchase with Mobile or PC. We share the transactionId within the receipt. Access to content in your TV application is based on the transactionId, based on which you can generate the entitlement.

Parameters

NameTypeDescription
transactionId*stringCustomer can find it in receipt as Receipt No, e.g. T123123123

API Request/Response

Request

{
  "method":"generateCustomerTokenFromTransactionId",
  "params":{
    "transactionId":"T868148526"
  },
  "jsonrpc":"2.0",
  "id":1
}

Response

{
  "result":{
    "token":"RivoGQJk7vAT27puAXmJpVgFuKlP7fJzX2D4Eha32L5dRfYC"
  },
  "id":"1",
  "error":null,
  "jsonrpc":"2.0"
}