16. UN ASSIGN PROMO SPINS

Operator must call this API to unassign a player from a freespins campaign.

16.1 Un Assign Request

TypeInput
MethodPOST
URLhttps://<AG-API-BASE-URL> /supplier/freespins/un_assign
Headers "Content-Type": "application/json"
POST ParametersJSON Object(JSON-RPC 2.0)
Example{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "un_assign",
  "params": {
    "reason": "Forfeit Bonus",
    "campaign_code": 1533,
    "player_id": "459",
   "hash":"f0d932dcb9c70eb85439658b17636835",
    "api_key": "abc-123-defg",
    "site_id": "6"
  }
}

16.2 Request Parameters

ParameterTypeDescriptionOptional
reasonStringName of the campaign
campaign_codeIntegerCampaign code for unassign
player_idStringID of the player
api_keyStringAPI key allocated to the Operator
site_idIntegerSite ID allocated to the Operator
hashStringThe computed md5().hex digest() value of all mandatory fields refer to section-18.

16.3 Response Parameters

ParameterTypeDescription
statusStringStatus of the response(success)
errorStringError code (0 for success)
campaign_codeStringCampaign code.

16.4 Example Response

{
    "jsonrpc": "2.0",
    "result": {
        "status": "success",
        "error": 0,
        "campaign_code": "1533"
    },
    "id": 0
}

16.5 Example Error Response
The error response indicates an InvalidAPIKey (code 1000) with the message " Invalid API Key" providing details about the API key validation. Refer to section 12 for more information.

{
  "jsonrpc": "2.0",
  "error": {
    "code": 1000,
    "message": "Invalid APi Key.",
    "name": "InvalidApiKey"
  },
  "id": 0
}