Virtual accountsDeactivate a virtual account

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"
{
  "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"
}
POST
/api/virtual_accounts/{virtual_account_id}/deactivate
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

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.

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
virtual_account_idstring
Required

The virtual account's id (va_...).

header
Api-Versionstring

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.

header
Idempotency-Keystring
Required

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

header
Api-Keystring
Required

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

virtual_account_idstring
Required

The virtual account's id (va_...).

Example:
va_03567eKJhjscfQ4jUTOaS1

Headers

Api-Versionstring

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.

Example:
2026-08-01
Idempotency-Keystring
Required

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.

Example:
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63

Responses

created_atstring

When the object was created, as an ISO 8601 timestamp.

currencystring

The fiat currency the account receives.

customer_idstring

The customer the object belongs to.

deposit_instructionsobject

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.

destinationobject

Where each deposit on the account is delivered: an address, one of the customer's wallets, or one of the customer's external accounts.

idstring

The object's unique identifier. Its prefix names the object kind, for example cus_ for a customer.

objectstring

The kind of object this is, for example customer or transaction. Every object the API returns carries it.

partner_fee_bpsstring

Your own fee on each deposit, in bps of the deposit amount, as a decimal string. 0 when you charge none; never null.

partner_fee_flatstring

The flat part of your own fee on each deposit, as a decimal string. 0 when you charge none; never null.

partner_reference_idstring

Your own identifier for the object, unique per environment. null when you set none.

statusstring

The virtual account's status: pending, active, deactivated, frozen or closed.