Skip to main content
POST
Cancel tax documents in batch
Send a multipart/form-data request whose file part is a CSV file: comma-separated, with a header row and one row per tax document to cancel. Only the taxDocumentId column is read; every other column is ignored, so the export of your tax documents can be uploaded as it is. A row without a valid taxDocumentId is rejected. The whole upload is validated first: if any row is invalid nothing is cancelled, and fields points at the row by its position, where taxDocuments[0] is the first row after the header. When the upload is valid, the response only means the rows were accepted. The cancellation of each tax document is then requested in the background, so a row can still fail later: a tax document that is not one of your organization’s is not cancelled, and one that cannot be cancelled in its current state, for example because it is not authorized yet, is skipped. Upload each tax document once, because asking again to cancel one that is already being cancelled fails.

Path Parameters

realmId
string<uuid>
required

ID of your realm.

Format: UUID

organizationId
string<uuid>
required

ID of the organization.

Format: UUID

Body

multipart/form-data
file
file
required

The CSV file, with a header row and one row per tax document to cancel. Only the taxDocumentId column is read; see the operation description. Required, not empty, at most 4 MB; its file name must end in .csv, or its content type be text/csv, application/vnd.ms-excel or text/plain.

Response

Successful response

Acknowledgement that a CSV batch was accepted. Each row is processed in the background.

message
string
required

Confirms what was requested. It only means the rows were accepted, not that every document was already issued or cancelled.

Example:

"Batch cancellation requested."

count
number
required

Number of CSV rows accepted for processing.

Example:

25