---
title: "Execute the cancellation"
method: POST
path: "/api/cancellation/confirm"
tags: ["Cancellation"]
---

# Execute the cancellation

`POST /api/cancellation/confirm`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/cancellation/confirm`
- Auth: API key in cookie `luca.session_token`

Cancels for real. It returns when access ends, whether a refund went out, and the deadline for exporting voice data. Inside the 72-hour renewal grace window it refunds and ends access now. Mid-pause it also ends now. Otherwise access runs to the end of the paid period.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Headers

- `Luca-API-Version` '1'

## Request body

- CancellationConfirmRequest
  - `flowSessionId` string, uuid, required
  - `offerDeclined` boolean

## Response `200`

ok

- CancellationConfirmResponse
  - `ok` true, required
  - `accessEndsAt` string, nullable, required
  - `refundIssued` boolean, required
  - `voiceDeadline` string, required

## Other responses

- `401`: unauthorized
- `404`: not found
- `409`: conflict
- `429`: rate limited
- `500`: internal error
- `502`: upstream failure

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
