PATCH – Completed Draws

This webhook is sent when all lottery draws for the day are finished, and then the Redemption endpoint should be called.

Each customer who placed at least one bet in any of the draws will be notified only once.


Information included

FieldDescription
ordersArray of order objects with customer’s order data.
orders.orderIdThe unique ID of the order in Sorte Online.
orders.orderCorrelationIdThe partner’s reference ID for the order.
drawsArray of draw objects with lottery results.
draws.lotteryThe name of the lottery.
draws.drawNumberThe draw number.
draws.totalPrizeThe total prize value generated by all bets from the customer in that draw.
evaluationTimeDate and time (ISO 8601) when the evaluation of all lotteries was completed.

Example payload

{
  "orders": [
    {
      "orderId": "1512652504213-01",
      "orderCorrelationId": "asdas-adads-asdasd-asdasd"
    },
    {
      "orderId": "1512652504213-01",
      "orderCorrelationId": "zxcv-zxczc-zxcc-zxczc"
    }
  ],
  "draws": [
    {
      "lottery": "Mega-sena",
      "drawNumber": 2832,
      "totalPrize": 5000
    },
    {
      "lottery": "Lotofácil",
      "drawNumber": 3200,
      "totalPrize": 0
    },
    {
      "lottery": "Quina",
      "drawNumber": 2800,
      "totalPrize": 7000
    }
  ],
  "evaluationTime": "2025-02-22T21:59:45Z"
}