{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/depixapp-com/json-schema/depixapp-com-webhook-log-detail-response-schema.json",
  "title": "WebhookLogDetailResponse",
  "description": "Full detail of one delivery attempt, including the signed request body sent and the response body received.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/depixapp-com-merchant-api-openapi.yml#/components/schemas/WebhookLogDetailResponse",
  "type": "object",
  "required": [
    "log"
  ],
  "additionalProperties": false,
  "properties": {
    "log": {
      "type": "object",
      "description": "One delivery attempt (full view).",
      "required": [
        "id",
        "checkout_id",
        "merchant_id",
        "url",
        "event",
        "status_code",
        "request_body",
        "response_body",
        "error",
        "attempt",
        "next_retry_at",
        "sent_at"
      ],
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "description": "Delivery log id."
        },
        "checkout_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Checkout id (chk_*) for checkout.* events; null for deposit.*/withdraw.* events."
        },
        "merchant_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Owning merchant id for deposit.*/withdraw.* events; null for checkout.* events (owned via the checkout)."
        },
        "url": {
          "type": "string",
          "description": "The callback URL the event was delivered to."
        },
        "event": {
          "type": "string",
          "description": "Event name delivered."
        },
        "status_code": {
          "type": [
            "integer",
            "null"
          ],
          "description": "HTTP status answered by the receiver — null when the request failed before a response."
        },
        "request_body": {
          "type": [
            "string",
            "null"
          ],
          "description": "The JSON payload sent (as a string) — the same bytes the X-DePix-Signature covers."
        },
        "response_body": {
          "type": [
            "string",
            "null"
          ],
          "description": "Receiver's response body (as a string, may be truncated), or null."
        },
        "error": {
          "type": [
            "string",
            "null"
          ],
          "description": "Transport/delivery error message, or null."
        },
        "attempt": {
          "type": "integer",
          "description": "1-based attempt number within the retry schedule (max 6)."
        },
        "next_retry_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "When the next retry is scheduled (RFC 3339 UTC), or null when delivery succeeded or the schedule is exhausted."
        },
        "sent_at": {
          "type": "string",
          "description": "Delivery attempt timestamp (RFC 3339 UTC)."
        }
      }
    }
  }
}