---
updatedAt: 2025-11-28T22:30:14.000Z
agentTools:
  projectIndex: https://docs.bcb.group/llms.txt
---

# Close Virtual Account

Closes the virtual account with the given IBAN

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payments API",
    "description": "This is the api documentation for the BCB Group Payments API",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.bcb.group",
      "description": "Production"
    },
    {
      "url": "https://api.uat.bcb.group",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/v1/accounts/{accountId}/virtual/{iban}/close": {
      "post": {
        "summary": "Close Virtual Account",
        "description": "Closes the virtual account with the given IBAN",
        "operationId": "VirtualAccounts_CloseVirtualAccountV1",
        "parameters": [
          {
            "name": "accountId",
            "required": true,
            "in": "path",
            "description": "The account id for the segregated account",
            "schema": {
              "example": 123,
              "type": "number"
            }
          },
          {
            "name": "iban",
            "required": true,
            "in": "path",
            "description": "The IBAN of the virtual account",
            "schema": {
              "example": "GB33BUKB20201555555555",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "The virtual account closure request was received successfully"
          },
          "404": {
            "description": "The accountId or IBAN is unknown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Virtual Accounts"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The description of the error."
          },
          "statusCode": {
            "type": "integer",
            "description": "HTTP Status code representing the error."
          }
        },
        "required": [
          "message",
          "statusCode"
        ]
      }
    }
  }
}
```