Callbacks
Credit and Debit

Callback Action: debit/credit

Depending on the callback action you should credit/debit your player's balance for the amount given on callback.

If player does not have enough balance on debit action, you should return the insufficient balance response (error: 1) like shown below.

The call_id is a unique id sent with each callback and can be considered the transaction id.

Important note

You should allow credit action and debit action independently of each other.

There are cases where a credit callback can be sent without first sending a debit callback, per example in case of rollback/refund system activated.

In some game providers there may be occurances where new round_id is made on each game action, for example when bonus game won on some providers this might be sent as individual game rounds and will thus only send credit action.

This may also affect gameplay_final in particular cases.

Requests

Requests are sent as GET to your callback url, specified on your API key.

Spin Callback

{
  "amount": 100,
  "balance_required": 100,
  "username": "yourPlayerId9959",
  "currency": "USD",
  "action": "debit",
  "gameplay_final": 1,
  "gamesession_id": "390d5c800eee4782b3b1bd0169d5213199e72a3d76d3dbb4ae03dc7b9bbdb6c6faba19e1a8a49953ce1bcbb72ec68ab98275063a81859bc40934f798649c6d04",
  "type": "spin",
  "round_id": "312875958396",
  "session_id": "338e7afbfc0a04c9383e86c198819009",
  "game_id": "onlyplay/LigaFortunaMegaways",
  "call_id": "f51fce58-2e0e-461b-8a0c-87ecba0600c2",
  "remote_id": "32",
  "timestamp": "1696463565",
  "key": "4e54de0b17adf322365c0540bd7db57a"
}

Free Round Spin Callback

This callback is sent when player is playing on gifted free rounds, after using the addFreeRounds method.

You should not deduct a player's balance on debit callbacks when type variable is set to bonus_fs.

{
  "amount": 25,
  "balance_required": 0,
  "currency": "CAD",
  "action": "debit",
  "gameplay_final": 0,
  "gamesession_id": "bff5583a93164d0ad824de9a529836d2",
  "type": "bonus_fs",
  "round_id": "1074911949",
  "session_id": "bff5583a93164d0ad824de9a529836d2",
  "game_id": "platipus/luckycat",
  "username": "wmlmhohuhfs",
  "call_id": "6ce7154b-be61-4bab-b5a6-642488064c41",
  "remote_id": "52874",
  "operator_id": 24,
  "timestamp": "1696463565",
  "key": "ed3a34c119wec67fb8e37691b5885f0",
  "freespins": {
      "total": 20,
      "performed": 3
  }
}

Responses

Balance must be returned as integer and in cents, that means if your player's balance is 2.50$ this should be returned as 250.

Succesful Response

  {
    "error": 0,
    "balance": 500
  }

Insufficient Balance

  {
    "error": 1,
    "balance": 500
  }

Processing Error (for example player not found or invalid signature)

  {
    "error": 2,
    "balance": 0
  }