Reward
This endpoint is used to manage various reward-related actions such as claiming coins, updating equipped skins, and granting skin profit.
URL: https://api.idosgames.com/api/[titleTemplateId]/[titleId]/Client/Reward/
ClaimCoinReward
Purpose: Allows a user to claim a coin reward.
URL:
Method: POST
Request Parameters (JSON body):
IntValue
(int): The value of the coins to claim.Points
(int, optional): Points associated with the claim.
Responses:
200 OK
: Successful claim. Returns the updated user data.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "Invalid value".
Example Usage:
Request:
Response:
ClaimX3CoinReward
Purpose: Allows a user to claim a 3x coin reward.
URL:
Method: POST
Request Parameters (JSON body):
IntValue
(int): The value of the coins to claim.Points
(int, optional): Points associated with the claim.
Responses:
200 OK
: Successful claim. Returns the updated user data.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "Invalid value".
Example Usage:
Request:
Response:
ClaimX5CoinReward
Purpose: Allows a user to claim a 5x coin reward.
URL:
Method: POST
Request Parameters (JSON body):
IntValue
(int): The value of the coins to claim.Points
(int, optional): Points associated with the claim.
Responses:
200 OK
: Successful claim. Returns the updated user data.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "Invalid value".
Example Usage:
Request:
Response:
ClaimCoinWithSkinReward
Purpose: Allows a user to claim a coin reward along with skin profits.
URL:
Method: POST
Request Parameters (JSON body):
IntValue
(int): The value of the coins to claim.Points
(int, optional): Points associated with the claim.
Responses:
200 OK
: Successful claim. Returns the updated user data.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "Invalid value".
Example Usage:
Request:
Response:
UpdateEquippedSkins
Purpose: Allows a user to update their equipped skins.
URL:
Method: POST
Request Parameters (JSON body):
ItemIDs
(JArray): List of item IDs to be equipped.
Responses:
200 OK
: Skins updated successfully. Returns a success message.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "args or arrayItemIds is null".
Example Usage:
Request:
Response:
GrantSkinProfitFromEquippedSkins
Purpose: Grants the user profit based on equipped skins.
URL:
Method: POST
Request Parameters (JSON body):
Multiplier
(int): Multiplier for the profit to be granted.
Responses:
200 OK
: Profit granted successfully. Returns a success message.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "Invalid multiplier".
Example Usage:
Request:
Response:
ClaimCoinRewardWithReferral
Purpose: Allows a user to claim a coin reward with a referral bonus.
URL:
Method: POST
Request Parameters (JSON body):
IntValue
(int): The value of the coins to claim.Points
(int, optional): Points associated with the claim.
Responses:
200 OK
: Successful claim. Returns the updated user data.400 Bad Request
: Incorrect request parameters. Returns an error message, e.g., "Invalid value".
Example Usage:
Request:
Response:
Last updated
Was this helpful?