{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/","auth":"required","examples":{"codes":[{"language":"json","code":"{\n\t\"event\": \"requestRefund\",\n  \"partnerGameRequestIdentifier\": \"7475453\",\n  \"partnerGameRequestId\": 7475,\n  \"playerIdentifier\": \"e0cd1c8b-d24a-45bd-a5e5-b1cd01c18aa6\",\n  \"playerPartnerIdentifier\": \"123456-FF\",\n  \"gameId\": 42,\n  \"transactionId\": 45670,\n  \"buyTransactionId\": 23456,\n  \"bonusCode\": null,\n  \"isMobile\": true,\n}"}]},"method":"post","results":{"codes":[{"name":"","status":200,"language":"json","code":"{  \n   \"refund\":{  \n      \"partnerGameRequestId\":\"7475\",\n      \"partnerGameRequestIdentifier\":\"7475\",\n      \"success\":true,\n      \"errorMessage\":\"gameRequest not found\"\n   }\n}"}]},"settings":"5576d1003c8a631700435236","params":[{"name":"event","type":"string","default":"requestRefund","desc":"Event name.","required":true,"in":"body","ref":"","_id":"5576d1b13c8a63170043523e"},{"name":"partnerGameRequestId","type":"int","default":"7475","desc":"DEPRECATED","required":true,"in":"body","ref":"","_id":"56af78d35b1f01170014dbbb"},{"name":"partnerGameRequestIdentifier","type":"string","default":"7475453","desc":"","required":true,"in":"body","ref":"","_id":"56af78d35b1f01170014dbba"},{"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":"gameId","type":"int","default":"42","desc":"","required":true,"in":"body","ref":"","_id":"56af78d35b1f01170014dbb9"},{"name":"transactionId","type":"int","default":"45678","desc":"","required":true,"in":"body","ref":"","_id":"56af78d35b1f01170014dbb8"},{"name":"buyTransactionId","type":"int","default":"23456","desc":"","required":true,"in":"body","ref":"","_id":"56af78d35b1f01170014dbb7"},{"name":"bonusCode","type":"string","default":"SUMMER_CAMPAIGN_2015","desc":"","required":false,"in":"body","ref":"","_id":"56af78d35b1f01170014dbb6"},{"name":"isMobile","type":"boolean","default":"","desc":"","required":false,"in":"body","ref":"","_id":"5a55b217fba009003e31ebc6"}]},"next":{"description":"","pages":[]},"title":"requestRefund","type":"endpoint","slug":"requestrefund","excerpt":"This event is used to refund a gameRequestBuy or gameSessionRequestBuy in case the resulting game session ended in a failed state with no recovery possible. <br><br> transactionId refers to the transactionId of the gameRequestBuy event that the present event is attempting to refund. <br><br> bonusCode will be specified if partner response to gameRequestBuy had a bonusCode. <br><br> partnerGameRequestId is deprecated. Please use partnerGameRequestIdentifier instead.","body":"","updates":[],"order":3,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5a55b149f85c3a0032f10e68","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,"project":"550dd1756c0b4c0d00fd436e","user":"5514315e67d97f2500b774ed","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:36.141Z","githubsync":"","__v":2}

postrequestRefund

This event is used to refund a gameRequestBuy or gameSessionRequestBuy in case the resulting game session ended in a failed state with no recovery possible. <br><br> transactionId refers to the transactionId of the gameRequestBuy event that the present event is attempting to refund. <br><br> bonusCode will be specified if partner response to gameRequestBuy had a bonusCode. <br><br> partnerGameRequestId is deprecated. Please use partnerGameRequestIdentifier instead.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

event:
required
stringrequestRefund
Event name.
partnerGameRequestId:
required
integer7475
DEPRECATED
partnerGameRequestIdentifier:
required
string7475453
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.
gameId:
required
integer42
transactionId:
required
integer45678
buyTransactionId:
required
integer23456
bonusCode:
stringSUMMER_CAMPAIGN_2015
isMobile:
boolean

Examples


Result Format