Delete purchase order lines
DELETE/v1/purchaseorderline
Soft-delete purchase order lines based on filter criteria. Sets is_deleted = true
and deleted_at = NOW().
Cascade: matched lines also soft-delete their child purchase_order_receipt
rows (via source_line_id).
No action field: previous versions accepted action: 'delete' | 'deactivate'.
That parameter is no longer supported — the only supported behavior is
soft-delete. Sending action in the request body returns 400.
Filter parameters array — each entry runs as one independent UPDATE; fields within an entry combine with AND. Maximum 50 filter entries per request.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Purchase order lines soft-deleted successfully (receipts cascaded)
Bad request - legacy action field present, or missing parameters
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
No matching purchase order lines found
Internal server error