---
schema_version: "1"
id: 32bc4fb12c0848f29bb7f6685697029ef2a1dbc72f7d21b1850c972deb505f5f
title: Advanced Order Product Recommendation Input
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/advanced-orders-for-telesales/references/requests/advanced-order-product-recommendation-input.md
canonical_url: https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/advanced-orders-for-telesales-rest/advanced-order-product-recommendation-input.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 532d93b03d144facb92195ba89f4d5b4720c02e4c1726568d7a8beb6e6ee0de9
products:
  - Advanced Orders for Telesales Developer Guide
  - Industries Developer Documentation
---
# Advanced Order Product Recommendation Input

The input for historical product quantities. Includes the customer account ID, order specification, and optional filters.

## JSON example

```json
{
  "customerAccountId": "001RM000004Wk8xYAC",
  "orderSpecId": "0OSRM00000004Cx2AAE",
  "operationType": "avg",
  "orderStatuses": ["Activated"],
  "orderItemSpecIds": ["0OSRM00000004Cx2AAE"],
  "includeProductDetails": true
}
```

## Properties

| Name                    | Type     | Description                                                                                                                                                                                                                                | Required or Optional | Available Version |
| ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ----------------- |
| `customerAccountId`     | String   | The ID of the customer account.                                                                                                                                                                                                            | Required             | 68.0              |
| `includeProductDetails` | Boolean  | If true, retrieves full product details from Configure, Price, Quote (CPQ) Product Discovery and includes them in the productDetails field. The default value is false.                                                                    | Optional             | 68.0              |
| `operationType`         | String   | The aggregation operation used to calculate product quantities across multiple orders. Determines how quantity is calculated when a product appears in multiple orders. Valid values are sum, avg, min, and max. The default value is avg. | Optional             | 68.0              |
| `orderItemSpecIds`      | String[] | An optional list of order item specification IDs to filter order items by. Only items that match these specifications are included in recommendations.                                                                                     | Optional             | 68.0              |
| `orderSpecId`           | String   | The ID of the order specification that defines the lookback period and order template.                                                                                                                                                     | Required             | 68.0              |
| `orderStatuses`         | String[] | An optional list of order statuses to filter by, such as Draft or Activated. If no status is specified, all statuses are included.                                                                                                         | Optional             | 68.0              |
