---
title: "Cancel an open checkout session"
method: POST
path: "/api/v1/market/checkout_sessions/{sessionId}/cancel"
---

# Cancel an open checkout session

`POST /api/v1/market/checkout_sessions/{sessionId}/cancel`

## Request

- Base URL: `https://qomvia.com`
- URL: `https://qomvia.com/api/v1/market/checkout_sessions/{sessionId}/cancel`
- Auth: one of:
  - HTTP bearer
  - none

## Path parameters

- `sessionId` string, required

## Response `200`

The cancelled session.

- CheckoutSession
  - `id` string
  - `offerId` string
  - `status` 'open' | 'ready' | 'completed' | 'cancelled' | 'expired'
  - `mode` 'merchant_redirect' | 'qomvia_order'
  - `qty` integer
  - `goodsCents` integer
  - `discountCents` integer
  - `shippingCents` integer
  - `totalCents` integer
  - `currency` string
  - `paymentUrl` string, uri, nullable
  - `expiresAt` string, date-time

## Other responses

- `404`: Unknown session.
- `409`: A paid session cannot be cancelled.

---

[API](https://skmtc.dev/qomvia/apis/qomvia-public-api.md) · [All operations](https://skmtc.dev/qomvia/apis/qomvia-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qomvia/apis/qomvia-public-api/revisions/0faa5a30f1a7?raw)
