generateCustomerTokenFromExternalId

❗️

Deprecated

Customer token authentication is deprecated. JWT with MediaStore SDK API is recommended instead for endpoints related to customers.

Method for generating customer token based on customer external ID. Customer has to be created prior by registerCustomer method.

🚧

Enterprise account required. Contact us if you're interested about opening Enterprise account.

Parameters

NameTypeDescription
publisherToken*stringYour publisher token. To open enterprise account contact us.
externalId*stringExternal ID of customer

Result Parameters

NameTypeDescription
tokenstringCustomer token used to identify the user

API Request/Response

Request

{
  "method": "generateCustomerTokenFromExternalId",
  "params": {
    "publisherToken": "XIrx-SjTLVMCsaRSOf2q2hvWKOlrf57yHknDRRRMX-1RfQ7",
    "externalId": "852571649209748B",
    },
 "jsonrpc": "2.0",
 "id": 1
}

Response

{
  "result": {
    "token": "PoJ4JGMg70AJmYgZZOIRhSMKsx0hVEhtVbZY7x4m2OBfEdUG"
  },
  "id": "1",
  "jsonrpc": "2.0"
}