{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-redeem-promotion-request-schema.json",
  "title": "RedeemPromotionRequest",
  "description": "Body of `POST /promotions/redeem`. Exactly one of the two says which campaign.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-promotions-api-openapi.yml#/components/schemas/RedeemPromotionRequest",
  "properties": {
    "code": {
      "description": "The code, as typed. Folded to upper case here, so the case somebody used does not matter.",
      "type": [
        "null",
        "string"
      ]
    },
    "promotionId": {
      "description": "The campaign's id, for an offer that was listed — a button rather than something to type. Refused for a\ncampaign whose audience is `Code`: there the code is the only way in.",
      "type": [
        "null",
        "string"
      ]
    }
  },
  "required": [
    "code",
    "promotionId"
  ],
  "type": "object"
}