Deletes one or more lines from a commercial order.
⚠️ Deletion is only permitted if all related logistic orders are in DRAFT_ORDER status.
A commercial order does not carry a status itself — the validation state is inherited from its logistic orders.
If all lines from a logistic order are deleted, the logistic order itself is also deleted along with its associated data.
This endpoint can be used by users other than the creator of the order, provided they belong to the same customer account and have the ORDER_UPDATE_LINES_ON_ALL_ACCOUNT permission enabled.
Permissions: Requires a valid API key and client type.
Multistore Support: Optional store view context header allows routing in multistore environments.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
204Line(s) successfully deleted.
If some lines could not be deleted (e.g. invalid status, missing permissions),
they are not deleted and included in a warning block in the response body.
⚠️ Although 204 typically implies no content, this implementation may include
a warning payload for partial deletions.
400The order is not in a deletable status or the request is malformed.
401Unauthorized – user is not allowed to delete lines for this order.
403Forbidden – user lacks the required role permission.
404Order or store/account not found.
