---
title: "virtual-account/close"
method: POST
path: "/virtual-account/close"
tags: ["Virtual Account Endpoints"]
---

# virtual-account/close

`POST /virtual-account/close`

## Request

- Base URL: `https://earthnode-dev.vopay.com/api/v2`
- URL: `https://earthnode-dev.vopay.com/api/v2/virtual-account/close`
- Auth: none declared

Close (deactivate) a virtual account. The virtual account balance must be zero (both the available balance and any pending balance) before it can be closed. Canadian virtual accounts are provisioned by VoPay, so this call returns an error for them.

## Request body `application/x-www-form-urlencoded`

- object
  - `AccountID` string, required: Your account ID
  - `Key` string, required: API key for the account
  - `Signature` string, required: Hashed signature for the request
  - `VirtualAccountID` string, required: The ID of the virtual account to close

## Response `200`

- object
  - `Success` boolean, required: True if the request was successful, false if it failed
  - `ErrorMessage` string, required: Contains a description of the error if the request failed
  - `VirtualAccountID` string, required: The ID of the virtual account that was closed

---

[API](https://skmtc.dev/vopay/apis/virtual-accounts.md) - [All operations](https://skmtc.dev/vopay/apis/virtual-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/vopay/apis/virtual-accounts/revisions/d1ddfbd67e8f?raw)
