{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/andrewsfreebies-com/json-schema/andrewsfreebies-com-outcome-feedback-receipt-schema.json",
  "title": "OutcomeFeedbackReceipt",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/andrewsfreebies-com-openapi.json#/components/schemas/OutcomeFeedbackReceipt",
  "type": "object",
  "required": [
    "api_version",
    "recorded",
    "outcome",
    "record",
    "interpretation"
  ],
  "properties": {
    "api_version": {
      "type": "string",
      "const": "1.24"
    },
    "recorded": {
      "type": "boolean",
      "const": true
    },
    "outcome": {
      "type": "string",
      "enum": [
        "worked",
        "ineligible",
        "terms-differed"
      ]
    },
    "record": {
      "type": "object",
      "required": [
        "record_type",
        "record_id",
        "corpus"
      ],
      "properties": {
        "record_type": {
          "type": "string",
          "enum": [
            "trial",
            "entitlement"
          ]
        },
        "record_id": {
          "type": "string"
        },
        "corpus": {
          "type": "string",
          "enum": [
            "trial",
            "redeemable-savings"
          ]
        }
      }
    },
    "interpretation": {
      "type": "string"
    }
  }
}