# Rollback Win

## POST /operator/wallet

> Processes a rollback-win request.\
>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Casino API","version":"1.0.0"},"paths":{"/operator/wallet":{"post":{"description":"Processes a rollback-win request.\n","tags":["Rollback"],"parameters":[{"name":"X-REQUEST-SIGN","in":"header","required":true,"schema":{"type":"string"},"description":"HMAC-SHA256 signature of the raw request body using the shared password.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["player_id","amount","currency_code","is_mobile","action","payload"],"properties":{"player_id":{"type":"string","description":"Unique identifier of the user on Operator side."},"amount":{"type":"integer","description":"Amount in subunits."},"currency_code":{"type":"string","description":"Identifier of currency (ISO 4217)."},"is_mobile":{"type":"boolean","description":"True if the request is from a mobile device."},"action":{"type":"string","enum":["rollback-win"],"description":"Must be set to \"rollback-win\""},"payload":{"type":"object","required":["reference","session_token","provider_transfer_data"],"properties":{"reference":{"type":"string","description":"Game reference"},"session_token":{"type":"string","description":"Session token generated on game launch."},"provider_transfer_data":{"type":"object","required":["transaction_id","round_id","rollback_win_transaction_id"],"properties":{"transaction_id":{"type":"string","description":"Game provider transaction ID."},"round_id":{"type":"string","description":"Game provider round ID."},"rollback_win_transaction_id":{"type":"string","description":"Original transaction ID for rollback."},"table_reference":{"type":"string","description":"Current table reference (required for live casino)."}}}}}}}}}},"responses":{"200":{"description":"Rollback processed (or ignored if transaction not found).","content":{"application/json":{"schema":{"type":"object","required":["transaction_id","balance","currency_code"],"properties":{"transaction_id":{"type":"string","description":"Unique identifier of the operator transaction."},"balance":{"type":"integer","description":"Updated balance in subunits (e.g., cents for EUR)."},"currency_code":{"type":"string","description":"Currency identifier (ISO 4217)."}}}}}},"406":{"description":"Previous transaction not found.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}}}}}}
```
