Skip to main content
POST
/
api
/
v2
/
savings
/
withdrawal
Create withdrawal
curl --request POST \
  --url https://sandbox.killb.app/api/v2/savings/withdrawal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": {
    "savingsAccountId": "<string>"
  },
  "destination": {
    "savingsAccountId": "<string>",
    "externalAccountId": "<string>"
  },
  "amount": 123,
  "comment": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "CREATED",
  "amount": 123,
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "DEPOSIT",
  "source": {
    "currency": "<string>",
    "custodialAccountId": "<string>"
  },
  "destination": {
    "currency": "<string>",
    "externalAccountId": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
source
object
required
destination
object
required
amount
number
required
comment
string
required

Response

id
string<uuid>
required
status
enum<string>
required
Available options:
CREATED,
PENDING,
PROCESSING,
CONFIRMED,
REFUNDED,
COMPLETED,
CANCELED,
EXPIRED,
FAILED,
ERROR,
REJECTED
amount
number
required
userId
string<uuid>
required
type
enum<string>
required
Available options:
DEPOSIT,
WITHDRAWAL
source
object
required
destination
object
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required