Sales

Delete a sales invoice

Changed on

Existing removal endpoint, including test drafts. DRAFT is deleted permanently; an eligible issued invoice is soft-deleted. Related documents, read-only or accounting-approved documents, and invoices submitted to or accepted by KSeF cannot be deleted. fullDelete and softDelete count removed invoice records. This endpoint uses POST, not DELETE.

post/sales/delete

Request

  • Base URL
    https://api.altera.co
  • URL
    https://api.altera.co/sales/delete
  • Auth
    API key in header Authorization

Request body

invoiceIdinteger required
reasonstring

Optional deletion reason.

Response

Removal processed. Inspect fullDelete and softDelete to determine how many invoice records were removed.

result'OK' required

Changes