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

# Cerrar cuenta

> Cierra una cuenta bancaria de una entidad con onboarding completado mediante Banking Connectivity

Cierra una cuenta de Banking Connectivity. La cuenta debe tener saldo cero antes de poder cerrarse.


## OpenAPI

````yaml openapi/es/banking-connectivity/accounts/close-account-banking.json DELETE /banking/accounts/{account_id}
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/accounts/{account_id}:
    delete:
      tags:
        - Accounts (Banking Connectivity)
      summary: Cerrar cuenta (Banking Connectivity)
      operationId: delete_v1-banking-connectivity-accounts-account-id
      parameters:
        - in: path
          name: account_id
          schema:
            type: string
          required: true
          description: >-
            El identificador único de la cuenta. Lo encuentras en el [Dashboard
            de Yuno](https://dashboard.y.uno/) (UUID, 36 caracteres).
      responses:
        '204':
          description: >-
            Sin contenido. La cuenta está cerrada y la respuesta no tiene
            cuerpo.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account must have a zero balance before it can be closed
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Account must have a zero balance before it can be closed
          description: Solicitud incorrecta
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ACCOUNT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ACCOUNT_NOT_FOUND
                    messages:
                      - Account 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.