Skip to main content
DELETE
Delete order
Deletes the order, its lines, the automatically assigned approval and status records and, if it has one, its customer movement. An order whose customer movement has been closed by a collection or payment cannot be deleted (6016, 6017). An order that other records (for example a quote or an opportunity) refer to cannot be deleted either (6014). There is no other restriction by status: see editing and deleting.

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

orderId
string<uuid>
required

Order ID.

Response

No Content