{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payments-ai/json-schema/payments-ai-public-api-checkout-by-plan-response-schema.json",
  "title": "PublicApiCheckoutByPlanResponse",
  "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/PublicApiCheckoutByPlanResponse",
  "type": "object",
  "required": [
    "planId",
    "productId",
    "productName",
    "type",
    "amount",
    "initialPrice",
    "currency",
    "checkoutUrl",
    "customization"
  ],
  "properties": {
    "planId": {
      "type": "string"
    },
    "productId": {
      "type": "string"
    },
    "productName": {
      "type": "string"
    },
    "productDescription": {
      "type": "string"
    },
    "productImagePath": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string"
    },
    "billingPeriod": {
      "type": "string"
    },
    "lengthOfBillingPeriod": {
      "type": "integer",
      "format": "int32"
    },
    "amount": {
      "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
    },
    "initialPrice": {
      "allOf": [
        {
          "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
        }
      ],
      "description": "Amount charged at checkout today. Zero for recurring plans with a free trial; otherwise matches amount."
    },
    "currency": {
      "type": "string"
    },
    "checkoutUrl": {
      "type": "string"
    },
    "websiteUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "termsUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Seller Terms URL or stable API redirect for a PDF. Null when unset."
    },
    "privacyUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Seller Privacy URL or stable API redirect for a PDF. Null when unset."
    },
    "returnPolicyUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Seller Return policy URL or stable API redirect for a PDF. Null when unset."
    },
    "eulaUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Seller EULA URL or stable API redirect for a PDF. Null when unset."
    },
    "customization": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "$defs": {
    "SharedTypes.MoneyAmountValue": {
      "type": "number",
      "format": "decimal",
      "description": "Decimal money amount for financial values."
    }
  }
}