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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 取消实体 onboarding（银行连接）

> 取消通过银行连接服务提供商进行中的实体 onboarding

> [!WARNING]
>
> 此 endpoint 目前尚未通过公共 API 提供。对此路径的请求会返回 404 `NOT_FOUND`。本页其余部分描述的行为目前尚未实现。

取消待处理的 onboarding。只有尚未达到终态的 onboarding 才能取消。哪些状态属于终态，请参阅 [Onboarding 状态](https://docs.y.uno/zh-hans/reference/banking-connectivity.md#onboarding-statuses)。


## OpenAPI

````yaml openapi/zh-hans/banking-connectivity/entity-onboarding-banking-connectivity/cancel-entity-onboarding.json POST /banking/entities/{entity_id}/onboardings/{onboarding_id}/cancel
openapi: 3.0.0
info:
  version: 1.0.0
  title: Banking Connectivity
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - public-api-key: []
    private-secret-key: []
paths:
  /banking/entities/{entity_id}/onboardings/{onboarding_id}/cancel:
    post:
      tags:
        - Entity Onboarding (Banking Connectivity)
      summary: 取消实体 onboarding（银行连接）
      operationId: >-
        post_v1-banking-connectivity-entities-entity-id-onboardings-onboarding-id-cancel
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: >-
            从[创建实体](/zh-hans/reference/banking-connectivity/entities-banking-connectivity/create-entity)获取的实体的
            `id`。
        - in: path
          name: onboarding_id
          schema:
            type: string
          required: true
          description: >-
            从[创建实体](/zh-hans/reference/banking-connectivity/entities-banking-connectivity/create-entity)获取的实体的
            `id`。
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      name: example_bank
                      entity_id: col_entity_onboarded_123
                      status: cancelled
                    onboarding_type: ONE_STEP
                    status: CANCELLED
                    requirements: []
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-02T08:45:00Z'
                    expires_at: '2026-02-08T10:00:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: 服务提供商名称。
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: cancelled
                    description: 服务提供商的 onboarding 详情。可选：为空时省略该字段。
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: CANCELLED
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 该 onboarding 的未完成要求。可选：为空时省略该字段。
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-02T08:45:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 该 onboarding 的过期时间。可选：为空时省略该字段。
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: 服务提供商名称。
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: cancelled
                    description: 服务提供商的 onboarding 详情。可选：为空时省略该字段。
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: CANCELLED
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 该 onboarding 的未完成要求。可选：为空时省略该字段。
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-02T08:45:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 该 onboarding 的过期时间。可选：为空时省略该字段。
          description: Accepted
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: >-
                        Onboarding has reached a terminal status and cannot be
                        cancelled
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - >-
                        Onboarding has reached a terminal status and cannot be
                        cancelled
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ONBOARDING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ONBOARDING_NOT_FOUND
                    messages:
                      - Onboarding not found
          description: Not Found
components:
  securitySchemes:
    public-api-key:
      type: apiKey
      in: header
      name: public-api-key
    private-secret-key:
      type: apiKey
      in: header
      name: private-secret-key

````

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