cancel
Showing results for 
Search instead for 
Did you mean: 

REST API call using B2B API AddOn and ycommercewebservices

Former Member
0 Kudos

Hi Expert,

We are developing some user stories for client and below is the requirement from business -

  1. Third party system will send restful call (Product code will be in request) to hybris and expecting product image file (any one image) in response. It means restful call or service call will download product specific image (any one) file from hybris.

  2. Third party system will send restful call to update product status in hybris and expecting ok / success status in response. e.g. Third Party system will send Restful call, in request they will pass Product Code and Status code (200 or 400) and this call will update flag status (custom attribute) at product level.

I have doubt is it possible to implement through B2B API AddOn, if yes then what level of customization is require and how to achieve this.

Previously I had handle similar request by OCC Module (ycommercewebservices) but in previous application client was interested in product details and relevant information.

Can anyone please suggest.

Many Thanks in advance,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nitin,

It is possible using B2B OCC calls, You just need to create two methods in the ProductController, for the above two requirements.

The required customizations are, Two new methods have to be created. Remaining flow has to be implemented like facade, service, DAO as such. Need to create your own WSDTO object in order to send the response.

When it comes to the third party side, they need to request the hybris system for a valid token, and using that token they need to place this Rest calls that we create as above.

I hope this information is helpful for you.

Will be very happy to answer if you have any queries.

THanks