POST
/
transfer
/
virtual-account
curl --request POST \
  --url https://api.joinslash.com/transfer/virtual-account \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Idempotency-Key: <x-idempotency-key>' \
  --data '{
  "source": "<string>",
  "destination": "<string>",
  "amountCents": 123
}'
{
  "transferId": "<string>"
}

Authorizations

X-API-Key
string
header
required

Authentication from public API requests

Headers

X-Idempotency-Key
string
required

Unique key to ensure idempotency of the transfer.

Body

application/json
source
string
required

The ID of the virtual account to transfer money from. Can also be the virtual account linked to a primary Slash account to fund a new virtual account (Virtual account with the name 'Primary account').

destination
string
required

The ID of the virtual account to transfer money to.

amountCents
number
required

The amount of money to send in cents.

Response

200
application/json
OK
transferId
string
required

The ID of the transfer that was created.