Get Single Quote
Retrieves the details of a single quote, including its products, customer and company details, comments and timeline.
HTTP Request
- URL:
/quote/{id} - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_QUOTEorREAD_WRITE_QUOTE
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | The ID of the quote to retrieve. |
cURL Example
curl --location '<BASE_URL>/quote/6720f3c1a8b4e21f9c3d5a10' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The quote was returned successfully.
- 400 Bad Request: The access token is missing or invalid, does not have the required scope, or the quote ID is not valid.
Sample JSON Response
{
"success": true,
"data": {
"id": "6720f3c1a8b4e21f9c3d5a10",
"quoteId": 1042,
"title": "Q4 Restock Quote",
"status": "pending",
"requestedCount": 0,
"company": "65ba028af764f931f1c7c18b",
"companyDetails": {
"companyId": "65ba028af764f931f1c7c18b",
"name": "Northwind Supplies",
"email": "purchasing@northwind.example",
"phoneNumber": "+1 312 555 0142"
},
"customer": "66d07121db294e0b70180bf6",
"customerDetails": {
"customerId": "66d07121db294e0b70180bf6",
"firstName": "Dana",
"lastName": "Whitfield",
"email": "dana.whitfield@northwind.example",
"phoneNumber": "+1 312 555 0187"
},
"products": [
{
"id": "6720f3c1a8b4e21f9c3d5a11",
"product": "65b88ef5045a7d009e79974b",
"variant": null,
"name": "Cordless Drill 18V",
"sku": "CD-18V",
"productSku": "CD-18V",
"image": "https://cdn.example.com/products/cd-18v.webp",
"options": [],
"quantity": 10,
"price": 129,
"companyPrice": 119,
"requestedPrice": 110,
"extendedPrice": 1190,
"selectedCurrencyPrice": null
}
],
"comments": [
{
"_id": "6720f3c1a8b4e21f9c3d5a13",
"name": "ERP Integration",
"comment": "Please confirm lead time.",
"isCustomer": false,
"customer": null,
"user": "66d07121db294e0b70180bf6",
"replies": [],
"createdAt": "2024-10-29T14:02:09.512Z",
"updatedAt": "2024-10-29T14:02:09.512Z"
}
],
"timeline": [
{
"_id": "6720f3c1a8b4e21f9c3d5a12",
"name": "ERP Integration",
"description": "ERP Integration created new quote",
"isCustomer": true,
"customer": "66d07121db294e0b70180bf6",
"user": null,
"createdAt": "2024-10-29T14:02:09.512Z",
"updatedAt": "2024-10-29T14:02:09.512Z"
}
],
"createdBy": {
"_id": "6720f3c1a8b4e21f9c3d5a14",
"id": "6650c2e9f1a3b84d2e7a9c01",
"name": "ERP Integration",
"type": "api"
},
"notes": "",
"metaFields": [],
"expiryDate": "2024-11-13T14:02:09.498Z",
"order": null,
"isCompleted": false,
"selectedCurrency": null,
"createdAt": "2024-10-29T14:02:09.512Z",
"updatedAt": "2024-10-29T14:02:09.512Z"
}
}
Response Details
Quote Data
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the quote. |
quoteId | Number | Quote number shown to customers. |
title | String | Title of the quote. |
status | String | pending, approved, rejected, completed, negotiated or expired. |
requestedCount | Number | Number of times the quote has been negotiated. |
company | String | ID of the company the quote belongs to. |
companyDetails | Object | Company companyId, name, email and phoneNumber. |
customer | String | ID of the customer the quote belongs to. |
customerDetails | Object | Customer customerId, firstName, lastName, email and phoneNumber. |
products | Array | Products on the quote. See below. |
comments | Array | Comments on the quote. Each comment can have replies. |
timeline | Array | History of changes made to the quote. |
createdBy | Object | Who created the quote: id, name and type (for example api). |
notes | String | Internal notes. |
metaFields | Array | Custom field values. See Metafields. |
expiryDate | String | Date and time the quote expires (ISO 8601). |
order | String | ID of the order placed from this quote, or null. |
isCompleted | Boolean | Whether the quote has been converted to an order. |
selectedCurrency | Object | Currency the quote is priced in, or null. |
createdAt | String | Date and time the quote was created (ISO 8601). |
updatedAt | String | Date and time the quote was last updated (ISO 8601). |
Product Object
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the quote line. |
product | String | ID of the product. |
variant | String | ID of the variant, or null. |
name | String | Product name. |
sku | String | SKU of the variant, or of the product if there is no variant. |
productSku | String | SKU of the parent product. |
image | String | URL of the product or variant image. |
options | Array | Variant options, such as size or colour. |
quantity | Number | Quantity quoted. |
price | Number | Catalog price per unit. |
companyPrice | Number | Company price per unit, or null. |
requestedPrice | Number | Price per unit requested by the customer, or null. |
extendedPrice | Number | Line total. |
selectedCurrencyPrice | Object | Prices in the quote's selected currency, or null. |
Notes
- If no quote matches the ID,
datais an empty object.