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

# Void a receipt

Voids a receipt by updating its status to VOIDED.
The receipt must be in OPEN status.
For Italy, a refund receipt will be automatically created and linked to the voided receipt.


# 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/fiscal-documents/receipts/{receiptId}/void": {
      "post": {
        "summary": "Void a receipt",
        "description": "Voids a receipt by updating its status to VOIDED.\nThe receipt must be in OPEN status.\nFor Italy, a refund receipt will be automatically created and linked to the voided receipt.\n",
        "operationId": "voidReceipt",
        "security": [
          {
            "bearerAuth": []
          },
          {
            "oauth2": [
              "write:reservation"
            ]
          }
        ],
        "tags": [
          "Fiscal Documents"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/propertyIdHeader"
          },
          {
            "name": "receiptId",
            "in": "path",
            "description": "The ID of the receipt to void",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoidReceiptRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Receipt successfully voided"
          },
          "400": {
            "description": "Bad Request - Invalid status or document type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Receipt not found"
          }
        }
      }
    }
  },
  "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"
      }
    },
    "schemas": {
      "VoidReceiptRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "Cancellation reason for the fiscal authority. Required on Mexico when voiding a\nfiscalized payment receipt (CFDI tipo P), where it is the SAT motivo de cancelacion:\n\"02\" (issued with errors, no substitute) or \"03\" (operation not carried out).\nDefaults to \"03\" when omitted. Ignored by countries that do not fiscalize a receipt\nvoid.\n",
            "example": "03"
          }
        }
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "errorCode": {
            "type": "string"
          },
          "errorDetails": {
            "type": "string"
          }
        }
      }
    }
  }
}
```