---
title: "Get fiscal document preview of the type rectify invoice"
method: POST
path: "/fiscal-document/v1/fiscal-documents/rectify-invoice/preview"
tags: ["Fiscal Documents"]
---

# Get fiscal document preview of the type rectify invoice

`POST /fiscal-document/v1/fiscal-documents/rectify-invoice/preview`

Get fiscal document preview of the type rectify invoice.
**Spanish Fiscal Regulations:**
- Only available for properties in Spain
- An invoice that has already been rectified cannot be rectified again
- To make corrections to a rectified invoice, you must rectify the most recent invoice in the rectification chain
**Validation Rules:**
- The target invoice must not have been previously rectified
- If the invoice has been rectified, the API will return an error with details about which invoice should be rectified instead

## Headers

- `X-Property-ID` integer, required

## Request body

- GetRectifyInvoiceNotePreviewRequest — Request to create a rectifying invoice. Only available for Spanish properties. **Important:** The specified invoice must not have been previously rectified. If it has been rectified, you must rectify the most recent invoice in the rectification chain instead.
  - `invoiceId` integer, required — ID of the invoice to be rectified. **Validation:** This invoice must not have been previously rectified according to Spanish fiscal regulations.
  - `reason` string — Reason for rectifying the invoice
  - `userId` integer — ID of the user creating the rectification
  - `method` 'VOID' | 'ADJUSTMENT', required
  - `transactionIds` integer[], nullable — Include transactions with the specified IDs (deprecated, use `includeTransactionIds` instead)
  - `folioIds` integer[], nullable — Include all transactions from the specified folio IDs
  - `excludeTransactionIds` integer[], nullable — Exclude transactions with the specified IDs
  - `includeTransactionIds` integer[], nullable — Include transactions with the specified IDs

## Response `200`

Successful file download

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
