Fiscal Documents

Get fiscal document preview of the type rectify invoice

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
post/fiscal-document/v1/fiscal-documents/rectify-invoice/preview

Request

  • Base URL
    https://api.cloudbeds.com
  • URL
    https://api.cloudbeds.com/fiscal-document/v1/fiscal-documents/rectify-invoice/preview
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://api.cloudbeds.com/auth/oauth/authorize
      Token URL: https://api.cloudbeds.com/auth/oauth/token scopes: read:reservation

Headers

X-Property-IDinteger required

Property id

Request body

invoiceIdinteger required

ID of the invoice to be rectified.

Validation: This invoice must not have been previously rectified according to Spanish fiscal regulations.

reasonstring

Reason for rectifying the invoice

userIdinteger nullable

Ignored. The document is attributed to the authenticated user.

method'VOID' | 'ADJUSTMENT' required
transactionIdsinteger[] nullable

Include transactions with the specified IDs (deprecated, use includeTransactionIds instead)

folioIdsinteger[] nullable

Include all transactions from the specified folio IDs

excludeTransactionIdsinteger[] nullable

Exclude transactions with the specified IDs

includeTransactionIdsinteger[] nullable

Include transactions with the specified IDs

packageBreakdownboolean nullable

Per-document override for package breakdown. Null means use property default.

Response

Successful file download

Changes

No recorded changes to this operation across all 1 revision of this API.