# Set limit event

# POST /:partnerId/event/setlimit

# When

Send this event when a players limit change was initated, either by the player itself, support agent or the system.

Note: Trigger the event on the actual change, not when the limit actually applies.

# Parameters

Parameter Type Description Example
ludio_id Body Ludio id of the player triggering the event b42a9f...6e7d45
timestamp Body UNIX Timestamp on the occurence of the event 1681201484
limit_type Body Type of limit that was set/changed. Available limit types are: block, deposit, wager, netloss deposit
limit_timeframe Body Timeframe of limit that was set/changed. Available limit types are: monthly, weekly, daily weekly
new_value Body New limit value 2000
previous_value Body Previous limit value 1500

# Schema

{
  "ludio_id": "string",
  "timestamp": 0,
  "payload": {
    "limit_type": "block|deposit|wager|netloss",
    "limit_timeframe": "monthly|weekly|daily",
    "currency": "SEK",
    "new_value": 0,
    "previous_value": 0
  }
}

# Examples

fetch(`${process.env.LUDIO_EVENT_API_HOST}/event/setlimit`, {
  method: "POST",
  body: {
    "ludio_id": "b42a9f91d6f79dc885c4b93ac86e7d45",
    "timestamp": 1681201484,
    "payload": {
      "limit_type": "deposit",
      "limit_timeframe": "weekly",
      "currency": "SEK",
      "new_value": 2000,
      "previous_value": 1500
    }
  }
})
curl -d '{"ludio_id": "b42a9f91d6f79dc885c4b93ac86e7d45","timestamp": 1681201484,"payload": {"limit_type": "deposit","limit_timeframe": "weekly","currency": "SEK","new_value": 2000,"previous_value": 1500}}' $LUDIO_EVENT_API_HOST/event/setlimit