{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/print-one/json-schema/print-one-get-v3-webhook-logs-response-dto-schema.json",
  "title": "GetV3WebhookLogsResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/print-one-webhooks-api-openapi.yml#/components/schemas/GetV3WebhookLogsResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The id of the webhook log"
    },
    "status": {
      "type": "string",
      "enum": [
        "success",
        "failed"
      ],
      "description": "The status of the webhook call"
    },
    "event": {
      "type": "string",
      "description": "The event of the triggered webhook log",
      "enum": [
        "order_status_update",
        "template_preview_rendered",
        "coupon_code_used",
        "qr_code_scanned",
        "mailing_sent"
      ]
    },
    "request": {
      "type": "object",
      "description": "The payload of the request",
      "additionalProperties": true
    },
    "response": {
      "type": "object",
      "description": "The response of the called url",
      "properties": {
        "status": {
          "type": "number",
          "description": "The status code of the response"
        },
        "body": {
          "type": "object",
          "description": "The body of the response",
          "additionalProperties": true
        }
      }
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "description": "The timestamp at which the webhook was triggered"
    }
  },
  "required": [
    "id",
    "status",
    "event",
    "request",
    "response",
    "createdAt"
  ]
}