/
v3.0.11Get access

getPlayerOptIns For Integration

This method is used to fetch all promotions and offers the player has opted into. It returns a list of active or historical opt-ins including offer identifier, code, partner reference, and opt-in timestamp.

Request parameters:

The method works without parameters

Call example:

getPlayerOptIns()

Response examples:

{
  code: 0,
  rid: 267492440,
  data: {
    result: 0,
    result_text: null,
    details: [{
      Id: 408396,
      ClientId: 88736727,
      Code: 'Euroleague Offer',
      PartnerId: 1876553,
      Created: 1734964029
    }, {
      Id: 429425,
      ClientId: 88736727,
      Code: '100% Insurance 04/01/2025',
      PartnerId: 1876553,
      Created: 1735559844
    }, {
      Id: 543609,
      ClientId: 88736727,
      Code: '020225betinsurance(Arsenal-City)',
      PartnerId: 1876553,
      Created: 1738355477
    }, {
      Id: 543618,
      ClientId: 88736727,
      Code: '020225betinsurance(Milan-Inter)',
      PartnerId: 1876553,
      Created: 1738355525
    }, {
      Id: 1051972,
      ClientId: 88736727,
      Code: '270425freebet',
      PartnerId: 1876553,
      Created: 1745694825
    }]
  }
}

Response parameters:

NameDescriptionTypeValues
Id
Unique identifier of the opt-in recordnumber-
ClientId
Identifier of the user who opted into the promotion.number-
Code
Unique promotion or offer code used to identify the opt-instring-
PartnerId
Identifier of the partner (site id from skin config)number-
Created
Timestamp (Unix time, seconds) indicating when the user opted into the promotion.number-