These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Accessing Cart via API

Hello,

We have a client on 20.3 of iMIS. I am trying to call the API for a logged in user's cart using the following endpoint:

https://alm.imiscloud.com/api/cart?UserId=18493&UpdatedBy=18493

In Postman, using this endpoint I am able to get cart data I am expecting back. Moving this endpoint into a script on an iMIS page gives me a 401 HTTP status code as a response which typically means Unauthorized. What can I do to GET the user's cart from the API on an iMIS page?

We really need this functionality.