REST API Issue for service-now catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 10:56 AM
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?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 11:12 AM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 01:17 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2017 06:12 AM
Hi Aditya,
Did you get any solution to this issue of invalid quantity?
Thanks,
Jaspal Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 11:12 AM
Hi Aditya,
I don't think you can use quantity in cart, as the field is on the cart item table.