{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/","auth":"required","examples":{"codes":[{"language":"json","code":"{\n    \"event\": \"gameSessionEnd\",\n    \"endEpochMillis\": 1359669915000,\n    \"dateEnd\": \"2014-09-16T09:14:36.8976761Z\",\n    \"gameSessionIdentifier\": \"e0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6\",\n    \"gameSessionId\": 5347,\n    \"transactionId\": 45678,\n    \"index\": 1770,\n    \"gameId\": 42,\n    \"isFreeCampaignGameWithPrize\" : false,\n    \"players\": [\n        {\n            \"playerIdentifier\": \"e0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6\",\n            \"playerPartnerIdentifier\": \"123456-FF\",\n            \"transactionId\": 45679,\n            \"buyTransactionId\": 23456,\n            \"rank\": 0,\n            \"currencyISO4217\": \"DKK\",\n            \"moneyWon\": 1600,\n            \"coinsWon\": 0,\n            \"jackpotIndentifierWon\": \"e0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6\",\n            \"jackpotContribution\": 10,\n            \"jackpotGuaranteePercentage\": 0.1,\n            \"jackpotMajorPercentage\": 0.4,\n            \"jackpotMinorPercentage\": 0.5,\n            \"jackpotPrizeWon\": 0,\n            \"jackpotMinorPrizeWon\": 0,\n            \"loyaltyPoints\": 2500,\n            \"partnerGameRequestId\": \"7475\",\n            \"partnerGameRequestIdentifier\": \"7475\",\n            \"freespinsWon: 10\",\n            \"freespinsWonBatchId: 6\",\n            \"freespinsValueOfWonSpins\": 500,\n            \"freespinsLeft\" : 0,\n            \"freespinsSpent\" : 5,\n            \"freespinsBatchId\" : 1,\n            \"freespinsValueOfSpins\": 500,\n            \"freespinsValueOfWinnings\": 450,\n            \"bonusCode\": \"SUMMER_CAMPAIGN_2014\",\n            \"isMobile\": true,\n        }\n    ],\n    \"isResend\": false\n}"}]},"method":"post","results":{"codes":[{"status":200,"language":"json","code":"{  \n   \"end\":{  \n      \"success\":true,\n      \"errorMessage\":\"Session was already ended\"\n   }\n}","name":""}]},"settings":"5576d1003c8a631700435236","params":[{"name":"event","type":"string","default":"gameSessionEnd","desc":"Event name.","required":true,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af8"},{"name":"endEpochMillis","type":"long","default":"1359669915000","desc":"","required":true,"in":"body","ref":"","_id":"5576d1b13c8a63170043523e"},{"name":"dateEnd","type":"string","default":"2014-09-16T09:14:36.8976761Z","desc":"","required":false,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af7"},{"name":"gameSessionIdentifier","type":"string","default":"e0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6","desc":"","required":true,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af6"},{"name":"gameSessionId","type":"int","default":"5347","desc":"","required":true,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af5"},{"name":"transactionId","type":"int","default":"45678","desc":"","required":false,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af4"},{"name":"index","type":"int","default":"1770","desc":"","required":false,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af3"},{"name":"gameId","type":"int","default":"42","desc":"","required":false,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af2"},{"name":"isFreeCampaignGameWithPrize","type":"boolean","default":"false","desc":"","required":false,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af1"},{"name":"players","type":"array_object","default":"","desc":"","required":false,"in":"body","ref":"","_id":"56af71f2b34d210d003d9af0"},{"name":"isResend","type":"boolean","default":"false","desc":"","required":false,"in":"body","ref":"","_id":"56af72148be2ea0d00b48889"}]},"next":{"description":"","pages":[]},"title":"gameSessionEnd","type":"endpoint","slug":"gamesessionend","excerpt":"This event is sent when a game ends to facilitate the payout of winnings to the winner(s). In case of time out or errors this action is sought repeated by sending \"gameSessionEnd\" events using an exponential back off algorithm. <br><br> bonusCode will be specified if partner response to gameRequestBuy had a bonusCode. <br><br> freespinsWon, freespinsWonBatchId and freespinsValueOfWonSpins will be specified if any freespins were won during the game. <br><br> freeSpinSpent and freespinBatchId will be specified if any freespins were spent.  Note that if money/coins reservation is supported the moneyWon and coinsWon fields can hold negative values. Furthermore all reservations made on the gameSession are lifted when making this call. E.g. if USD 10 was reserved on the gameSession and USD 8 were lost in the game before ending it, moneyWon will hold -800. We know that the 800 cents are available as we have reserved 1000 cents. Upon settling the 800 cents the entire reservation is lifted. <br><br> partnerGameRequestId is deprecated. Please use partnerGameRequestIdentifier instead.","body":"","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5a55b149f85c3a0032f10e69","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Callback API","slug":"partner-callbacks","order":6,"from_sync":false,"reference":false,"_id":"5a55b149f85c3a0032f10e5c","version":"5a55b149f85c3a0032f10e55","project":"550dd1756c0b4c0d00fd436e","createdAt":"2015-06-09T11:58:03.755Z","__v":0},"project":"550dd1756c0b4c0d00fd436e","user":"5514315e67d97f2500b774ed","parentDoc":null,"version":{"version":"1.5","version_clean":"1.5.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5a55b149f85c3a0032f10e56","5a55b149f85c3a0032f10e57","5a55b149f85c3a0032f10e58","5a55b149f85c3a0032f10e59","5a55b149f85c3a0032f10e5a","5a55b149f85c3a0032f10e5b","5a55b149f85c3a0032f10e5c","5a55b149f85c3a0032f10e5d","5d1da68fa911a50226595581"],"_id":"5a55b149f85c3a0032f10e55","project":"550dd1756c0b4c0d00fd436e","createdAt":"2018-01-10T06:23:05.406Z","releaseDate":"2018-01-10T06:23:05.406Z","__v":2},"createdAt":"2015-06-09T11:43:42.550Z","githubsync":"","__v":5}

postgameSessionEnd

This event is sent when a game ends to facilitate the payout of winnings to the winner(s). In case of time out or errors this action is sought repeated by sending "gameSessionEnd" events using an exponential back off algorithm. <br><br> bonusCode will be specified if partner response to gameRequestBuy had a bonusCode. <br><br> freespinsWon, freespinsWonBatchId and freespinsValueOfWonSpins will be specified if any freespins were won during the game. <br><br> freeSpinSpent and freespinBatchId will be specified if any freespins were spent. Note that if money/coins reservation is supported the moneyWon and coinsWon fields can hold negative values. Furthermore all reservations made on the gameSession are lifted when making this call. E.g. if USD 10 was reserved on the gameSession and USD 8 were lost in the game before ending it, moneyWon will hold -800. We know that the 800 cents are available as we have reserved 1000 cents. Upon settling the 800 cents the entire reservation is lifted. <br><br> partnerGameRequestId is deprecated. Please use partnerGameRequestIdentifier instead.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

event:
required
stringgameSessionEnd
Event name.
endEpochMillis:
required
long1359669915000
dateEnd:
string2014-09-16T09:14:36.8976761Z
gameSessionIdentifier:
required
stringe0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6
gameSessionId:
required
integer5347
transactionId:
integer45678
index:
integer1770
gameId:
integer42
isFreeCampaignGameWithPrize:
booleanfalse
players:
array of objects
isResend:
booleanfalse

Examples


Result Format