---
title: "Generate and download a report for one connection"
method: GET
path: "/fiscal-document/v1/fiscalization/connections/{connectionId}/reports/{reportId}"
tags: ["Fiscalization"]
---

# Generate and download a report for one connection

`GET /fiscal-document/v1/fiscalization/connections/{connectionId}/reports/{reportId}`

## Request

- Base URL: `https://api.cloudbeds.com`
- URL: `https://api.cloudbeds.com/fiscal-document/v1/fiscalization/connections/{connectionId}/reports/{reportId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.cloudbeds.com/auth/oauth/authorize`
    - Token URL: `https://api.cloudbeds.com/auth/oauth/token` scopes: `read:reservation`

Generates a country-specific report (e.g. SAF-T for Portugal) from the registration behind the given connection. Reports are a per-connection section, so a property holding more than one connection gets a distinct report per connection.

## Path parameters

- `connectionId` integer, required
- `reportId` string, required

## Query parameters

- `year` integer, required
- `period` integer

## Headers

- `X-Property-ID` integer, required

## Response `200`

Report generated successfully

## Other responses

- `400`: Invalid parameters
- `404`: Connection not registered or report not available

---

[API](https://skmtc.dev/cloudbeds/apis/fiscal-document-service-api.md) - [All operations](https://skmtc.dev/cloudbeds/apis/fiscal-document-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/fiscal-document-service-api/revisions/9c2a47775e5e?raw)
