| Create WorkOrder Service Item | |
| URL | /WorkOrderServiceItem/Create |
| Method | POST |
| Body |
[ "CalculatedPrice":12 |
| Response |
HTTP/1.1 400 Already exist
HTTP/1.1 200 OK
[
{ "Count":2, "CustomPricePerUnit":22, "Id":1610, "ServiceItemId":5, "WorkOrderId":1060, "CalculatedPrice":12,
"TaxCodeId":null
} ] |
| Comments |
|
| Update WorkOrder Service Item | |
| URL | /WorkOrderServiceItem |
| Method | PUT |
| Body |
{ "CalculatedPrice":12, |
| Response |
HTTP/1.1 400 Business rule violation. ServiceItemId is invalid
HTTP/1.1 200 OK
{
"Count":6, "CustomPricePerUnit":666, "Id":1608, "ServiceItemId":3, "WorkOrderId":1060, "CalculatedPrice":12, "TaxCodeId":null } |
| Comments |
|
| Delete WorkOrder Service Items | |
| URL | /WorkOrderServiceItem/{id} |
| Method | DELETE |
| Body |
|
| Response |
HTTP/1.1 400 Entity with 386 id not found
HTTP/1.1 200 OK
|
| Comments |
|
| Get WorkOrder Service Items List | |
| URL | /WorkOrderServiceItem/List/{workOrderId} |
| Method | GET |
| Body |
|
| Response |
[ |
| Comments |
|