{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luniumpay-com/json-schema/luniumpay-com-entrega-webhook-schema.json",
  "title": "EntregaWebhook",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/luniumpay-com-webhooks-api-openapi.yml#/components/schemas/EntregaWebhook",
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string"
    },
    "event": {
      "type": "string",
      "enum": [
        "cashin.paid",
        "cashin.delayed",
        "cashin.held",
        "cashin.settled",
        "cashin.settlement_failed",
        "cashin.expired",
        "cashin.refunded",
        "cashin.failed",
        "cashout.awaiting_deposit",
        "cashout.deposit_detected",
        "cashout.confirming",
        "cashout.processing",
        "cashout.under_review",
        "cashout.awaiting_refund_address",
        "cashout.refunding",
        "cashout.completed",
        "cashout.receipt_ready",
        "cashout.refunded",
        "cashout.expired",
        "cashout.failed",
        "payout.sent",
        "payout.failed",
        "payout.refunded",
        "webhook.test",
        "saldo.liberado",
        "saldo.congelado",
        "saldo.transferido",
        "wallet.deposit_credited",
        "wallet.payment_completed",
        "wallet.payment_failed",
        "wallet.withdrawal.completed",
        "wallet.withdrawal.failed"
      ]
    },
    "operation_id": {
      "type": "string",
      "description": "Id da operacao que gerou o evento."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "sent",
        "failed"
      ],
      "description": "failed = esgotou as 12 tentativas. Use o retry para recuperar."
    },
    "attempts": {
      "type": "integer"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "next_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}