---
title: "Obtener la Customer Portal Session abierta de un Customer"
method: GET
path: "/v2/customer-portal-sessions/open"
tags: ["Customer Portal"]
---

# Obtener la Customer Portal Session abierta de un Customer

`GET /v2/customer-portal-sessions/open`

## Request

- Base URL: `https://api.trytoku.com`
- URL: `https://api.trytoku.com/v2/customer-portal-sessions/open`
- Auth: API key in header `x-api-key`

Devuelve el id de la Customer Portal Session vigente más reciente del Customer, o `null` si no tiene ninguna.

La usa checkout-api para recuperar el vínculo de una Checkout Session cuando el portal perdió el `sessionId` de la url. Una sesión cuenta como vigente solo si está `open` y su `expiration_datetime` todavía no pasó.

## Query parameters

- `id_customer` integer, required: Id interno del Customer cuya sesión abierta se busca.

## Response `200`

Successful Response

- OpenCustomerPortalSessionResponse
  - `id_session` string

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `a6ef070075b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trytoku/apis/toku-api/changes/v2/customer-portal-sessions/open/get.md)

---

[API](https://skmtc.dev/trytoku/apis/toku-api.md) - [All operations](https://skmtc.dev/trytoku/apis/toku-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trytoku/apis/toku-api/revisions/a6ef070075b1?raw)
