Deactivate a virtual account
Pause a virtual account; it stops receiving until reactivated.
curl -X POST "https://sandbox.rasto.co/api/virtual_accounts/va_03567eKJhjscfQ4jUTOaS1/deactivate" \
-H "Content-Type: application/json" \
-H "Api-Version: 2026-08-01" \
-H "Idempotency-Key: 6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63" \
-H "Api-Key: YOUR_API_KEY"
import requests
import json
url = "https://sandbox.rasto.co/api/virtual_accounts/va_03567eKJhjscfQ4jUTOaS1/deactivate"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
}
response = requests.post(url, headers=headers)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/virtual_accounts/va_03567eKJhjscfQ4jUTOaS1/deactivate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("POST", "https://sandbox.rasto.co/api/virtual_accounts/va_03567eKJhjscfQ4jUTOaS1/deactivate", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Api-Version", "2026-08-01")
req.Header.Set("Idempotency-Key", "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63")
req.Header.Set("Api-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://sandbox.rasto.co/api/virtual_accounts/va_03567eKJhjscfQ4jUTOaS1/deactivate')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Api-Version'] = '2026-08-01'
request['Idempotency-Key'] = '6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63'
request['Api-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"created_at": "2026-11-29T17:59:22.330302+00:00",
"currency": "usd",
"customer_id": "cus_03567dbmmINi56C3sJCM7O",
"deposit_instructions": {
"account_holder_address": "123 Sandbox Lane, Sandbox City, 00000, US",
"account_holder_name": "Ana Silva",
"account_number": "522482119996",
"bank_address": "1 Fake Plaza, New York, NY 10001",
"bank_name": "Fake Bank N.A.",
"currency": "usd",
"deposit_reference": null,
"kind": "us_bank_account",
"payment_rails": [
"ach",
"rtp",
"wire"
],
"routing_number": "021000021",
"routing_number_ach": "021000021",
"routing_number_rtp": "021000023",
"routing_number_wire": "021000022"
},
"destination": {
"address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"chain": "solana",
"currency": "usdc",
"kind": "address",
"network": "testnet",
"wallet_id": null
},
"id": "va_03567eKJhjscfQ4jUTOaS1",
"object": "virtual_account",
"partner_fee_bps": "100",
"partner_fee_flat": "0",
"partner_reference_id": null,
"status": "deactivated"
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567kyZfnlm2KGzPbSjiw"
}
}
{
"error": {
"code": "virtual_account_not_found",
"kind": "not_found_error",
"message": "No such virtual account.",
"param": null,
"request_id": "req_03567kyZxsuiSckthdEaWO"
}
}
{
"error": {
"code": "rate_limited",
"kind": "rate_limit_error",
"message": "Too many requests. Back off and retry after the indicated delay.",
"param": null,
"request_id": "req_03567kyZfnlm2KGzPbSjiw"
}
}
{
"error": {
"code": "upstream_error",
"kind": "api_error",
"message": "The request could not be completed right now. Nothing was charged or changed; retry shortly, and contact support if it persists.",
"param": null,
"request_id": "req_03567kyZfnlm2KGzPbSjiw"
}
}
/api/virtual_accounts/{virtual_account_id}/deactivateTarget server for requests. Edit to use your own host.
Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.The virtual account's id (va_...).
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Path Parameters
Headers
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
2026-08-01A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63Responses
When the object was created, as an ISO 8601 timestamp.
The fiat currency the account receives.
The customer the object belongs to.
Everything a sender's bank needs to pay the account, in the payment rail's native fields. While the account is pending it carries only kind, currency, payment_rails and deposit_reference.
Where each deposit on the account is delivered: an address, one of the customer's wallets, or one of the customer's external accounts.
The object's unique identifier. Its prefix names the object kind, for example cus_ for a customer.
The kind of object this is, for example customer or transaction. Every object the API returns carries it.
Your own fee on each deposit, in bps of the deposit amount, as a decimal string. 0 when you charge none; never null.
The flat part of your own fee on each deposit, as a decimal string. 0 when you charge none; never null.
Your own identifier for the object, unique per environment. null when you set none.
The virtual account's status: pending, active, deactivated, frozen or closed.