Delete Service Items
POST/api/serviceitems/deleteserviceitems
Tier: Public — stable, supported for third-party integration.
Soft deletes a batch of service item lines belonging to a single record, bumping the record's ScannedQty.
Partial-success behaviour: a line that cannot be resolved, or that belongs to a different record than ServiceRecordId, is accumulated as an error and the loop continues to the remaining lines rather than failing the whole batch atomically — the response's error array can therefore be non-empty alongside a successful (200) result for the other lines.
Request
Responses
- 200
- 400
- 401
- 403
The keys of the successfully deleted item lines. See Services.DeleteServiceRecordItemDto.
One or more lines unresolvable or belonging to a different record — InvalidReference (accumulated, see remarks); or an insert/delete failure — OperationFailed.
Caller is not authenticated.
Caller does not have Delete permission on the ServiceRecord module.