generateCustomerTokenFromTransactionId()


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:

Name Type Description
transactionId string Customer can find it in receipt as Receipt No, e.g. T123123123

- required parameter


Request:

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

Response:

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

Remember! you can always check it by yourself using API Console - generateCustomerTokenFromTransactionId()

Back to Customer API


We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.