{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-checkout-configuration-schema.json",
  "title": "CheckoutConfiguration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-checkoutconfiguration-api-openapi.yml#/components/schemas/CheckoutConfiguration",
  "type": "object",
  "properties": {
    "object": {
      "type": "string"
    },
    "allowed_countries": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "ISO 3166-1 alpha-2 allow-list; empty means every country can check out."
    },
    "collect_tax": {
      "type": "boolean"
    },
    "tax_behavior": {
      "type": "string",
      "enum": [
        "unspecified",
        "inclusive",
        "exclusive"
      ]
    },
    "tax_code": {
      "type": "string"
    },
    "allow_discount_codes": {
      "type": "boolean"
    },
    "show_tax_id_input": {
      "type": "boolean"
    },
    "show_phone_number_input": {
      "type": "boolean"
    },
    "collect_call_consent": {
      "type": "boolean"
    },
    "collect_shipping_address": {
      "type": "boolean"
    },
    "abandoned_checkout_emails": {
      "type": "boolean"
    },
    "abandoned_checkout_email_delay_hours": {
      "type": "integer"
    },
    "allow_multiple_quantity": {
      "type": "boolean"
    },
    "cancellation_reasons": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "too_expensive",
          "missing_features",
          "switched_service",
          "unused",
          "customer_service",
          "too_complex",
          "low_quality",
          "other"
        ]
      }
    },
    "cancellation_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "cancellation_pause_max_intervals": {
      "type": [
        "integer",
        "null"
      ]
    },
    "cancellation_discount": {
      "type": [
        "string",
        "null"
      ]
    },
    "success_url": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "object",
    "allowed_countries",
    "collect_tax",
    "tax_behavior",
    "tax_code",
    "allow_discount_codes",
    "show_tax_id_input",
    "show_phone_number_input",
    "collect_call_consent",
    "collect_shipping_address",
    "abandoned_checkout_emails",
    "abandoned_checkout_email_delay_hours",
    "allow_multiple_quantity",
    "cancellation_reasons",
    "cancellation_message",
    "cancellation_pause_max_intervals",
    "cancellation_discount",
    "success_url"
  ]
}