Close a virtual account

Changed on

Close an accessible virtual account. Pending transfers from it are canceled, cards attached to it are closed, and its remaining balance is moved to the Account's primary virtual account shortly after the response, so the returned balance may still be non-zero. Inbound transfers addressed to a closed virtual account are returned. The primary virtual account cannot be closed, and closing cannot be reversed.

post/v2/virtual-accounts/{virtualAccountId}/close

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/virtual-accounts/{virtualAccountId}/close
  • Auth
    API key in header X-API-Key

Path parameters

virtualAccountIdstring required

Virtual account id with the subaccount_ prefix.

Response

The closed virtual account.

idstring required

Virtual account id with the subaccount_ prefix.

namestring required
accountIdstring required

Parent Account id with the sa_group_ prefix.

accountType'primary' | 'default' required
status'open' | 'closed' required

Example response

{
  "commission": {
    "amount": {
      "amount": 1250
    }
  }
}

Changes