| Create Service Items | |
| URL | /ServiceItem/Create |
| Method | POST |
| Body |
[ "IsActive":true, |
| 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 |
{ |
| 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", "IsActive":true |
| Comments |
|
| Get All Service Items | |
| URL | /ServiceItem/List |
| Method | GET |
| Body |
|
| Response |
[
{ "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}] |