cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Rest Services from Hybris commerce to Customer Activity Repository for shopping cart & checkout

Former Member
0 Kudos
697

Hello Expert,

Could you please let me know how to use Rest Services from CAR & where those Rest API documents.

In the below link, I can see an image where Rest services are being called from Hybris to CAR for Store Locator & Checkout.

Need to understand how this entire process is working in this context.

https://blogs.sap.com/2016/11/11/retail-omnichannel-article-availability-and-sourcing-oaa-helpful-li...

Thanks in advance.

Regards,

Shraman

View Entire Topic
balu_reddy
Explorer

Hi

https://help.sap.com/viewer/dc441780c3d14c60b3ec4d7210af11a9/2.0/en-US/d1c688a5df324cbba7edd366556c0...

REST API call means, in the browser (any E-Commerce) they send the request (execute URL) to SAP CAR and SAP CAR response to the call in JSON format.

For ex:

Request from E-Commerce is :

SAP_CAR_DESTINATION]/sap/car/rest/oaa/avalability/[ARTICLE_ID]?sap-client=[SAP_CLIENT]&oaaProfile=[OAA_PROFILE]&unit=[UNIT]&externalId=[EXTERNAL_ID]

Response from CAR to E-Commerce is:

<?xml version="1.0" encoding="utf-8"?>
<ATP>
<AVAILABILITY>
<AVAILABILITY_ITEM>
<ATP_DATE>2015-10-16</ATP_DATE>
<QUANTITY>100000.0</QUANTITY>
</AVAILABILITY_ITEM>
</AVAILABILITY>
<MESSAGES/>
</ATP>