---
title: "Get all pending and offered loans"
method: GET
path: "/api/v1/loans/pending"
tags: ["loans"]
---

# Get all pending and offered loans

`GET /api/v1/loans/pending`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/loans/pending`
- Auth: HTTP bearer

Get all pending and offered loans

**Required Permissions:** loans:offer

## Query parameters

- `serverId` number
- `limit` number
- `offset` number

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `loans` object[]
      - `id` number
      - `borrowerId` string
      - `borrower` object
        - `discordId` string
        - `username` string, nullable
        - `farmName` string, nullable
        - `nickname` string, nullable
        - `image` string, nullable
        - `color` string, nullable
      - `amount` number
      - `term` number
      - `apr` number
      - `reason` string, nullable
      - `status` string
      - `createdAt` string
    - `total` number
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
