Error: "Invalid Quantity value" when ordering a catalog item using REST API Explorer

Sreekar ML
Tera Contributor

Hi Community,

I'm trying to order a catalog item using the REST API Explorer in ServiceNow, but I'm encountering the following error:

 

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

 

  • Namespace: sn_sc

  • API Name: ServiceCatalogAPI

  • API Version: v1

  • Method: Buy Item

  • Endpoint:

 

POST https://<instance>.service-now.com/api/sn_sc/servicecatalog/items/{sys_id}/order_now

 

I’ve replaced {sys_id} with the actual sys_id of the catalog item I’m trying to order.

 

Need help - 

Am I using the correct approach to order a catalog item via REST API?

What could be causing the "Invalid Quantity value" error?

 

 

1 REPLY 1

debendudas
Mega Sage

Hi @Sreekar ML ,

Please follow this HI Article: How to submit a catalog item using REST API - Support and Troubleshooting

or this Community post: Solved: How to order Catalog Items from REST API Explorer? - ServiceNow Community

 

If this solution helps you then, mark it as accepted solution ‌‌✔️ and give thumbs up 👍