Redeem Code

Activate a code

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
Redeem Code from DB RequestobjectRequired
OR
Redeem Code Direct RequestobjectRequired

Response

This endpoint returns an object.
type"ActivationReceipt"
idinteger
Unique ID of this receipt
createdAtdatetime
When this receipt was created
warningboolean
True if this activation was performed without a full receipt
tookinteger
How long the activation took in milliseconds
playerIdstring
ID of the player to whom this activation was made
codestring
The redemption code that was used
openidstring

Internal ID of the player (NOT the player’s primary ID)

namestring

The player’s name in-game

gameIdenum
Game ID
Allowed values:
userIdinteger or null
ID of the user who owns this receipt
regionstring or null

Two-letter country code of the player’s country

productNamestring or null
The product name that is displayed in the receipt. Usually matches the amount
amountinteger or null
Pack denomination
uidstring or null
MidasBuy ID of the activating account. Usually null for Garena.
emailstring or null

Email of the Midasbuy account that performed the activation. For Garena: internal ID of the player’s account.

passwordstring or null

Password of the Midasbuy account that performed the activation. For Garena: session token used for the activation.

Errors