The CreatorCon Call for Content is officially open! Get started here.

add_to_cart api failing in postman

Saquib Mohammed
Mega Guru

I am trying to execute OOTB add_to_cart api (present in sn_sc namespace). When I run it on my servicenow instance where I have the catalog item defined, it runs fine (status code 200). However, when I run the same json with the same request URL and using the same (NOW) credentials on postman (Basic auth), it fails with status code 500. Any pointers? Below is the error. The error doesn't say much. I don't see anything in the logs either.

{
    "error": {
        "message""com.glide.rest.domain.ServiceException: Exception while reading request",
        "detail"""
    },
    "status""failure"
1 REPLY 1

VR17
Tera Contributor

Hi Saquib,

 

I am facing same issue ,How you fixed it?