> ## 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.

# Cancelar una transferencia de entidad (Banking Connectivity)

> Cancela una transferencia saliente pendiente antes de que llegue a la red de pagos

Cancela una transferencia pendiente. Solo se pueden cancelar las transferencias en estado `PENDING`. Las transferencias que pasaron a `PROCESSING` o a estados posteriores no se pueden cancelar.


## OpenAPI

````yaml openapi/es/banking-connectivity/entity-transfers-banking-connectivity/cancel-entity-transfer.json POST /banking/transfers/{transfer_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/transfers/{transfer_id}/cancel:
    post:
      tags:
        - Entity Transfers (Banking Connectivity)
      summary: Cancel Entity Transfer (Banking Connectivity)
      operationId: post_v1-banking-transfers-transfer-id-cancel
      parameters:
        - in: path
          name: transfer_id
          schema:
            type: string
          required: true
          description: >-
            El `id` de la transferencia obtenido de [Initiate Entity
            Transfer](/es/reference/banking-connectivity/entity-transfers-banking-connectivity/initiate-entity-transfer)
            (UUID, 36 caracteres).
      responses:
        '200':
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Only transfers in PENDING status can be cancelled
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Only transfers in PENDING status can be cancelled
          description: Solicitud incorrecta
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: TRANSFER_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Transfer not found.
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: TRANSFER_NOT_FOUND
                    messages:
                      - Transfer not found.
          description: No encontrado
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.