Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to read the Product Reference of SAP Commerce Cloud through Restful API

Shulou Source: shulou.com Published: 2022-06-01 06:47:52 09月26日 Update

Editor to share with you how to read the Product Reference of SAP Commerce Cloud through Restful API. I hope you will get something after reading this article. Let's discuss it together.

Find the instructions for api on the SAP website:

Https://api.sap.com/api/commerce_services/resource

Api endpoint: / rest/v2/electronics/products/I042416/references

The value of parameter referenceType is obtained from the enumeration class ProductReferenceTypeEnum:

The following figure shows the corresponding code in Hybris commerce On-Premises. Of course, you can also query the SAP help documentation to find these enumerated values:

This reference relationship is similar to the relationship in CRM, which can be obtained by querying the table ProductReference:

To call this API, you must create an oauth client with a grant_type of client_credentials:

And the authorities should be maintained as ROLE_TRUSTED_CLIENT:

After reading this article, I believe you have a certain understanding of "how to read the Product Reference of SAP Commerce Cloud through Restful API". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Methods articles queries the following figure code parameters done documentation more knowledge industry information information channels channels help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi Xiaomi MariaDB Microsoft