# Control User RTP

Sets the target RTP for a specific user on a provider.

### Endpoint

```
POST https://api.nexusggr.com
```

**Content-Type:** `application/json`

### Request

**Method:** `control_rtp`

```json
{
    "method": "control_rtp",
    "agent_code": "your_agent_code",
    "agent_token": "your_agent_token",
    "provider_code": "PRAGMATIC",
    "user_code": "test",
    "rtp": 92
}
```

<table><thead><tr><th width="151">Field</th><th width="116">Type</th><th width="117">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>method</code></td><td>string</td><td>Yes</td><td>Must be <code>control_rtp</code></td></tr><tr><td><code>agent_code</code></td><td>string</td><td>Yes</td><td>Your agent code</td></tr><tr><td><code>agent_token</code></td><td>string</td><td>Yes</td><td>Your agent API token</td></tr><tr><td><code>provider_code</code></td><td>string</td><td>Yes</td><td>Game provider code</td></tr><tr><td><code>user_code</code></td><td>string</td><td>Yes</td><td>Target user</td></tr><tr><td><code>rtp</code></td><td>number</td><td>Yes</td><td>Target RTP value (0 ~ 999), sent as a JSON number. Unless your agent is a promo agent, it must also be at most <code>99</code>, or at least <code>120</code> for a test agent</td></tr></tbody></table>

### Response

#### Success

```json
{
    "status": 1,
    "code": 7777777,
    "msg": "SUCCESS",
    "changed_rtp": 92
}
```

#### Failure

```json
{
    "status": 0,
    "code": 7770400,
    "msg": "rtp must be less than or equal to 999"
}
```
