cancel
Showing results for 
Search instead for 
Did you mean: 

HTML response returned while calling add to cart occ api

0 Kudos
193

Hello,

I am getting HTML code of my home page when i hit the add to cpi of my application. The Token passed is correct and working for all the other api's.

This is my URL - https://www.mydomain.com/commercewebservices/v2/basesiteid/users/userId/carts/CartId/entries

Please suggest the possible root cause.

View Entire Topic
former_member747843
Active Participant
0 Kudos

Hi
Passible problem could be that there is no extension with webroot 'commercewebservices'.
In such case platform just return login page.
Default webroot for ycommercewebservices is 'rest'.
And also your url is strange because you didn't put real values for path variable like basesiteid, userId, cartId.