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
Developer forum
E-mail notifications
Get AccessUserCartID via dwapi on /dwapi/users/info
Mikkel Hammer
Posted on 30/06/2023 14:15:15
Replies
Mikkel Hammer
Posted on 04/07/2023 15:10:49
bump
Nicolai Pedersen
Posted on 04/07/2023 17:25:39
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
Posted on 06/07/2023 12:05:02
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
Posted on 17/07/2023 11:35:15
nvm on confirming it... i can see it's not released yet...
You must be logged in to post in the forum