{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/superdocs-app/json-schema/superdocs-app-redeem-response-schema.json",
  "title": "RedeemResponse",
  "description": "Response body for POST /v1/promo/redeem on success.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/superdocs-app-promo-api-openapi.yml#/components/schemas/RedeemResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Always 'redeemed' on success.",
      "default": "redeemed"
    },
    "promotion": {
      "$ref": "#/$defs/RedemptionOut"
    },
    "message": {
      "type": "string",
      "title": "Message"
    }
  },
  "type": "object",
  "required": [
    "promotion",
    "message"
  ],
  "$defs": {
    "RedemptionOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "ops_granted": {
          "type": "integer",
          "title": "Ops Granted"
        },
        "ops_remaining": {
          "type": "integer",
          "title": "Ops Remaining"
        },
        "redeemed_at": {
          "type": "string",
          "title": "Redeemed At"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "ops_granted",
        "ops_remaining",
        "redeemed_at",
        "expires_at"
      ],
      "title": "RedemptionOut",
      "description": "Summary of a successful redemption, returned from POST /v1/promo/redeem."
    }
  }
}