1. Help Center
  2. API
  3. Work Order/Scheduling API

Work Order Service Item API

Create WorkOrder Service Item
URL /WorkOrderServiceItem/Create
Method POST
Body

[
{
"Count":2,
"CustomPricePerUnit":22,
"ServiceItemId":5,
"WorkOrderId":1060,

"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

{
"Id":1608,
"Count":6,
"CustomPricePerUnit":666,
"WorkOrderId":1060,

"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

[
{
      "Count":1,
      "CustomPricePerUnit":null,
      "Id":1608,
      "ServiceItemId":3,
      "WorkOrderId":1060,
"CalculatedPrice": 12.23,
"TaxCodeId":null
   }
]

Comments