Salesforce Commerce Quotes API

GET Retrieve details for a specified quote.

GET /commerce/webstores/{webstoreId}/quotes/{quoteId}

Operation ID: getQuoteDetails.

This API is used on the My Quotes page of the B2B storefront to retrieve details of a specific quote record, including status, line items, and user comments.

Parameters

  • webstoreId (path, string (Id), required) The ID of the web store.
  • quoteId (path, string (Id), required) The ID of the quote record to be retrieved.
  • fields (query, array of string) A list of quote fields to return in the response.

    Example

    Quote.Status

    Example

    Quote.ExpirationDate
  • effectiveAccountId (query, string (Id), required) The user account ID used to fetch the associated quote details.

Responses

  • 200 Success

    Media type: application/json. Schema: CommerceQuoteDetailRepresentation.

    Example: Example Example of all quotes associated with an account.

    {
      "fields": {
        "LastModifiedDate": {
          "dataName": "LastModifiedDate",
          "dataType": "xsd:dateTime",
          "label": "Last Modified Date",
          "text": "2025-11-24T10:17:37Z",
          "type": "datetime"
        },
        "ExpirationDate": {
          "dataName": "ExpirationDate",
          "dataType": "xsd:date",
          "label": "Expiration Date",
          "text": "2025-12-01",
          "type": "date"
        },
        "Subtotal": {
          "dataName": "Subtotal",
          "dataType": "xsd:double",
          "label": "Subtotal",
          "text": "5.0",
          "type": "currency"
        },
        "CreatedDate": {
          "dataName": "CreatedDate",
          "dataType": "xsd:dateTime",
          "label": "Created Date",
          "text": "2025-11-24T10:17:37Z",
          "type": "datetime"
        },
        "CurrencyIsoCode": {
          "dataName": "CurrencyIsoCode",
          "dataType": "xsd:string",
          "label": "Currency ISO Code",
          "text": "USD",
          "type": "picklist"
        },
        "LineItemCount": {
          "dataName": "LineItemCount",
          "dataType": "xsd:int",
          "label": "Line Items",
          "text": "1",
          "type": "int"
        }
      },
      "id": "0Q0LT0000007l2D0AQ",
      "lineItems": [
        {
          "fields": {
            "UnitPrice": {
              "dataName": "UnitPrice",
              "dataType": "xsd:double",
              "label": "Sales Price",
              "text": "5.0",
              "type": "currency"
            },
            "Subtotal": {
              "dataName": "Subtotal",
              "dataType": "xsd:double",
              "label": "Subtotal",
              "text": "5.0",
              "type": "currency"
            },
            "Quantity": {
              "dataName": "Quantity",
              "dataType": "xsd:double",
              "label": "Quantity",
              "text": "1.0",
              "type": "double"
            }
          },
          "id": "0QLLT000000DOKf4AO",
          "product": {
            "canViewProduct": null,
            "error": null,
            "fields": {
              "LastModifiedDate": {
                "dataName": "LastModifiedDate",
                "dataType": "STANDARD",
                "label": "LastModifiedDate",
                "text": "Mon Nov 24 09:58:13 GMT 2025",
                "type": "DATETIME"
              },
              "IsDeleted": {
                "dataName": "IsDeleted",
                "dataType": "STANDARD",
                "label": "IsDeleted",
                "text": "false",
                "type": "BOOLEAN"
              },
              "IsActive": {
                "dataName": "IsActive",
                "dataType": "STANDARD",
                "label": "IsActive",
                "text": "true",
                "type": "BOOLEAN"
              },
              "ProductPurpose": {
                "dataName": "ProductPurpose",
                "dataType": "STANDARD",
                "label": "ProductPurpose",
                "text": "Sell",
                "type": "PICKLIST"
              },
              "LastViewedDate": {
                "dataName": "LastViewedDate",
                "dataType": "STANDARD",
                "label": "LastViewedDate",
                "text": "Mon Nov 24 10:17:01 GMT 2025",
                "type": "DATETIME"
              },
              "LastReferencedDate": {
                "dataName": "LastReferencedDate",
                "dataType": "STANDARD",
                "label": "LastReferencedDate",
                "text": "Mon Nov 24 10:17:01 GMT 2025",
                "type": "DATETIME"
              },
              "CurrencyIsoCode": {
                "dataName": "CurrencyIsoCode",
                "dataType": "STANDARD",
                "label": "CurrencyIsoCode",
                "text": "USD",
                "type": "PICKLIST"
              },
              "Name": {
                "dataName": "Name",
                "dataType": "STANDARD",
                "label": "Name",
                "text": "prod1",
                "type": "STRING"
              },
              "SystemModstamp": {
                "dataName": "SystemModstamp",
                "dataType": "STANDARD",
                "label": "SystemModstamp",
                "text": "Mon Nov 24 09:58:14 GMT 2025",
                "type": "DATETIME"
              },
              "IsArchived": {
                "dataName": "IsArchived",
                "dataType": "STANDARD",
                "label": "IsArchived",
                "text": "false",
                "type": "BOOLEAN"
              },
              "CreatedById": {
                "dataName": "CreatedById",
                "dataType": "STANDARD",
                "label": "CreatedById",
                "text": "005LT000008mTXl",
                "type": "REFERENCE"
              },
              "CreatedDate": {
                "dataName": "CreatedDate",
                "dataType": "STANDARD",
                "label": "CreatedDate",
                "text": "Mon Nov 24 09:58:13 GMT 2025",
                "type": "DATETIME"
              },
              "ProductClass": {
                "dataName": "ProductClass",
                "dataType": "STANDARD",
                "label": "ProductClass",
                "text": "Simple",
                "type": "PICKLIST"
              },
              "LastModifiedById": {
                "dataName": "LastModifiedById",
                "dataType": "STANDARD",
                "label": "LastModifiedById",
                "text": "005LT000008mTXl",
                "type": "REFERENCE"
              }
            },
            "id": "01tLT00000A0Jw9YAF",
            "image": {
              "alternateText": "",
              "contentVersionId": null,
              "id": null,
              "mediaType": "Image",
              "sortOrder": 0,
              "thumbnailUrl": null,
              "title": "image",
              "url": "/img/b2b/default-product-image.svg"
            },
            "name": "prod1",
            "productClass": null,
            "purchaseQuantityRule": null,
            "sku": null,
            "success": true,
            "variationAttributes": []
          }
        }
      ],
      "notes": [
        {
          "content": "sds",
          "contentModifiedDate": "Mon Nov 24 10:17:37 GMT 2025",
          "createdBy": "Test User",
          "title": "Notes from User"
        }
      ],
      "quoteNumber": "00000046",
      "status": "Draft"
    }
  • 400 Bad Request - Invalid input parameters or request data.

    Media type: application/json. Schema: CommerceQuoteDetailRepresentation.

    Example: InvalidQuoteId

    {
      "errors": [
        {
          "code": "INVALID_INPUT",
          "message": "The specified quote ID is invalid."
        }
      ]
    }

    Example: InvalidCustomFields

    {
      "errors": [
        {
          "code": "INVALID_CUSTOM_FIELDS",
          "message": "One or more custom field values are invalid or don't meet required criteria."
        }
      ]
    }
  • 404 Not Found - Requested resource doesn't exist.

    Media type: application/json. Schema: CommerceQuoteDetailRepresentation.

    Example: QuoteNotFound

    {
      "errors": [
        {
          "code": "QUOTE_NOT_FOUND",
          "message": "The specified quote doesn't exist or you do not have access to it."
        }
      ]
    }

    Example: WebstoreNotFound

    {
      "errors": [
        {
          "code": "WEBSTORE_NOT_FOUND",
          "message": "The specified web store doesn't exist or you do not have access to it."
        }
      ]
    }
  • 500 Internal Server Error - Unexpected system error occurred.

    Media type: application/json. Schema: CommerceQuoteDetailRepresentation.

    Example: InternalServerError

    {
      "errors": [
        {
          "code": "INTERNAL_SERVER_ERROR",
          "message": "An unexpected error occurred while processing the request."
        }
      ]
    }