Create a fiscal document of the type rectify invoice

Create a fiscal document 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
Body Params
int64
required

ID of the invoice to be rectified.

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

string

Reason for rectifying the invoice

int64

ID of the user creating the rectification

string
enum
required
Allowed:
transactionIds
array of int64s | null
deprecated

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

transactionIds
folioIds
array of int64s | null

Include all transactions from the specified folio IDs

folioIds
excludeTransactionIds
array of int64s | null

Exclude transactions with the specified IDs

excludeTransactionIds
includeTransactionIds
array of int64s | null

Include transactions with the specified IDs

includeTransactionIds
Headers
int64
required
≥ 1

Property id

Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json