Skip to main content
POST
/
wallet
/
loans
/
draw
Draw Loan Funds
curl --request POST \
  --url https://api.rolla.xyz/api/v1/external/wallet/loans/draw \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "loanAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "destinationWalletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 50000,
  "description": "<string>"
}
'
{
  "success": true,
  "message": "Loan funds drawn successfully",
  "data": {
    "transaction": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "deposit",
      "status": "pending",
      "amount": 123,
      "currency": "<string>",
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    },
    "loanBalance": 2050000,
    "availableBalance": 2950000
  }
}
Draw funds from a loan account into a destination wallet.

Example Request

curl -X POST "https://api.rolla.xyz/api/v1/external/wallet/loans/draw" \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "loanAccountId": "d4e5f6a7-b8c9-0123-defg-456789012345",
    "destinationWalletId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "amount": 50000,
    "description": "Draw funds for operations"
  }'

Example Response

{
  "success": true,
  "message": "Loan funds drawn successfully",
  "data": {}
}
The draw amount cannot exceed the available_balance of the loan account. Use /wallet/loans to check available credit before drawing.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Body

application/json
loanAccountId
string<uuid>
required

ID of the loan account to draw from

destinationWalletId
string<uuid>
required

ID of the wallet to receive funds

amount
number
required

Amount to draw (positive number)

Example:

50000

description
string

Optional description

Maximum string length: 500

Response

Loan funds drawn successfully

success
boolean
Example:

true

message
string
Example:

"Loan funds drawn successfully"

data
object