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 Request
OR
Redeem Code Direct Request
Response
This endpoint returns an object.
type
id
Unique ID of this receipt
createdAt
When this receipt was created
warning
True if this activation was performed without a full receipt
took
How long the activation took in milliseconds
playerId
ID of the player to whom this activation was made
code
The redemption code that was used
openid
Internal ID of the player (NOT the player’s primary ID)
name
The player’s name in-game
gameId
Game ID
Allowed values:
userId
ID of the user who owns this receipt
region
Two-letter country code of the player’s country
productName
The product name that is displayed in the receipt. Usually matches the amount
amount
Pack denomination
uid
MidasBuy ID of the activating account. Usually null for Garena.
email
Email of the Midasbuy account that performed the activation. For Garena: internal ID of the player’s account.
password
Password of the Midasbuy account that performed the activation. For Garena: session token used for the activation.