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
Name | Type | Description |
---|---|---|
publisherToken* | string | Your publisher token. To open enterprise account contact us. |
externalId* | string | External ID of customer |
Result Parameters
Name | Type | Description |
---|---|---|
token | string | Customer 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"
}