Configuration Loader API
The Configuration Loader API returns all the data for the product, including its product options and configuration model. When configuring a nested bundle, set the parentProductproperty to the parent product to inherit configuration attributes on the nested bundle.
| Required Editions |
|---|
| Available in: Salesforce CPQ Spring ’17 and later |
- Formats
JSON, Apex
- HTTP Method
PATCH
- Authentication
Authorization: Bearer token
REQUEST
| Name | Type | Description | |
|---|---|---|---|
| uid | String | Required | ID of the Product2 record. |
| quote | QuoteModel | Required | Corresponds directly to SBQQ__Quote__c. |
| parentProduct | ProductModel | Optional | The parent product for a nested bundle. Used to inherit configuration attributes from the parent product. |
RESPONSE
| Type | Description | ||
|---|---|---|---|
| ProductModel | Representation of product data. See CPQ Models. |
The example request body configLoaderContext.json file for loading product data. This example context value is a JSON formatted string of the quote model.
Example response body returning product data. The actual response is a JSON formatted string.
Before saving the ConfigLoader example class, make sure that the CPQ Modelsclasses are added as individual Apex classes in your org.
To demonstrate usage of the ConfigLoader class, run the following code in anonymous Apex.