Advanced Order Product Recommendation Input

The input for historical product quantities. Includes the customer account ID, order specification, and optional filters.

JSON example 

1{
2  "customerAccountId": "001RM000004Wk8xYAC",
3  "orderSpecId": "0OSRM00000004Cx2AAE",
4  "operationType": "avg",
5  "orderStatuses": ["Activated"],
6  "orderItemSpecIds": ["0OSRM00000004Cx2AAE"],
7  "includeProductDetails": true
8}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
customerAccountIdStringThe ID of the customer account.Required68.0
includeProductDetailsBooleanIf true, retrieves full product details from Configure, Price, Quote (CPQ) Product Discovery and includes them in the productDetails field. The default value is false.Optional68.0
operationTypeStringThe 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.Optional68.0
orderItemSpecIdsString[]An optional list of order item specification IDs to filter order items by. Only items that match these specifications are included in recommendations.Optional68.0
orderSpecIdStringThe ID of the order specification that defines the lookback period and order template.Required68.0
orderStatusesString[]An optional list of order statuses to filter by, such as Draft or Activated. If no status is specified, all statuses are included.Optional68.0