Service Item API

Create Service Items
URL /ServiceItem/Create
Method POST
Body

[
   {

      "IsActive":true,
      "CategoryId":4,
    "Name":"service item name", 
      "PricePerUnit":"4.23",
      "UnitTypeId":1,
      "Description":"Descr",
      "IsDefault":true,
      "IsTaxable":true,
      "Tier2Price":"",
      "Tier3Price":"23",
      "TaxCodeId":1,
  "QuickBooksDesktopListId":"80000001-1390562257",
"QuickBooksNumber":2
   }
]

Response
[
   {
      "Category":"Paper",
      "CategoryId":4,
      "Description":"Descr",
      "Id":108,
      "IsDefault":true,
      "IsTaxable":true,
      "LastChangeDate":"\/Date(1347975649885)\/",
    "Name":"service item name", 
      "PricePerUnit":"4.23",
      "ServiceType":"General",
      "TaxCodeId":1,
      "Tier2Price":"",
      "Tier3Price":"23.00",
      "UnitType":"Hour",
      "UnitTypeId":1,
  "QuickBooksDesktopListId":"80000001-1390562257",
"QuickBooksNumber":2,
"IsActive":true
   }
]
Comments

 

  Update Service Item
URL /ServiceItem
Method PUT
Body

{
   "Id":108,
   "CategoryId":4,
"Name":"service item name", 
   "PricePerUnit":"4.23",
   "UnitTypeId":1,
   "Description":"Descr",
   "IsDefault":true,
   "IsTaxable":true,
   "Tier2Price":"",
   "Tier3Price":"23",
   "TaxCodeId":null,
  "QuickBooksDesktopListId":"80000001-1390562257",
"QuickBooksNumber":2
}

Response
{
      "Category":"Paper",
      "CategoryId":4,
      "Description":"Descr",
      "Id":108,
      "IsDefault":true,
      "IsTaxable":true,
      "LastChangeDate":"\/Date(1347975649885)\/",
    "Name":"service item name", 
      "PricePerUnit":"4.23",
      "ServiceType":"General",
      "TaxCodeId":null,
      "Tier2Price":"",
      "Tier3Price":"23.00",
      "UnitType":"Hour",
      "UnitTypeId":1,
  "QuickBooksDesktopListId":"80000001-1390562257",
"QuickBooksNumber":2,
"IsActive":true
}
Comments

 

  Delete Service Item
URL /ServiceItem/{id}
Method DELETE
Body

 

Response
HTTP/1.1 400 Entity with 386 id not found
HTTP/1.1 200 OK
Comments

 

  Get Service Item
URL /ServiceItem/{id}
Method GET
Body

 

Response
{

"Category":"Paper",
"CategoryId":77,
"Description":"description",
"Id":3,
"IsDefault":true,
"IsTaxable":false,
"LastChangeDate":"\/Date(-62135596800000)\/",
"Name":"1\/4\" P-TRAP",
"PricePerUnit":"$15.00",
"ServiceType":"General",
"TaxCodeId":null,
"Tier2Price":"$20.00",
"Tier3Price":"$25.00",
"UnitType":"Item",
"UnitTypeId":0,
  "QuickBooksDesktopListId":"80000001-1390562257",
"QuickBooksNumber":2,

"IsActive":true
}

Comments

 

  Get All Service Items
URL /ServiceItem/List
Method GET
Body

 

Response
[

{
"Category":"NewCategory4",
"CategoryId":77,
"Description":"description",
"Id":3,
"IsDefault":true,
"IsTaxable":false,
"LastChangeDate":"\/Date(-62135596800000)\/",
"Name":"1\/4\" P-TRAP",
"PricePerUnit":"$15.00",
"ServiceType":"General",
"TaxCodeId":null,
"Tier2Price":"$20.00",
"Tier3Price":"$25.00",
"UnitType":"Item",
"UnitTypeId":0,
  "QuickBooksDesktopListId":"80000001-1390562257",
"QuickBooksNumber":2,

"IsActive":true
}

]
Comments

 

 
Update QuickBooks IDs and numbers
URL /ServiceItem/UpdateQuickBooksIds
Method POST
Body {
"QuickBooksIds":
[
{
"ServerId":1,
"QuickBooksId":"80000031-1314102902",
"QuickBooksNumber": 292
}
]
}
Response [{"Id":1,"IsSuccess":true,"Message":null}]