cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch all active users and their active carts

dmahto
Explorer
0 Kudos
748

Hi Experts,

In hybris how can i get all the active carts (cart id) in the website.
There can be multiple user logged in the storefront across different sessions, how can i fetch the customer info and cart info for all these active sessions.

Accepted Solutions (0)

Answers (1)

Answers (1)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dilip,

Did you check the OCC API endpoints below?

/occ/v2/electronics/users/{customer_email_id}/carts

This endpoint gives you all active carts for the requested customer.

Here is the API reference on API Hub.

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

To get all the customer id, you can either run flexible search or search in Backoffice or use Integration API.