{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/","auth":"required","examples":{"codes":[]},"method":"post","results":{"codes":[{"status":200,"language":"json","code":"Formatted JSON Data\n{  \n   \"buy\":{  \n      \"success\":true,\n      \"currencyISO4217\":\"DKK\",\n      \"money\":123456,\n      \"partnerGameRequestId\":\"7475\",\n      \"partnerGameRequestIdentifier\":\"7475\",\n      \"moneyReserved\":0,\n      \"coins\":0,\n      \"coinsReserved\":0,\n      \"bonusCode\":\"SUMMER_CAMPAIGN_2014\",\n      \"errorMessage\":\"Player has insufficient funds in wallet\",\n      \"playerPresentedErrorMessage\":\"This will be displayed to the player\"\n   }\n}","name":""}]},"settings":"5576d1003c8a631700435236","params":[{"name":"event","type":"string","default":"gameRequestBuy","desc":"Event name.","required":true,"in":"body","ref":"","_id":"5576d1b13c8a63170043523e"},{"name":"playerIdentifier","type":"string","default":"e0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6","desc":"Spigo's player identifier. This or playerPartnerIdentifier is required.","required":true,"in":"body","ref":"","_id":"56af6f0660a37a0d00ed87b0"},{"name":"playerPartnerIdentifier","type":"string","default":"123456-FF","desc":"Partner's player identifier. This or playerIdentifier is required.","required":true,"in":"body","ref":"","_id":"56af6f0660a37a0d00ed87af"},{"name":"currencyISO4217","type":"string","default":"DKK","desc":"","required":true,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d33e"},{"name":"money","type":"int","default":"123456","desc":"","required":true,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d33d"},{"name":"withdrawAllMoney","type":"boolean","default":"false","desc":"","required":false,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d33c"},{"name":"reserveMoney","type":"int","default":"0","desc":"","required":false,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d33b"},{"name":"reserveAllMoney","type":"boolean","default":"false","desc":"","required":false,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d33a"},{"name":"coins","type":"int","default":"0","desc":"","required":false,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d339"},{"name":"reserveAllCoins","type":"boolean","default":"false","desc":"","required":false,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d338"},{"name":"isCoins","type":"boolean","default":"false","desc":"","required":true,"in":"body","ref":"","_id":"56af77bb9d32e30d0006d337"},{"name":"gameId","type":"int","default":"42","desc":"","required":true,"in":"body","ref":"","_id":"56af78185b1f01170014dba8"},{"name":"gameRequestId","type":"int","default":"111","desc":"","required":true,"in":"body","ref":"","_id":"56af78185b1f01170014dba7"},{"name":"ruleId","type":"int","default":"11","desc":"","required":true,"in":"body","ref":"","_id":"56af78185b1f01170014dba6"},{"name":"transactionId","type":"int","default":"23456","desc":"","required":true,"in":"body","ref":"","_id":"56af78185b1f01170014dba5"},{"name":"gameRules","type":"array_object","default":"","desc":"","required":true,"in":"body","ref":"","_id":"56af78185b1f01170014dba4"},{"name":"createdEpochMillis","type":"long","default":"1026544557","desc":"","required":true,"in":"body","ref":"","_id":"56af78185b1f01170014dba3"},{"name":"isMobile","type":"boolean","default":"","desc":"","required":true,"in":"body","ref":"","_id":"5901b70d1aaba40f0074e8bb"}]},"next":{"description":"","pages":[]},"title":"gameRequestBuy","type":"endpoint","slug":"gamerequestbuy","excerpt":"When a player wants to play a (non-slot-machine) game a bet with a specific stake is wagered by the player on his ability to win the game. This bet is referred to as a game request. This event is the event sent by Spigo when a player performs this bet. If the bet is performed successfully a session will be created (note that in the case of multiplayer games several bets have to be matched before creating a session). Either playerIdentifier or playerPartnerIdentifier must be set. The transactionId must be stored by the partner the enable responses to \"gameRequestCheckValid\" calls.","body":"","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5a55b149f85c3a0032f10e66","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},"parentDoc":null,"user":"5514315e67d97f2500b774ed","project":"550dd1756c0b4c0d00fd436e","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":"2016-02-01T15:04:06.371Z","githubsync":"","__v":4}

postgameRequestBuy

When a player wants to play a (non-slot-machine) game a bet with a specific stake is wagered by the player on his ability to win the game. This bet is referred to as a game request. This event is the event sent by Spigo when a player performs this bet. If the bet is performed successfully a session will be created (note that in the case of multiplayer games several bets have to be matched before creating a session). Either playerIdentifier or playerPartnerIdentifier must be set. The transactionId must be stored by the partner the enable responses to "gameRequestCheckValid" calls.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

event:
required
stringgameRequestBuy
Event name.
playerIdentifier:
required
stringe0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6
Spigo's player identifier. This or playerPartnerIdentifier is required.
playerPartnerIdentifier:
required
string123456-FF
Partner's player identifier. This or playerIdentifier is required.
currencyISO4217:
required
stringDKK
money:
required
integer123456
withdrawAllMoney:
booleanfalse
reserveMoney:
integer0
reserveAllMoney:
booleanfalse
coins:
integer0
reserveAllCoins:
booleanfalse
isCoins:
required
booleanfalse
gameId:
required
integer42
gameRequestId:
required
integer111
ruleId:
required
integer11
transactionId:
required
integer23456
gameRules:
required
array of objects
createdEpochMillis:
required
long1026544557
isMobile:
required
boolean

Result Format