Product Variants (POST)
Retrieve the variation product associated with one or more parent variant products.
A parent variant product is a non-purchasable product that groups related variations. Use this API to retrieve the mapping between parent variant product IDs and their associated variation product IDs.
Resource
1/connect/pcm/products/variants
Resource Example
1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/pcm/products/variants
Available Version: 67.0
Requires Chatter: No
HTTP Methods: POST
Note: POST methods typically create an item, but for this resource POST is used to retrieve information.
Request Body for POST
JSON Example
1{
2 "correlationId": "9b6bc520-3c82-4d6c-a458-47590370681a",
3 "parentVariantsIds": [
4 "01tT1000000F0afIAC",
5 "01tT1000000F0agIAC"
6 ]
7}
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|
correlationId | String | Unique ID to track and associate related events or transactions. If unspecified, a Universally Unique Identifier (UUID) is generated. | Optional | 67.0 |
parentVariantsIds | String[] | List of product IDs for parent variant products whose variations you want to retrieve. If any product ID is blank, invalid, or not found, the API skips that ID and processes the remaining valid IDs. The skipped IDs appear in the inValidProductIds response property. If a product ID is valid but isn’t a parent variant product, the API includes it in the nonVariantParentIds response property. | Required | 67.0 |
Response Body for POST: Product Variants