Bulk Product Details Input

Input representation of the request to retrieve details of multiple products.

JSON Example 

1{
2  "productData": [
3    {
4      "productId": "01txx0000006ivJAAQ",
5      "productSellingModelId": "0jPxx000000009hEAA"
6    },
7    {
8      "productId": "01txx0000006ivLAAQ",
9      "productSellingModelId": "0jPxx000000009iEAABB"
10    }
11  ],
12  "correlationId": "de9a674c-1807-438c-ac78-2c96f4655325",
13  "priceBookId" : "01sxx0000005qxxAAA",
14  "userContext": {
15      "accountId": "001xx0000000001AAA",
16      "contactId": "003xx00000000D7AAI"
17  }
18}

This example shows a sample request with proration policy details requested through the additionalFields property.

1{
2  "additionalFields": {
3    "ProductSellingModelOption": {
4      "additionalFields": {
5        "ProrationPolicy": {
6          "fields": [
7            "ArePartialPeriodsAllowed",
8            "ProrationPolicyType"
9          ]
10        }
11      }
12    }
13  },
14  "productData": [
15    {
16      "productId": "01txx0000006ivJAAQ",
17      "productSellingModelId": "0jPxx000000009hEAA"
18    },
19    {
20      "productId": "01txx0000006ivLAAQ",
21      "productSellingModelId": "0jPxx000000009iEAABB"
22    }
23  ],
24  "correlationId": "de9a674c-1807-438c-ac78-2c96f4655325",
25  "priceBookId": "01sxx0000005qxxAAA",
26  "userContext": {
27    "accountId": "001xx0000000001AAA",
28    "contactId": "003xx00000000D7AAI"
29  }
30}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
additional​ContextDataContext Data Input[]Additional nodes to add to the custom or default context definition. This data is appended to the context input and sent for hydration and qualification. The maximum limit of supported nodes is 10.Optional61.0
additional​FieldsMap<String, Additional Fields Input>Additional standard or custom fields of the Product2 object to include in the response. The field values are returned in the response for each of the products. In API version 66.0 and later, you can request proration policy details in the response for each product selling model option through this property.Optional61.0
context​DefinitionStringName of the custom context definition that’s sent for the context creation. If unspecified, the default context definition is used.Optional61.0
context​MappingStringContext mapping details from the context definition. If specified, the API validates if the context mapping belongs to the specified context definition and considers the mapping for hydration. If unspecified, the default context mapping of the context definition is used.Optional61.0
correlation​IdStringUnique token to track and associate related events or transactions across different components of the application. If unspecified, a Universally Unique Identifier (UUID) is generated.Optional61.0
currency​CodeStringCurrency code to consider for pricing and filtering.Optional61.0
enable​PricingBooleanIndicates whether to enable pricing for the products ( true ) or not ( false ). The default value is true. The Pricing Procedure toggle from the Product Discovery Settings page from Setup overrides this property. For example, if the Pricing Procedure toggle is disabled, then setting the enablePricing property to true has no effect and the prices property in the API response is returned empty.Optional61.0
enable​QualificationBooleanIndicates whether to enable qualification rules for the products ( true ) or not ( false ). The default value is true. The Qualification Procedure toggle from the Product Discovery Settings page from Setup overrides this property. For example, if the Qualification Procedure toggle is disabled, then setting the enableQualification property to true has no effect and the qualificationContext property in the API response isn’t returned.Optional61.0
price​BookIdStringID of the price book to fetch the prices from.Optional61.0
pricing​ProcedureStringName of the custom pricing procedure to send for processing. If unspecified, the default pricing procedure is executed.Optional61.0
product​DataProduct Data Input[]List of maps that contain product IDs and product selling model IDs.Required61.0
qualification​ProcedureStringName of the custom qualification procedure to send for processing. If unspecified, the default qualification procedure is executed.Optional61.0
user​ContextUser Context Input[]User context details. For example, account ID or contact ID.Optional61.0