Developer forum

Forum » Development » Get AccessUserCartID via dwapi on /dwapi/users/info

Get AccessUserCartID via dwapi on /dwapi/users/info

Mikkel Hammer
Mikkel Hammer
Reply

Hi DW,

Looking at this post, we got some changes to how the current cart in the webshop is set when you manipulate the cart via the dwapi.
But there is still no way to access that info via the dwapi. Is it possible to get some information about the user's cart when calling /dwapi/users/info?

It will make it easier to know which cart to get via /dwapi/ecommerce/carts/{secret}

Best regards,
Mikkel Hammer


Replies

 
Mikkel Hammer
Mikkel Hammer
Reply

bump

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Mikkel

I have created devops#14466 which adds a /dwapi/ecommerce/carts/active endpoint which returns a single "UserCartsResponseUserCartsResponse"

Can you verify this is what you need? Attached find a build of this feature.

BR Nicolai

Votes for this answer: 1
 
Mikkel Hammer
Mikkel Hammer
Reply

Hi Nicolai,

Exactly what i wanted! :)
But i can't seem to get it to work on a 9.15.9 when changing the out webapi dll.
It just always returns 404

But the sql seems fine and updates correctly when making changes, so idk if it's just another dependency im missing or there might be a bug ;^)


Best regards,
Mikke Hammer

 
Mikkel Hammer
Mikkel Hammer
Reply

nvm on confirming it... i can see it's not released yet...

 

You must be logged in to post in the forum