{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toku/json-schema/toku-create-customer-portal-session-payload-schema.json",
  "title": "CreateCustomerPortalSessionPayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/toku-customer-portal-api-openapi.yml#/components/schemas/CreateCustomerPortalSessionPayload",
  "properties": {
    "additional_metadata": {
      "title": "Additional Metadata",
      "type": "object"
    },
    "additional_query_parameters": {
      "$ref": "#/$defs/AdditionalQueryParametersPayload"
    },
    "billing_data": {
      "$ref": "#/$defs/BillingData"
    },
    "communication_channel": {
      "title": "Communication Channel",
      "type": "string"
    },
    "expiration_datetime": {
      "format": "date-time",
      "title": "Expiration Datetime",
      "type": "string"
    },
    "external_id": {
      "title": "External Id",
      "type": "string"
    },
    "flow_name": {
      "default": "0",
      "title": "Flow Name",
      "type": "string"
    },
    "payment_options_configuration": {
      "$ref": "#/$defs/PaymentOptionsConfigurationPayload"
    },
    "redirection_configuration": {
      "$ref": "#/$defs/RedirectionConfigurationPayload"
    },
    "template": {
      "title": "Template",
      "type": "string"
    }
  },
  "required": [
    "billing_data",
    "expiration_datetime"
  ],
  "type": "object",
  "$defs": {
    "AdditionalQueryParametersPayload": {
      "properties": {
        "access_source": {
          "title": "Access Source",
          "type": "string"
        }
      },
      "title": "AdditionalQueryParametersPayload",
      "type": "object"
    },
    "BillingData": {
      "properties": {
        "id_account": {
          "title": "Id Account",
          "type": "string"
        },
        "id_customer": {
          "title": "Id Customer",
          "type": "string"
        },
        "id_subscription": {
          "title": "Id Subscription",
          "type": "string"
        }
      },
      "required": [
        "id_customer"
      ],
      "title": "BillingData",
      "type": "object"
    },
    "CardConfigurationPayload": {
      "properties": {
        "installments_configuration": {
          "title": "Installments Configuration",
          "type": "object"
        }
      },
      "title": "CardConfigurationPayload",
      "type": "object"
    },
    "PaymentOptionsConfigurationPayload": {
      "properties": {
        "card": {
          "$ref": "#/$defs/CardConfigurationPayload"
        }
      },
      "title": "PaymentOptionsConfigurationPayload",
      "type": "object"
    },
    "RedirectionConfigurationPayload": {
      "properties": {
        "enrollment_failure_url": {
          "title": "Enrollment Failure Url",
          "type": "string"
        },
        "enrollment_success_url": {
          "title": "Enrollment Success Url",
          "type": "string"
        },
        "payment_failure_url": {
          "title": "Payment Failure Url",
          "type": "string"
        },
        "payment_success_url": {
          "title": "Payment Success Url",
          "type": "string"
        }
      },
      "title": "RedirectionConfigurationPayload",
      "type": "object"
    }
  }
}