Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore Product Children

Get a collection of child products related to a parent product.

This resource respects buyer View Product entitlements, allowing access only to users authorized to view product data. It supports bundle and set products but is not available for simple, variation, or variation-parent products.

Dynamic bundles are supported only in Commerce B2B stores. The Commerce Webstore Product Children API doesn't support them in D2C stores.

Note

Resource
1/commerce/webstores/webstoreId/products/productId/children
Resource example
1https://yourInstance.salesforce.com/services/data/v63.0/commerce/webstores​/0ZExx000000004tGAA/products/01txx0000006iGyAAI/children
1https://yourInstance.salesforce.com/services/data/v63.0/commerce/webstores​/0ZExx000000004tGAA/products/01txx0000006iGyAAI/children?​mediaGroups=productListImage&pageToken=eyJwIjoyMCwibyI6MH0%3D&includeProductSellingModels=true
Available version
57.0
HTTP methods
GET
Request parameters for GET
Parameter Name Type Description Required or Optional Available Version
effectiveAccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 57.0
excludeAttribute​SetInfo Boolean Specifies whether the attribute set information for the product is returned (false) or not (true). If unspecified, defaults to false. Optional 57.0
excludeFields Boolean Specifies whether the fields are returned (false) or not (true). If unspecified, defaults to false. Optional 57.0
excludeMedia Boolean Specifies whether the media groups and default images of the product are returned (false) or not (true). If unspecified, defaults to false. Optional 57.0
excludeQuantity​Rule Boolean Specifies whether the quantity rule information for the product is returned (false) or not (true). If unspecified, defaults to false. Optional 57.0
fields StringList Comma-separated list of field names.

If this list is empty or unspecified, all fields are returned. There’s no limit to the number of fields you can specify. The number of fields and number of characters in the field name may affect the URL size limit. If excludeFields and fields are specified, the excludeFields parameter takes precedence.

Optional 57.0
includeProduct​SellingModels Boolean Indicates whether product selling model options are returned (true) or not (false). Default value is false. Optional 63.0
mediaGroups StringList Comma-separated list of developer names of media group records. Possible values:
  • Attachment
  • productDetailImage
  • productListImage

If this list is empty or unspecified, all media groups are returned. If excludeMedia and mediaGroups are specified, the excludeMedia parameter takes precedence.

For product bundles, only the producListImage is returned.

Optional 57.0
pageSize Integer Specifies the number of items per page. Valid values are from 1 through 100. If you don’t specify a value, the default size is 20. Optional 57.0
pageToken String Specifies the base64 encoded page token. Page tokens are returned as part of the response. If unspecified, the first page is returned. Optional 57.0
Response body for GET
Product Child Collection