Skip to main content

Achievement Service Events 0.1.0 documentation

Published Messages (achievement)

The service publishes one of these messages below.

userAchievementUnlocked

Contains fields from event and the following payload.

Example value
{
"payload": {
"userAchievement": {
"userId": "string",
"namespace": "string",
"achievementCode": "string",
"status": 0,
"achievedAt": 0,
"statCode": "string"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

payload

NameTypeDescription
userAchievementobject-
payload.userAchievement
NameTypeDescription
userIdstring-
namespacestring-
achievementCodestring-
statusinteger-
achievedAtinteger-
statCodestring-

globalAchievementUnlocked

Contains fields from event and the following payload.

Example value
{
"payload": {
"globalAchievement": {
"achievementCode": "string",
"namespace": "string",
"status": 0,
"achievedAt": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

payload

NameTypeDescription
globalAchievementobject-
payload.globalAchievement
NameTypeDescription
achievementCodestring-
namespacestring-
statusinteger-
achievedAtinteger-

achievementRewardClaimed

Contains fields from event and the following payload.

Example value
{
"payload": {
"achievementRewardClaimed": {
"userId": "string",
"achievementCode": "string",
"namespace": "string",
"status": 0,
"achievement": 0,
"claimedAt": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}

payload

NameTypeDescription
achievementRewardClaimedobject-
payload.achievementRewardClaimed
NameTypeDescription
userIdstring-
achievementCodestring-
namespacestring-
statusinteger-
achievementinteger-
claimedAtinteger-

Schemas

event

NameTypeDescription
idstring-
versioninteger-
namestring-
namespacestring-
timestampstring (date-time)-
clientIdstring-
userIdstring-
traceIdstring-
sessionIdstring-