SAP Knowledge Base Article - Public

3700185 - Configurations V2 API not working as expected

Symptom

The API endpoint api/configuration/v2/configurations stopped functioning as expected. When attempting to use the API via Postman or SAP CPI we encounter error.

Environment

SAP CPQ

Reproducing the Issue

  1. Open Quote 
  2. API: api/configuration/v2/configurations
  3. Use Configuration Id
  4. Error contains {"error":{"code":"112000","message":"Product cannot be configured unless a quote is created first. Contact your administrator to enable configuring products without creating a quote first.","target":"/api/configuration/v2/configurations/,"details":[],"internalMessage":""}}` 

Cause

  • The configuration you are trying to retrieve via the Configurations V2 API was created through the CPQ UI and represents a permanent configuration added to the quote.
  • When opening such configurations, the system attempts to calculate prices. Since some child products use variant pricing, the CPQ application needs to make a network call to CPS to fetch the pricing data.
  • To create this request, CPQ must build a request body that includes specific information expected by CPS. Some of this information is derived from pricing attributes defined on the General Attributes Mapping page.
  • The attribute mappings are currently defined to work only when a quote exists in the user session.
  • The Configurations V2 API is stateless and cannot be associated with a quote. Because of this limitation, the system cannot resolve the required pricing attributes, which results in the following error:
    • "Contact your administrator to enable configuring products without creating a quote first."

Resolution

  • To fix this problem, you need to enable configuring products without creating a quote first. You can find the relevant SAP documentation here: Configuring Products Without First Creating a Quote
  • To address challenges when setting up integration to work with Configurations V2 API and VC products., in the upcoming 2602 release, we will expose configuration context formulas. These can be used to provide required context information such as sales area, effective date, or currency code, which should simplify the setup.

See Also

Configuring Products Without First Creating a Quote

Keywords

API,  Postman, CPI, Configurations V2, UI, Pricing, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error

Product

SAP CPQ all versions