> ## Documentation Index
> Fetch the complete documentation index at: https://developers.paysum.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel session

> Cancels a session that has not been paid. Completed sessions cannot be cancelled.

`POST /api/checkout-api/sessions/{session_id}/cancel`

Cancels a session that has not been paid. Completed sessions cannot be cancelled.

Permission: `checkout_api`

| Name | In | Type | Required | Description |
| - | - | - | - | - |
| `session_id` | path | string | yes | The session to cancel. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.