Skip to main content
DELETE
Delete sales return invoice
Deletes the invoice, its lines and the warehouse document generated behind them. A Lot that has already been consumed by an outbound transaction, or a serial number that has already been dispatched, blocks the deletion of the line it belongs to. An invoice whose customer ledger entry has already been closed by a collection cannot be deleted (3015), and neither can one referenced by other records (3012).

Error codes

Codes this endpoint can return. The general errors that apply to every endpoint (authentication, permissions, request headers, daily limit) are not repeated here.

Authorizations

Authorization
string
header
required

Access token obtained from the Noyax auth service with your API key.

Headers

X-UserID
integer<int32>
required

ID of the Noyax user the request is made on behalf of. Written to the audit fields of created, updated and deleted records.

Required range: x >= 1
X-CompanyID
integer<int32>
required

ID of the company. The user must be assigned to this company. All reads and writes are limited to this company.

Required range: x >= 1
X-PeriodID
integer<int32>

ID of the accounting period. Optional for customer endpoints; if sent, it is written to created records.

Required range: x >= 1

Path Parameters

invoiceId
string<uuid>
required

Invoice ID.

Response

No Content