Quote Service Item API

Create Quote Service Item
URL /QuoteServiceItem/Create
Method POST
Body

[
{
"Count":2,
"CustomPricePerUnit":22,
"ServiceItemId":5,
"QuoteId":1060,
Description:"Quote SI Description"
}
]

Response
HTTP/1.1 400 Already exist
HTTP/1.1 200 OK
[
   {
      "Count":2,
      "CustomPricePerUnit":22,
      "Id":1610,
      "ServiceItemId":5,
      "QuoteId":1060,
      "Description":"Quote SI Description"
   }
]
Comments

 

  Update Quote Service Item
URL /QuoteServiceItem
Method PUT
Body

{
"Id":1608,
"Count":6,
"CustomPricePerUnit":666,
"QuoteId":1060,
"Description":"Quote SI Description"
}

Response
HTTP/1.1 400 Business rule violation. ServiceItemId  is invalid
HTTP/1.1 200 OK
{
   "Count":6,
   "CustomPricePerUnit":666,
   "Id":1608,
   "ServiceItemId":3,
   "QuoteId":1060,
   "Description":"Quote SI Description"
}
Comments

 

  Delete Quote Service Items
URL /QuoteServiceItem/{id}
Method DELETE
Body

 

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

 

  Get Quote Service Items List
URL /QuoteServiceItem/List/{QuoteId}
Method GET
Body

 

Response

[
 {
   "Count":6,
   "CustomPricePerUnit":666,
   "Id":1608,
   "ServiceItemId":3,
   "QuoteId":1060,
  "Description":"Quote SI Description"
}

Comments