cURL
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 } }
Draws funds from a loan account into a destination wallet.
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" }'
{ "success": true, "message": "Loan funds drawn successfully", "data": {} }
available_balance
/wallet/loans
Your Rolla API key
ID of the loan account to draw from
ID of the wallet to receive funds
Amount to draw (positive number)
50000
Optional description
500
Loan funds drawn successfully
true
"Loan funds drawn successfully"
Show child attributes