---
title: "Expirar Checkout Session"
method: POST
path: "/checkout-sessions/expire"
tags: ["Customer Portal"]
deprecated: true
---

# Expirar Checkout Session

`POST /checkout-sessions/expire`

## Request

- Base URL: `https://api.trytoku.com`
- URL: `https://api.trytoku.com/checkout-sessions/expire`
- Auth: API key in header `x-api-key`

> **Deprecated.**

Marca una Checkout Session como expirada para cerrarla antes de su fecha de vencimiento.

Es idempotente y nunca falla por el estado de la sesión: si ya está expirada, si ya se completó (`done`), o si el id no corresponde a ninguna Checkout Session, la operación responde igual y no cambia nada.

Cuando la sesión sí pasa a expirada se emite el webhook [`checkout_session.expired`](/reference/checkout-session-expired).

## Request body

- ExpireCheckoutSessionPayload: Subclass of BaseModel that handles encryption/decryption of ids to translate external ids to internal ids and vice versa. _models defines which db entity corresponds to each key in the way "key": "db model"
  - `id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

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

[Operation history](https://skmtc.dev/trytoku/apis/toku-api/changes/checkout-sessions/expire/post.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)
