---
updatedAt: 2025-06-04T20:06:03.000Z
agentTools:
  projectIndex: https://developers.plugg.to/llms.txt
---

# Pagination of invoices

## Information

You can limit the amount of invoices returned in the call using the "limit" parameter and paging the oldest invoices using the "next" parameter.

## Paging example

```curl Example URL
https://api.plugg.to/invoices?limit=10&next=60c117e2e9477925b11b3221
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-pluggto",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.plugg.to"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/invoices?limit={limit}&next={hash_next}": {
      "get": {
        "summary": "Pagination of invoices",
        "description": "",
        "operationId": "pagination-of-invoices",
        "parameters": [
          {
            "name": "limit",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            },
            "required": true
          },
          {
            "name": "hash_next",
            "in": "path",
            "description": "inform the last id returned",
            "schema": {
              "type": "string",
              "default": "last_pluggto_id"
            },
            "required": true
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Bearer Token",
            "schema": {
              "type": "string",
              "default": "Bearer {ACCESS_TOKEN}"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```