Skip to main content
POST
/
api
/
v2
/
virtual-accounts
/
{id}
/
withdrawals
Create withdrawal from virtual account
curl --request POST \
  --url https://sandbox.killb.app/api/v2/virtual-accounts/{id}/withdrawals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 100,
  "accountId": "4d23aa52-1b40-4584-a8ea-58aba6099c5c"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "virtualAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 123,
  "currency": "<string>",
  "network": "<string>",
  "address": "<string>",
  "status": "PENDING",
  "metadata": {},
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "transferId": "<string>",
  "transferProof": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

Body

application/json
amount
number
required

Amount to withdraw

Example:

100

accountId
string<uuid>
required

Destination account ID

Example:

"4d23aa52-1b40-4584-a8ea-58aba6099c5c"

Response

id
string<uuid>
required
virtualAccountId
string<uuid>
required
customerId
string<uuid>
required
userId
string<uuid>
required
amount
number
required
currency
string
required
network
string
required
address
string
required
status
enum<string>
required
Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED,
REJECTED
metadata
object
required
active
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
transferId
string
transferProof
string