REST API Issue for service-now catalog

adityamadhira
Kilo Contributor

Hi I am planning to use REST API for service   catalog in C# and facing below issue while testing. Please help me to fix this issue -

To test I navigated to "REST API Explorer"   in service now. While testing Add Item To Cart   (POST) call fails. Please refer attached screen short.

Error -

{
  "error": {
  "detail": "",
  "message": "Invalid Quantity value"
  },
  "status": "failure"
}

Please help me what the issue is?

21 REPLIES 21

fredflintstone
Kilo Expert

It's a bit difficult to see your screenshot, but it looks like in the body 'quantity' is misspelled.   It appears you're setting 'quantitiy' (extra i before the y)


Capture.PNG


Hi Aditya,



Did you get any solution to this issue of invalid quantity?



Thanks,


Jaspal Singh


karthik73
Mega Guru

Hi Aditya,



I don't think you can use quantity in cart, as the field is on the cart item table.