Highlighting what is new in Commerce Web Services and OCC API
Objective
After completing this lesson, you will be able to identify the new features in Commerce Web Services and OCC API
Querying Products in Batches
The Products OCC API has been enhanced to support querying products in batches using filters. By specifying the filters parameter when invoking the GET /products/search endpoint, you can now efficiently query products in batches. These filters are based on the properties or fields defined in the index type configuration attached to the base site.
Retrieving Product Details
Improvements have been made to the performance of retrieving product details via the OCC API. Now, background populators can be selectively invoked based on the requested fields parameter. The following toggle should be set to true to activate this feature:
This enhancement boosts efficiency by saving time and enhancing the overall user experience, thus providing a more prompt and reliable service for accessing product information.
Real-time Product Availability Retrieval
In the 2211.30/32 release, a new endpoint (Get /{baseSiteId}/productAvailabilities) has been introduced that allows customers to retrieve real-time stock availability information for requested products in specified units. This endpoint returns a comprehensive list of items, each indicating the stock status and quantity of the specified products. This enhancement ensures real-time inventory visibility, enabling more informed purchasing decisions.
REST API Endpoint for Quotes
A new OCC API endpoint for SAP CPQ Quotes to retrieve attachments associated with a given organizational document based on the provided attachment identifier has been introduced. This feature empowers sales representatives to review and generate proposal documents for quotes created by B2B users, enhancing workflow efficiency and document management.
API Enhancement for Bundles
An EntryGroups field has been exposed from order and quote-related endpoints, enabling the frontend to display bundled components as a package rather than as separate products. This feature needs to be activated via the toggle:
This feature makes it only easier for consumers to purchase bundled products, boosting sales, but also enhances their shopping experience by grouping related items together.
An update to the OCC API now provides the technical capability to inform customers which products are disabled based on the 'disable product' bundle rules. This is implemented with 2 additional properties sapAddToCartDisabled and sapAddToCartDisabledMessage. This enhancement prevents 'disabled products' from being added to the cart when editing bundle selections, streamlining the shopping experience and improving customer satisfaction.