Configuration (POST)
Retrieve and update a product’s configuration from a configurator. Execute configuration rules and notify users of any violations for changes to product bundle, attributes, or product quantity within a bundle. Additionally, get pricing details for the configured bundle.
When you add multiple products, to make sure that the constraint rules engine evaluates all rules, call the Configure API after each individual node addition. This mirrors the incremental pattern in the Product Configurator UI, which calls the Configure API incrementally, one product addition per call, and triggers CML after each addition.
If you’re calling this API from an external website, include the site name in the resource.
60.0
POST
JSON Example
This example shows a sample to initiate a context based on a transaction ID.
This example shows a sample to add, update, or delete a node in an existing context.
This example adds a node to an existing context and includes the contextFieldsList property.
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
addedNodes | Configurator Added Node Input[] | List of added context nodes that’s passed to the product configurator | Optional | 60.0 |
configuratorOptions | Configurator Options Input[] | Options to pass to the configurator | Optional | 60.0 |
contextFieldsList | String[] | List of fields to return in the configurator response | Optional | 68.0 |
contextResponseType | String | Specifies the type of transaction context response. Valid values are Delta—returns only the sales transaction items that are added or updated in the call. Deleted items are returned separately in a DeletedSTIIds collection on the response. The response is always flat regardless of response type; reconstruct hierarchy from SalesTransactionItemParent on child items and MainItem/AssociatedItem on relationships; Full—Returns all sales transaction items in a transaction; None—Returns empty transaction context response; or Product—Returns the sales transaction items related to the product that’s being configured. | Required for large sales transactions with more than 1000 line items and less than 15K line items. | 65.0 |
correlationId | String | ID that’s specified for traceability of logs | Optional | 60.0 |
deletedNodes | Configurator Deleted Node Input[] | List of deleted context nodes that’s passed to the product configurator | Optional | 60.0 |
qualificationContext | User Context Input[] | Details such as account ID, contact ID, and context ID that are used for executing qualification rules | Optional | 60.0 |
transactionContextId | String | ID of the transaction context. The context expires after 10 minutes by default (managed by Context Service). To extend it, set ContextTtlInMinutes on the Context Definition record. The org-level ceiling is controlled by ContextMaxTtlInMinutes (default: 45 minutes). Design for short-lived sessions: rebuild context on expiry rather than extending TTL indefinitely, because the durable state lives on the persisted transaction record. | Optional | 60.0 |
transactionId | String | ID of the sales transaction that’s being configured such as a quote or an order | Required | 60.0 |
transactionLineId | String | ID of the top-level line item that’s being configured | Optional | 60.0 |
updatedNodes | Configurator Updated Node Input[] | List of updated context nodes that’s passed to the product configurator | Optional | 60.0 |