{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-post-promotion-codes-promotion-code-request-schema.json",
  "title": "PostPromotionCodesPromotionCodeRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stripe-promotion-codes-api-openapi.yml#/components/schemas/PostPromotionCodesPromotionCodeRequest",
  "type": "object",
  "properties": {
    "active": {
      "description": "Whether the promotion code is currently active. A promotion code can only be reactivated when the coupon is still valid and the promotion code is otherwise redeemable.",
      "type": "boolean"
    },
    "expand": {
      "description": "Specifies which fields in the response should be expanded.",
      "items": {
        "maxLength": 5000,
        "type": "string"
      },
      "type": "array"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "enum": [
            ""
          ],
          "type": "string"
        }
      ],
      "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."
    },
    "restrictions": {
      "description": "Settings that restrict the redemption of the promotion code.",
      "properties": {
        "currency_options": {
          "additionalProperties": {
            "properties": {
              "minimum_amount": {
                "type": "integer"
              }
            },
            "title": "currency_option",
            "type": "object"
          },
          "type": "object"
        }
      },
      "title": "restrictions_params",
      "type": "object"
    }
  }
}