Skip to main content
GET
/
wallet
/
loans
Get Loan Accounts
curl --request GET \
  --url https://api.rolla.xyz/api/v1/external/wallet/loans \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Loan accounts retrieved successfully",
  "data": {
    "loans": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "currency": "<string>",
        "limit": 123,
        "balance": 123,
        "available_balance": 123,
        "status": "<string>",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}
Retrieve all loan accounts associated with your business, including balances and available credit.

Example Request

curl -X GET "https://api.rolla.xyz/api/v1/external/wallet/loans" \
  -H "X-API-Key: your_api_key_here"

Example Response

{
  "success": true,
  "message": "Loan accounts retrieved successfully",
  "data": {
    "loans": [
      {
        "id": "d4e5f6a7-b8c9-0123-defg-456789012345",
        "currency": "NGN",
        "limit": 5000000,
        "balance": 2000000,
        "available_balance": 3000000,
        "status": "active",
        "created_at": "2024-01-10T08:00:00.000Z"
      }
    ]
  }
}
The available_balance is the remaining amount you can draw from the loan. The balance is the amount currently drawn.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Response

Loan accounts retrieved successfully

success
boolean
Example:

true

message
string
Example:

"Loan accounts retrieved successfully"

data
object