{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toku/json-schema/toku-customer-portal-session-response-schema.json",
  "title": "CustomerPortalSessionResponse",
  "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/CustomerPortalSessionResponse",
  "properties": {
    "additional_metadata": {
      "title": "Additional Metadata",
      "type": "object"
    },
    "additional_query_parameters": {
      "title": "Additional Query Parameters",
      "type": "object"
    },
    "billing_data": {
      "title": "Billing Data",
      "type": "object"
    },
    "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": {
      "title": "Flow Name",
      "type": "string"
    },
    "id": {
      "title": "Id",
      "type": "string"
    },
    "id_organization": {
      "title": "Id Organization",
      "type": "integer"
    },
    "journey_id": {
      "title": "Journey Id",
      "type": "string"
    },
    "payment_options_configuration": {
      "title": "Payment Options Configuration",
      "type": "object"
    },
    "redirection_configuration": {
      "title": "Redirection Configuration",
      "type": "object"
    },
    "state": {
      "$ref": "#/$defs/CustomerPortalSessionState"
    },
    "template": {
      "title": "Template",
      "type": "string"
    },
    "url": {
      "title": "Url",
      "type": "string"
    }
  },
  "required": [
    "id",
    "billing_data",
    "flow_name",
    "url",
    "state",
    "id_organization",
    "expiration_datetime"
  ],
  "type": "object",
  "$defs": {
    "CustomerPortalSessionState": {
      "description": "Estado de una sesión del portal de pago. Nace `open`, que es el único estado en que la sesión sirve para entrar al portal, y pasa a `expired` cuando se cumple su fecha de expiración o cuando se la expira a propósito. Es un cambio de una sola vía: una sesión expirada no vuelve a abrirse.",
      "enum": [
        "open",
        "expired"
      ],
      "title": "CustomerPortalSessionState",
      "type": "string"
    }
  }
}