{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/","auth":"required","method":"post","results":{"codes":[{"name":"","status":200,"language":"json","code":"{  \n   \"playerBalance\":{  \n      \"money\":123456,\n      \"currencyISO4217\":\"DKK\",\n      \"coins\":100,\n      \"loyalty\":100,\n      \"errorMessage\":\"Unknown player\"\n   }\n}"}]},"settings":"5576d1003c8a631700435236","examples":{"codes":[]},"params":[{"name":"event","type":"string","default":"getPlayerBalance","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":false,"in":"body","ref":"","_id":"56af6f0660a37a0d00ed87b0"},{"name":"playerPartnerIdentifier","type":"string","default":"123456-FF","desc":"Partner's player identifier. This or playerIdentifier is required.","required":false,"in":"body","ref":"","_id":"56af6f0660a37a0d00ed87af"},{"name":"gameId","type":"int","default":"","desc":"The id of the game that the player is currently requesting \"getPlayerBalance\" from","required":true,"in":"body","ref":"","_id":"5ab3861cd2d1e2006252a43b"}]},"next":{"description":"","pages":[]},"title":"getPlayerBalance","type":"endpoint","slug":"getplayerbalance","excerpt":"Used by Spigo to inquire how much money, loyalty (optional points which can be earned by playing games for real money) or coins (optional play-for-fun currency) a player has.","body":"","updates":[],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5a55b149f85c3a0032f10e65","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-01T14:43:18.732Z","githubsync":"","__v":1}

postgetPlayerBalance

Used by Spigo to inquire how much money, loyalty (optional points which can be earned by playing games for real money) or coins (optional play-for-fun currency) a player has.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

event:
required
stringgetPlayerBalance
Event name.
playerIdentifier:
stringe0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6
Spigo's player identifier. This or playerPartnerIdentifier is required.
playerPartnerIdentifier:
string123456-FF
Partner's player identifier. This or playerIdentifier is required.
gameId:
required
integer
The id of the game that the player is currently requesting "getPlayerBalance" from

Result Format