SAP (CallidusCloud) CPQ is the industry-leading cloud-based sales tool which automates the quote and proposal process enabling companies to produce accurate and highly configured sales quotes for customers. SAP CPQ is designed to calculate even the most complicated and lengthy quotes instantly and fits perfectly between SFA, ERP, CLM, Billing. One of the key solution component is the out of box APIs which are available in order to perform multiple set of activities. It is essential to understand how the APIs can be invoked or used as part of overall solution for successful on time on budget implementation.
In this blog I have shared how out of the box API’s can be invoked from external software’s like SOAPUI or POSTMAN while working in SAP CPQ and integrating with other products. The main focus of the blog is to demonstrate XML request formation in order to trigger the API successfully for quote, product and user creation in SAP CPQ system.
First step is to download the WSDL file from SAP CPQ system.
To access SAP CPQ’s API, use the following URLs:
<tenant url>/wsAPI/CPQAPI.asmx - this is the set of user-level functions
<tenant url>/wsAPI/wssrv.asmx - this is the set of administrator-level fu
Lets start with Examples:-
First API :- NewQuote
Endpoint URL:- <tenant url>/wsAPI/CPQAPI.asmx
The standard web service definition gives the request as follows:-
In this request the xml formation is shown in the below XML code snippet. The product has few tags like ProductName, Categories which have language associated with them. The value of such tags in the XML needs to be given with language tag in addition as shown below. If language tag like <USEnglish> and the description should be given in the format as <![CDATA[Description]] > to give a successful call to SAP CPQ system else the web service will give invalid product name, invalid categories, etc and won't create product in SAP CPQ.