Link Search Menu Expand Document

Metadata


Overview

This endpoint allows you to pass additional information related to game sessions or player activities, ensuring accurate tracking and reporting.

POST /open-api-games/v1/games-processor

MetaData request has its own data and api fields and this means that it can contain different types of data. But at this moment the only types are roundComplete which carries information about completed round and freespinEnd which carries information about played bonus.


Round Complete

For the bet games provider has to inform platform after end of a round.

Parameters

Request:

NameTypeDescription
apistringName of operation, “metaData” here
dataobject 
data.gameSessionstringGame session id.
data.currencystringBalance currency. Passed by the link to open the game. See section “Managing Games and Connections”, field accounts[].gameEmbedUrl.
data.gameIdstring[Optional field] Game id is required for the providers who are using specific session mode. (F.E. Lobby Games)
data.apistringName of “metaData” operation. “roundComplete” in this case
data.data.betIdstringBet id (round) which was completed

Response:

NameTypeDescription
apistringName of operation: “debit”, “credit”, “rollback”
isSuccessbooleanIs success?
errorstringEmpty string if isSuccess == true.
errorMsgstringError code, see “Errors” table
dataobject 
data.apistringName of “metaData” operation
data.datastringInternal ‘data’ field

Errors:

NameDescription
NO_ERRORSNo errors. Passed if isSuccess == true.
ALREADY_PROCESSEDThe operation for this transaction has already been successfully processed.
SIGN_NOT_PROVIDEDSign header was not passed.
INVALID_SIGNInvalid signature.
UNKNOWN_CURRENCYUnknown currency.
INSUFFICIENT_BALANCEThe player’s balance is not enough to carry out the operation.
INTERNAL_ERRORInternal service error. The operation must be repeated.

Example

Request:

curl --location --request POST 'https://apiEndpoint/open-api-games/v1/games-processor' \
  --header 'Content-Type: application/json' \
  --data '{
  "api": "metaData",
  "data": {
    "gameSessionId": "16e2ea64-5725-40a4-99cc-c5c0deb8568d",
    "currency": "RUB",
    "api":"roundComplete",
    "data":{
      "betId":"4687286"
    }
  }'

Response:

{
  "api": "metaData",
  "isSuccess": true,
  "error": "",
  "errorMsg": "NO_ERRORS",
  "data": {
    "data": {},
    "api": "roundComplete"
  }
}

Free Spin End

Free spin end metadata is required to inform platform about end of free spins in bound of one bonus.

Parameters

Request:

NameTypeDescription
apistringName of operation, “metaData” here
dataobject 
data.gameSessionstringGame session id.
data.currencystringBalance currency. Passed by the link to open the game. See section “Managing Games and Connections”, field accounts[].gameEmbedUrl.
data.gameIdstring[Optional field] Game id is required for the providers who are using specific session mode. (F.E. Lobby Games)
data.apistringName of “metaData” operation. “freespinEnd” in this case available
data.data.bonusIdstringBonus id which must be reported as played
data.data.totalintTotal amount of win for reported bonusId

Response:

NameTypeDescription
apistringName of operation: “debit”, “credit”, “rollback”
isSuccessbooleanIs success?
errorstringEmpty string if isSuccess == true.
errorMsgstringError code, see “Errors” table
dataobject 
data.apistringName of “metaData” operation
data.datastringInternal ‘data’ field

Errors:

NameDescription
NO_ERRORSNo errors. Passed if isSuccess == true.
ALREADY_PROCESSEDThe operation for this transaction has already been successfully processed.
SIGN_NOT_PROVIDEDSign header was not passed.
INVALID_SIGNInvalid signature.
UNKNOWN_CURRENCYUnknown currency.
INSUFFICIENT_BALANCEThe player’s balance is not enough to carry out the operation.
INTERNAL_ERRORInternal service error. The operation must be repeated.

Example

Request:

curl --location --request POST 'https://apiEndpoint/open-api-games/v1/games-processor' \
  --header 'Content-Type: application/json' \
  --data '{
  "api": "metaData",
  "data": {
    "gameSessionId": "16e2ea64-5725-40a4-99cc-c5c0deb8568d",
    "currency": "RUB",
    "api":"freespinEnd",
    "data":{
      "bonusId":"1234",
      "total" : 1000
    }
  }'

Response:

{
  "api": "metaData",
  "isSuccess": true,
  "error": "",
  "errorMsg": "NO_ERRORS",
  "data": {
    "data": {},
    "api": "freespinEnd"
  }
}