Credit() API

This would be similar to the Debit API Request. This API request is made to credit a currency amount to a player’s account balance. This is made every time a player wins a monetary value from the games. Its response would contain the information of all credited amounts.

Credit() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/credit
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
    "token": "cc918a3e4dea45ef5c31d6e3b9dce4afed3c02eb",
    "account_id": "259823",
    "amount": 2500,
    "amount_type": "real",
    "currency": "GBP",
    "game_id": 1,
    "transaction_id": "123456",
    "round_id": 198909,
    "game_type": "slots",
    "game_name": "testgamename",
    "note": "credit",
    "round_end_state": true,
    "bonus_id": "test2147hff",
    "isfreespin": true
}

ParametersTypeDescription
tokenStringUnique string assigned to each player (session ID).
account_idStringAccount ID of the player
amountIntegerAmount to be credited to player's wallet. Amount will be sent in cents (amount * 100)
amount_typeStringIndicate type of amount type. It can be real / promo_freespin.
currencyStringCurrency of the player
game_idIntegerUnique ID of the game
transaction_idStringUnique id of the transaction
round_idBigint unsignedRound ID of each play / spin.
game_typeStringType of the game. slots / table_games / scratch_cards / bingo
game_nameStringName of the game
noteStringExtra information about the credit request
round_end_stateBooleantrue indicates round is closed
false indicates round is open
bonus_idStringProvider will send the bonus / campaign ID which is related to the promotional freespins. It will be null when it is in real mode.
isfreespinsBooleantrue indicates it is a freespin.
false indicates it is not a freespin.

Credit() Response + Example

{
	"status": 0,
	"account_id": "123123",
	"country": "US",
	"token": "3c2ef39d02581e2db3ddf6c713e83e05",
	"balance": 12345,
	"currency": "USD",
	"transaction_id": "205354854449856",
	"bonus_amount": "10"
}
Object/Key in Response ObjectTypeDescription
statusIntegerResponse status
account_idStringAccount ID of the player.
countryStringCountry of the player
tokenStringUnique string assigned to each player (session ID
balanceIntegerBalance of the player. Balance should be in cents format(balance * 100)
currencyStringCurrency of the player
transaction_idStringCredit transaction ID
bonus_amountIntegerBonus amount available in player’s wallet. If this amount is not available please send 0 value.