Developer forum

Forum » Ecommerce - Standard features » Order for current user

Order for current user

Jason
Reply

Hello,

I am using controllers for mobile api. After login user is authenticated, if there is an active cart, may I know the best way to get that cart? Is there any way to find the active cart secretkey from current user?

 

Regards

Jason


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hello,

Cart and its secret (find 'Secret' property by search inside) can be get via API and WebAPI's approriate endpoint (/dwapi/ecommerce/carts, have a look at the topic for details).

BR, Oleg QA

 
Nicolai Pedersen
Reply

I can add there that is no active cart. But you can use the /carts endpoint and get the latest one - probably the first in that list is the 'most' active.

 

You must be logged in to post in the forum