---
updatedAt: 2026-09-25T21:34:35.000Z
agentTools:
  projectIndex: https://docs.sivo.com/llms.txt
---

# Get a period's debt line or collateral statement as a PDF

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Sivo Advance API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://core.sivo.com"
    }
  ],
  "security": [
    {
      "APIKeyAuth": []
    },
    {
      "OAuth2": []
    }
  ],
  "components": {
    "securitySchemes": {
      "APIKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      },
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://core.sivo.com/oauth/token",
            "scopes": {}
          },
          "authorizationCode": {
            "authorizationUrl": "https://dashboard.sivo.com/oauth/authorize",
            "tokenUrl": "https://core.sivo.com/oauth/token",
            "refreshUrl": "https://core.sivo.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "paths": {
    "/debt-lines/{id}/statements/{period}/document": {
      "get": {
        "summary": "Get a period's debt line or collateral statement as a PDF",
        "tags": [
          "Debt Lines"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[a-z]{3,7}_[0-9A-Za-z]{27}$",
              "description": "An object id with prefix",
              "example": "user_0123456789ABCDEFGHIJKLMNOPq"
            },
            "required": true,
            "description": "An object id with prefix",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$",
              "description": "period of data to be retrieved",
              "example": "2024-01"
            },
            "required": true,
            "description": "period of data to be retrieved",
            "name": "period",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "debt_line",
                "collateral"
              ],
              "description": "statement account: debt_line (principal and fees ledgers) or collateral"
            },
            "required": true,
            "description": "statement account: debt_line (principal and fees ledgers) or collateral",
            "name": "account",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "file_name": {
                      "type": "string",
                      "minLength": 1,
                      "description": "suggested file name of the statement PDF"
                    },
                    "pdf_base64": {
                      "type": "string",
                      "description": "the statement PDF, base64-encoded"
                    }
                  },
                  "required": [
                    "file_name",
                    "pdf_base64"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}
```