Skip to main content

List Activation Codes

List Activation codes API will return the list of data that match the given query parameters.

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SSMS

GET https://{tenantId}.{hostname}/digitanium/v4/users/{userName}/activationcodes?responseQrType=mpower&qrCode=true

HTTP request URL for SHIFT

GET https://{hostname}/auth/realms/{tenantId}/v3_activationcode/{userName}/?responseQrType=mpower&qrCode=true
note

At this moment, this API is applicable only for SSMS based installations.

note

API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body

No request body fields are required.

Query Parameters (Optional)

Parameter NameTypeDescription
qrCodeBooleanset 'true' to retrieve qr image in base64 format in the response, set 'false' if no need to retrieve.
responseQrTypeStringFormat of the QR code in which you wanted to embed activation code. Set the value 'mpower' to get the mpower qr code format or Set the value to 'normal' to get the normal qr code format.

Response

Field NameTypeDescription
messageStringMessage explains result of the API call. Refer Response status Information for details.
statusStringThe status of the API call. Refer Response status Information for details.
subSystemIntegersubSystem categorizes the type of API that has been called. Refer Subsystem details for details.
dataArrayResponse Data - a list of all activation code informations of the given userId.
activationCodeStringValue of activationcode
activationNotAfterStringTime after activationcode is not valid anymore. Invalid activation codes will be removed after predefined period of time. Follows Epoch time stamp.
codeCountIntegerList of activation codes are available for the user.
userIDStringUserId of user for whom the activationcode was created

Sample Response

{
"subSystem": 5,
"status": "OK",
"message": "Activation codes fetched successfully",
"data": {
"userId": "USER_NAME",
"activationCodes": [
{
"activationNotAfter": "1586901570",
"activationCode": "1827098",
"qrImage": "data:image/png;base64,iVBORw..."
}
],
"codeCount": 1
}
}

Response Status Information

Status CodeStatusMessage
200OKActivation codes fetched successfully
401UnauthorizedHTTP 401 Unauthorized
404Not FoundUser does not exist