{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payments-ai/json-schema/payments-ai-public-api-apply-checkout-promo-code-response-schema.json",
  "title": "PublicApiApplyCheckoutPromoCodeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payments-ai-checkout-api-openapi.yml#/components/schemas/PublicApiApplyCheckoutPromoCodeResponse",
  "type": "object",
  "required": [
    "code",
    "promoType",
    "amountOff",
    "discountAmount",
    "subtotal",
    "total",
    "renewalTotal",
    "currency",
    "billingPeriod",
    "billingPeriodLength",
    "billingPeriodUnit"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "promoType": {
      "type": "string"
    },
    "amountOff": {
      "type": "string"
    },
    "discountAmount": {
      "type": "number",
      "format": "double"
    },
    "subtotal": {
      "type": "number",
      "format": "double"
    },
    "total": {
      "type": "number",
      "format": "double"
    },
    "renewalTotal": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "currency": {
      "type": "string"
    },
    "billingPeriod": {
      "type": "string"
    },
    "billingPeriodLength": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "billingPeriodUnit": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}