Create Service Master
POST/api/services/createservice
Tier: Public — stable, supported for third-party integration.
Creates a service definition (Services.ServiceMaster).
System service types constrain the linked entity: DeliverItem/PickupItem require an existing ItemId; DeliverSku/PickupSku require an existing SkuId; both an ItemId and a SkuId set simultaneously is rejected; non-system types may have neither.
Request
Responses
- 200
- 400
- 401
- 403
The created service definition. See Services.ServiceMasterSummaryDto.
Missing ServiceCode — MissingRequiredField; unknown/empty ServiceTypeId — InvalidReference; or, for a system Item/Sku service type, a missing or doubly-set ItemId/SkuId — InvalidReference "Item or SKU value needs to be provided".
Caller is not authenticated.
Caller does not have Create permission on the ServiceMaster module.