# Withdraw event

# POST /:partnerId/event/withdraw

# When

Send this event when a players withdraw was completed and successful.

# 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
currency Body Currency of the transaction SEK
amount Body The amount of the transaction 2000
new_balance Body New wallet balance after the transaction 1500

# Schema

{
  "ludio_id": "string",
  "timestamp": 0,
  "payload": {
    "currency": "SEK",
    "amount": 0,
    "new_balance": 0
  }
}

# Examples

fetch(`${process.env.LUDIO_EVENT_API_HOST}/event/withdraw`, {
  method: "POST",
  body: {
    "ludio_id": "b42a9f91d6f79dc885c4b93ac86e7d45",
    "timestamp": 1681201484,
    "payload": {
      "currency": "SEK",
      "amount": 2000,
      "new_balance": 1500
    }
  }
})
curl -d '{"ludio_id": "b42a9f91d6f79dc885c4b93ac86e7d45","timestamp": 1681201484,"payload": {"currency": "SEK","new_value": 2000,"previous_value": 3500}}' $LUDIO_EVENT_API_HOST/event/withdraw