Operator must call this API to unassign a player from a freespins campaign.
16.1 Un Assign Request
| Type | Input |
| Method | POST |
| URL | https://<AG-API-BASE-URL> /supplier/freespins/un_assign |
| Headers | "Content-Type": "application/json" |
| POST Parameters | JSON 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
| Parameter | Type | Description | Optional |
| reason | String | Name of the campaign | |
| campaign_code | Integer | Campaign code for unassign | |
| player_id | String | ID of the player | |
| api_key | String | API key allocated to the Operator | |
| site_id | Integer | Site ID allocated to the Operator | |
| hash | String | The computed md5().hex digest() value of all mandatory fields refer to section-18. |
16.3 Response Parameters
| Parameter | Type | Description |
| status | String | Status of the response(success) |
| error | String | Error code (0 for success) |
| campaign_code | String | Campaign 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
}