---
updatedAt: 2026-04-24T16:39:54.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# Get folio list of transactions exported as PDF

Get folio list of transactions exported as PDF

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Fiscal document service API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cloudbeds.com"
    }
  ],
  "paths": {
    "/fiscal-document/v1/folio-export/pdf": {
      "post": {
        "summary": "Get folio list of transactions exported as PDF",
        "description": "Get folio list of transactions exported as PDF",
        "operationId": "getFolioPdf",
        "security": [
          {
            "bearerAuth": []
          },
          {
            "oauth2": [
              "read:reservation"
            ]
          }
        ],
        "tags": [
          "Export"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/propertyIdHeader"
          },
          {
            "$ref": "#/components/parameters/acceptLanguageHeader"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolioExportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful file download",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Disposition": {
                "description": "Used to indicate if the content should be displayed inline or as an attachment.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.cloudbeds.com/auth/oauth/authorize",
            "tokenUrl": "https://api.cloudbeds.com/auth/oauth/token",
            "scopes": {
              "read:reservation": "Read fiscal documents and fiscalization configuration",
              "write:reservation": "Create, update, or void fiscal documents and fiscalization configuration"
            }
          }
        }
      }
    },
    "parameters": {
      "propertyIdHeader": {
        "name": "X-Property-ID",
        "in": "header",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64",
          "minimum": 1
        },
        "description": "Property id"
      },
      "acceptLanguageHeader": {
        "name": "Accept-Language",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Desired language of exported PDF"
      }
    },
    "schemas": {
      "RecipientRequest": {
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GUEST",
              "CONTACT",
              "GROUP",
              "COMPANY",
              "GROUP_PROFILE",
              "GROUP_PROFILE_CONTACT"
            ],
            "description": "Type of the recipient."
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "ID of the recipient, references guestId, contactId, groupId, etc. depending on type.",
            "minimum": 1
          },
          "taxDocumentSource": {
            "type": "string",
            "enum": [
              "GUEST_TAX_ID",
              "GUEST_DOCUMENT_NUMBER"
            ],
            "description": "Source of the tax document number."
          }
        }
      },
      "GetFolioExportRequest": {
        "type": "object",
        "required": [
          "sourceId",
          "sourceKind"
        ],
        "properties": {
          "folioIds": {
            "description": "Include transactions from the specified folio IDs. If omitted, all transactions for the source are included. The same filter set is applied to each selected folio.",
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "example": [
              3774744,
              7763263217
            ]
          },
          "sourceKind": {
            "$ref": "#/components/schemas/SourceKind"
          },
          "sourceId": {
            "description": "source ID of folio",
            "type": "integer",
            "format": "int64"
          },
          "creditDebitView": {
            "description": "Should transactions be separated into debit/credits",
            "type": "boolean"
          },
          "revenueCompact": {
            "description": "Compact revenue transactions, valid only for sourceKind = RESERVATION",
            "type": "boolean"
          },
          "dateFrom": {
            "description": "Filter transactions with transaction datetime from this point (inclusive). Required for sourceKind = HOUSE_ACCOUNT, optional for others.",
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": ""
          },
          "dateTo": {
            "description": "Filter transactions with transaction datetime up to this point (inclusive).",
            "type": "string",
            "format": "date",
            "nullable": true,
            "example": ""
          },
          "searchQuery": {
            "description": "Case-insensitive substring match on transaction description.",
            "type": "string",
            "nullable": true
          },
          "descriptionFilters": {
            "description": "Composite identifiers used to filter by transaction type. Accepts the same values as POST /accounting/v1.0/folios/transactions descriptionFilters: typed item ids (\"product_123\", \"tax_456\", \"addon_789\", \"fee_101\", \"custom_item_202\", \"bookable_resource_303\"), room revenue groups (\"rate\", \"roomRevenue_manual\", \"roomRevenue_cancellation\", \"roomRevenue_no_show\", \"accountsReceivable\"), or payment method codes (\"cash\", \"ebanking\", \"cards_visa\", \"cards_master\", \"pay_pal\").\n",
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "example": [
              "rate",
              "product_123",
              "cards_visa"
            ]
          },
          "posted": {
            "description": "Tri-state. true = only posted, false = only pending, omit = both.",
            "type": "boolean",
            "nullable": true
          },
          "includeVoided": {
            "description": "Include voided transactions and their full chain. Default true.",
            "type": "boolean",
            "default": true
          },
          "subSourceIds": {
            "description": "Filter by sub-source IDs (booking room IDs for RESERVATION sources). Mirrors the same filter on POST /accounting/v1.0/folios/transactions.\n",
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "sort": {
            "description": "Optional ordering applied to the rendered transactions. Field names mirror POST /accounting/v1.0/folios/transactions: transaction_datetime, service_date, internal_code, description, notes, quantity, amount. When omitted the renderer uses its template default order.\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FolioExportSort"
            },
            "nullable": true
          },
          "groupBy": {
            "$ref": "#/components/schemas/FolioExportGroupByField"
          },
          "subGroupBy": {
            "$ref": "#/components/schemas/FolioExportGroupByField"
          },
          "format": {
            "$ref": "#/components/schemas/ExportFormat"
          },
          "recipient": {
            "$ref": "#/components/schemas/RecipientRequest",
            "nullable": true
          }
        }
      },
      "FolioExportSort": {
        "type": "object",
        "required": [
          "field",
          "direction"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "Sort field name. One of: transaction_datetime, service_date, internal_code, description, notes, quantity, amount.\n"
          },
          "direction": {
            "type": "string",
            "enum": [
              "ASC",
              "DESC"
            ]
          }
        }
      },
      "FolioExportGroupByField": {
        "type": "string",
        "description": "Field to group the rendered transactions by. As groupBy, each group is followed by a subtotal row, a single group included, and the final row is the grand total. Groups keep the order in which they first appear under the requested sort, and transaction_date groups by the posting date. As subGroupBy, rows are ordered by this field inside each group (ignored without groupBy). Both are ignored for properties without the feature.accounting.folio-export-grouping flag. The plain names mirror the groupBy of POST /accounting/v1.0/folios/transactions and group as that folio table does: every pending row goes into one leading group. The *_legacy names group as the legacy folio screens do: pending rows stay in their groups, room_name_legacy puts a reservation payment under N/A unless the reservation has exactly one assigned room, description_filter_legacy groups by transaction type (so \"Room rate - Queen\" and \"Room rate - King\" both fall under \"rate\"), and transaction_datetime_legacy groups by the posting time to the second, as the group profile folio does. Whether pending rows are lifted follows groupBy.\n",
        "enum": [
          "transaction_date",
          "service_date",
          "description",
          "sub_source_identifier",
          "user_id",
          "reservation_name",
          "room_name",
          "transaction_date_legacy",
          "transaction_datetime_legacy",
          "service_date_legacy",
          "description_legacy",
          "description_filter_legacy",
          "sub_source_identifier_legacy",
          "user_id_legacy",
          "reservation_name_legacy",
          "room_name_legacy"
        ]
      },
      "ExportFormat": {
        "type": "string",
        "description": "Export file format",
        "enum": [
          "PDF",
          "XLSX"
        ]
      },
      "SourceKind": {
        "type": "string",
        "description": "Kind of the source entity",
        "enum": [
          "GROUP_PROFILE",
          "RESERVATION",
          "HOUSE_ACCOUNT",
          "ACCOUNTS_RECEIVABLE_LEDGER"
        ]
      }
    }
  }
}
```