---
schema_version: "1"
id: 6798d82e7f3562a6591b147b286d6001551e6461f25ca9bd2606e402b398ab55
title: ConnectApi.PromotionParentProductsInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_promotion_parent_products.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_promotion_parent_products.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 67995eeacae43264ede70e610accce33ae9dadf311849616924a118bb906260b
description: IDs of a parent product and variation product.
---
# ConnectApi.PromotionParentProductsInput

IDs of a parent product and variation product.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| childProductId | String | ID of the variation product. | Required | 57.0 |
| parentProductId | String | ID of the parent product. | Required | 57.0 |

#### See Also

- [ConnectApi.PromotionEvaluateInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_promotion_evaluate.htm "Find promotions that the customer is eligible for and compute their discounts.")
- [evaluate(salesTransaction)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommercePromotions_static_methods.htm#apex_ConnectAPI_CommercePromotions_evaluate_1 "Determine which promotions the customer is eligible for based on the store and buyer group, and compute the applicable price adjustments based on the coupons and the items in the cart. This API evaluates only the first 50 active manual promotions and first 50 active automatic promotions, based on priority. This API computes and returns applicable price adjustments, but it does not apply those adjustments to the webcart record. If you want to enable promotions based on shipping, contact Salesforce Customer Support.")