Skip to main content
Version: 5.7.0

SysAwardProductToUser

Awards the specified user the product item rewards without requiring a purchase (free, no purchase transaction recorded).

ServiceOperation
appStoreSYS_AWARD_PRODUCT_TO_USER

Method Parameters

ParameterDescription
profileIdProfile ID of the user to be awarded the product.
itemIdItem ID of the product to be awarded.
quantityQuantity of item to be awarded. Limited to 1 at this time.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"userItemRewards": {
"sword001": {
"17311754-f610-4a20-9934-3c9d255874e3": {
"itemId": "17311754-f610-4a20-9934-3c9d255874e3",
"quantity": 1
}
}
},
"extra": {
"customAttr": "value"
},
"currency": {
"bar": {
"consumed": 0,
"balance": 10,
"purchased": 0,
"awarded": 10,
"revoked": 0
},
"coins": {
"consumed": 0,
"balance": 24,
"purchased": 0,
"awarded": 24,
"revoked": 0
}
},
"serverTime": 1739486770269,
"rewards": {
"extra": {
"customAttr": "value"
},
"currency": {
"bar": 10
},
"items": {
"sword001": {
"defId": "sword001",
"quantity": 1
}
}
}
},
"status": 200
}