Quote API

Create Quote
URL /Quote/Create
Method POST
Body
{
"IsStartTimeSet": 1,
"StatusId": 1,
"IsHideOnCustomer": 0,
"AddressId": 19,
"CustomId": "112",
"CustomerId": 1,
"StartDateTime": "\/Date(1458138600000)\/",
"IsEndTimeSet": 1,
"Description": "Quote Description",
"EndDateTime": "\/Date(1458143100000)\/",
"Summary": "Quote Summary",
  "SalespersonId": 1,
"SendToContactId": 1,
    "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 }
Response
HTTP/1.1 400 Business rule violation. CustomId should be unique
HTTP/1.1 200 OK
{
"AddressId": 19,
"CreateDate": "\/Date(1485198945929)\/",
"CustomId": "112",
"CustomerId": 1,
"Description": "Quote Description",
"EndDateTime": "\/Date(1458143100000)\/",
"ExpirationDate": "\/Date(1487781000000+0300)\/",
"Id": 3,
"IsEndTimeSet": true,
"IsHideOnCustomer": false,
"IsStartTimeSet": true,
"LastChangeDate": "\/Date(1485198945956)\/",
"SendToContactId": 1,
"StartDateTime": "\/Date(1458138600000)\/",
"StatusId": 1,
"Summary": "Quote Summary",

  "SalespersonId": 1,

    "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 }
 
Comments

 

  Update Quote
URL /Quote
Method PUT
Body
{
"IsStartTimeSet": 1,
"StatusId": 1,
"IsHideOnCustomer": 0,
"AddressId": 19,
"CustomId": "112",
"CustomerId": 1,
"StartDateTime": "\/Date(1458138600000)\/",
"IsEndTimeSet": 1,
"Description": "Quote Description updating",
"EndDateTime": "\/Date(1458143100000)\/",
"Summary": "Quote Summary",
  "SalespersonId": 1,
"SendToContactId": 2,
"Id": 3,
    "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 }
Response
HTTP/1.1 400 Business rule violation.  CustomId should be unique
HTTP/1.1 200 OK
{
"AddressId": 19,
"CreateDate": "\/Date(1485188145930+0300)\/",
"CustomId": "112",
"CustomerId": 1,
"Description": "Quote Description updating",
"EndDateTime": "\/Date(1458143100000)\/",
"ExpirationDate": true,
"Id": 3,
"IsEndTimeSet": true,
"IsHideOnCustomer": false,
"IsStartTimeSet": true,
"LastChangeDate": "\/Date(1485199111181)\/",
"SendToContactId": 2,
"StartDateTime": "\/Date(1458138600000)\/",
"StatusId": 1,
"Summary": "Quote Summary",

  "SalespersonId": 1,

    "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 }
Comments

 

  Delete Quote
URL /Quote/{id}
Method DELETE
Body

 

Response
HTTP/1.1 400 Entity not found
HTTP/1.1 200 OK
Comments

 

  Get Quotes
URL /Quotes/List
Method POST
Body

{
"FromModifiedDate":"\/Date(1347022800000)\/",
"ToModifiedDate":"\/Date(1347022800000)\/"
}

Response
[
{
"AddressId": 1,
"CreateDate": "\/Date(1467980234123+0300)\/",
"CustomId": "1",
"CustomerId": 1,
"Description": true,
"EndDateTime": "\/Date(1467939600000+0300)\/",
"ExpirationDate": "\/Date(1470573000000+0300)\/",
"Id": 1,
"IsEndTimeSet": false,
"IsHideOnCustomer": true,
"IsStartTimeSet": false,
"LastChangeDate": "\/Date(1467980472410+0300)\/",
"SendToContactId": 1,
"StartDateTime": "\/Date(1467853200000+0300)\/",
"StatusId": 3,
  "SalespersonId": 1,
"Summary": "ewrwerwerw",
        "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 },
{
"AddressId": 7,
"CreateDate": "\/Date(1469712833527+0300)\/",
"CustomId": "2",
"CustomerId": 1,
"Description": "fhfhfghfgh",
"EndDateTime": "\/Date(1467075600000+0300)\/",
"ExpirationDate": "\/Date(1472305500000+0300)\/",
"Id": 2,
"IsEndTimeSet": false,
"IsHideOnCustomer": true,
"IsStartTimeSet": false,
"LastChangeDate": "\/Date(1469712833623+0300)\/",
"SendToContactId": 2,
"StartDateTime": "\/Date(1467075600000+0300)\/",
"StatusId": 1,
"Summary": "rtyrtyr",

  "SalespersonId": 1,

        "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 },
{
"AddressId": 19,
"CreateDate": "\/Date(1485188145930+0300)\/",
"CustomId": "112",
"CustomerId": 1,
"Description": "Quote Description updating",
"EndDateTime": "\/Date(1458132300000+0300)\/",
"ExpirationDate": true,
"Id": 3,
"IsEndTimeSet": true,
"IsHideOnCustomer": false,
"IsStartTimeSet": true,
"LastChangeDate": "\/Date(1485188311183+0300)\/",
"SendToContactId": 2,
"StartDateTime": "\/Date(1458127800000+0300)\/",
"StatusId": 1,
"Summary": "Quote Summary",

  "SalespersonId": 1,

        "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 }
]
Comments

 

  Get Quote
URL /Quote/{id}
Method GET
Body

 

Response
{
"AddressId": 19,
"CreateDate": "\/Date(1485188145930+0300)\/",
"CustomId": "112",
"CustomerId": 1,
"Description": "Quote Description updating",
"EndDateTime": "\/Date(1458132300000+0300)\/",
"ExpirationDate": true,
"Id": 3,
"IsEndTimeSet": true,
"IsHideOnCustomer": false,
"IsStartTimeSet": true,
"LastChangeDate": "\/Date(1485188311183+0300)\/",
"SendToContactId": 2,
"StartDateTime": "\/Date(1458127800000+0300)\/",
"StatusId": 1,
"Summary": "Quote Summary",

  "SalespersonId": 1,

    "TaxName": 
{
"Id": 2048,
"QuickBooksId": "90",
"Name": "name",
"TaxRates":
[
{
"Rate": 22,
"QuickBooksNumber": "90",
"Name": "name"
}
]
}
 }
Comments