---
title: "Cancel Wechat Ticket"
method: POST
path: "/account/login-methods/wechat/tickets/{ticket_id}/cancel"
tags: ["account"]
---

# Cancel Wechat Ticket

`POST /account/login-methods/wechat/tickets/{ticket_id}/cancel`

## Request

- Base URL: `https://api.beatra.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.beatra.ai/account/login-methods/wechat/tickets/{ticket_id}/cancel`
- Auth: none declared

## Path parameters

- `ticket_id` string, required

## Request body

- TicketSecretRequest
  - `scan_secret` string, nullable

## Response `200`

Successful Response

- TicketViewOut
  - `status` string, required
  - `purpose` 'link' | 'reauth' | 'merge', required
  - `account` TicketAccountOut, required
    - `kind` string, required
    - `text` string, nullable, required
    - `registered_on` string, nullable, required
  - `requester` TicketRequesterOut, required
    - `os` string, nullable, required
    - `browser` string, nullable, required
    - `app` string, nullable, required
  - `created_at` string, required
  - `other` TicketAccountOut, nullable
    - `kind` string, required
    - `text` string, nullable, required
    - `registered_on` string, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `157cd97ccca2`: 1 warning, 1 info
  - added the new `merge` enum value to the `purpose` response property for the response status `200`
  - added the optional property `other` to the response with the `200` status
- **2026-10-29** `5f24507e371d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beatra/apis/agent-service-api/changes/account/login-methods/wechat/tickets/:ticket_id/cancel/post.md)

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) - [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/54a093c28eee?raw)
