Skip to main content

Loyalty Access Token

Represents the structure of the loyalty access token used by the client to interact with the Loyalty SDK. It includes the access token and additional details required for client authentication.

accessTokenstringrequired

The newly-obtained access token.

Example: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjb0ZFWEluRGNHamltcTJQUXhaSDJjbXRpYmd1eDJhOGhYLTZxQ0JDT0xzIn0...
expiresInnumber

The lifetime of the access token, in seconds.

Example: 900
tokenTypestringrequired

The type of the token. Currently only bearer tokens are emitted.

Possible values: [Bearer]

Example: Bearer
scopestring

The effective scope of the newly-obtained token.

Example: loyalty
Loyalty Access Token
{
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjb0ZFWEluRGNHamltcTJQUXhaSDJjbXRpYmd1eDJhOGhYLTZxQ0JDT0xzIn0...",
"expiresIn": 900,
"tokenType": "Bearer",
"scope": "loyalty"
}