Create Service Items
POST/api/serviceitems/createserviceitem
Tier: Public — stable, supported for third-party integration.
Resolves and adds one or more item lines to a service record. Each line is resolved by an existing ItemId or by TagNumber. When a TagNumber does not resolve to an existing item and AutoCreateItems is true (the default), a new item is auto-created for that tag at CreatePlaceId (defaults to the organisation's root place). When AutoCreateItems is false, an unresolved tag is silently skipped — no line is added and no error is raised for it. Bumps the record's ScannedQty. Processing is guarded by a per-record lock.
Request
Responses
- 200
- 400
- 401
- 403
The created item lines. See Services.ServiceRecordItemDetailDto.
Unknown ServiceRecordId — InvalidValue "Id" "Service record doesn't exist"; per-line validation failures; or an insert failure — OperationFailed.
Caller is not authenticated.
Caller does not have Create permission on the ServiceRecord module.