Skip to main content

Quote

Quotes should be requested by the user as a way of showing interest in the product and willingness to purchase it. The API processes the user's quote request accordingly.


Retrieve Quote Request​

Users can request a quote before finalizing the purchase order.


Headers​

JSON which contains first name, last name, phone number, home number, email, address, and other information, sends raw data in the request body. The server accepts JSON-formatted responses.



Parameters​


No parameter required.



Attributes​


quote_no string

It specifies the number of quotes.


notes array of objects

The notes of quote history.


quote_no string

It specifies the number of quotes.


date_note string

It shows the date of the quote when it was made.


user_id number

It is an option of the user id.


note string

It shows the description or note which is filled by the user.


from_note string

It shows the description or note which is filled by the user.


date_created string

It shows the date which the quote is created.


date_updated array of objects

date string

It shows the specific date and time of the created quote.


timezone_type number

It shows the option of w=timezone, the country.


timezone string

It describes the exact timezone, the country.


id number

It shows the id of the products..


sales_person array of objects

user_id string

It specifies the user id.


email string

It shows the email of the user.


first_name string

It shows the first name of the user.


last_name string

It shows the last name of the user.


extension_number empty string

It is optional to input this.


job_title string

It shows the job title of the user.


photo string

It shows the photo of the user.


fullname string

It shows the fullname of the user.


image_asset string

It shows the url of the image of the user.


message string

It shows the message information when it succeeds.

POST /api/v2/quote/create
curl --location 'https://appliance-api.com/api/v2/quote/create' \
--header 'x-api-key: your_api_key' \
--header 'x-tenant-id: your_tenant_id' \
--header 'Accept: application/json' \
--data-raw '{
"first_name": "John",
"last_name":"Takpor",
"phone_number":"(201) 444-3992",
"home_number":"(223) 299-3322",
"email":"john.doe@jajan.com",
"address":"5850, Eichelberger St, St. Louis, , Missouri, 63109, United States",
"same_as_billing":0,
"ship_first_name":"John",
"ship_last_name":"Does",
"ship_phone_number":"(201) 444-3932",
"ship_home_number":null,
"ship_email":"john.doe@hua.com",
"ship_address":"1111, Eichelberger St, St. Louis, , Missouri, 63109, United States",
"product_interests_notes":"I do really love GE product and kitchen sets"
}'
{
"data": {
"quote_no": "15-94356",
"notes": {
"quote_no": "15-94356",
"date_note": "2023-11-21",
"user_id": 0,
"note": "I do really love GE product and kitchen sets",
"from_note": "EXTERNAL",
"date_created": "2023-11-21 22:02:02",
"date_updated": {
"date": "2023-11-21 22:02:02.647048",
"timezone_type": 3,
"timezone": "America/Chicago"
},
"id": 8399
},
"sales_person": {
"user_id": "645b708fb77a2",
"email": "james.doe@example.com/api/api/public",
"first_name": "James",
"last_name": "Doe",
"extension_number": "",
"job_title": "Appliance Specialist",
"photo": "1689613419-james.doe@example.com/api/api/public.JPG",
"fullname": "James Doe",
"image_asset": "http://localhost:8000/storage/example/photo-employee/1689613419-jamesdoe@example.com/api/api/public.JPG"
}
},
"message": "success"
}