Skip to main content

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_QUOTE or READ_WRITE_QUOTE

Path Parameters​

ParameterTypeDescription
idStringThe 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​

FieldTypeDescription
idStringUnique identifier of the quote.
quoteIdNumberQuote number shown to customers.
titleStringTitle of the quote.
statusStringpending, approved, rejected, completed, negotiated or expired.
requestedCountNumberNumber of times the quote has been negotiated.
companyStringID of the company the quote belongs to.
companyDetailsObjectCompany companyId, name, email and phoneNumber.
customerStringID of the customer the quote belongs to.
customerDetailsObjectCustomer customerId, firstName, lastName, email and phoneNumber.
productsArrayProducts on the quote. See below.
commentsArrayComments on the quote. Each comment can have replies.
timelineArrayHistory of changes made to the quote.
createdByObjectWho created the quote: id, name and type (for example api).
notesStringInternal notes.
metaFieldsArrayCustom field values. See Metafields.
expiryDateStringDate and time the quote expires (ISO 8601).
orderStringID of the order placed from this quote, or null.
isCompletedBooleanWhether the quote has been converted to an order.
selectedCurrencyObjectCurrency the quote is priced in, or null.
createdAtStringDate and time the quote was created (ISO 8601).
updatedAtStringDate and time the quote was last updated (ISO 8601).

Product Object​

FieldTypeDescription
idStringUnique identifier of the quote line.
productStringID of the product.
variantStringID of the variant, or null.
nameStringProduct name.
skuStringSKU of the variant, or of the product if there is no variant.
productSkuStringSKU of the parent product.
imageStringURL of the product or variant image.
optionsArrayVariant options, such as size or colour.
quantityNumberQuantity quoted.
priceNumberCatalog price per unit.
companyPriceNumberCompany price per unit, or null.
requestedPriceNumberPrice per unit requested by the customer, or null.
extendedPriceNumberLine total.
selectedCurrencyPriceObjectPrices in the quote's selected currency, or null.

Notes​

  • If no quote matches the ID, data is an empty object.