---
title: "Get user's invoices with pagination and filtering"
method: GET
path: "/api/v1/invoices/"
tags: ["invoices"]
---

# Get user's invoices with pagination and filtering

`GET /api/v1/invoices/`

## Request

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

Get user's invoices with pagination and filtering

## Query parameters

- `limit` number
- `offset` number
- `type` 'sent' | 'received' | 'all'
- `status` string
- `fields` string
- `sort` string

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `invoices` object[], required
      - `id` number
      - `invoicerId` string
      - `recipientId` string
      - `amount` number
      - `memo` string, nullable
      - `status` string
      - `createdAt` string
      - `expiresAt` string
      - `invoicer` object
        - `discordId` string, required
        - `username` string, nullable
        - `farmName` string, nullable
        - `image` string, nullable
      - `recipient` object
        - `discordId` string, required
        - `username` string, nullable
        - `farmName` string, nullable
        - `image` string, nullable
      - `_links` object
  - `meta` object, required
    - `timestamp` number, required
    - `pagination` object, required
      - `total` number, required
      - `limit` number, required
      - `offset` number, required
      - `hasMore` boolean, required
  - `_links` object: HATEOAS pagination links
    - `self` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `first` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `prev` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `next` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string
    - `last` object
      - `href` string, required
      - `rel` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
      - `type` string

## 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)
