Create a Service Catalog Request via REST API

Katie A
Mega Guru

Hello, is it possible to create a Service Catalog Request programmatically using the REST API?

We have an existing Requested Item and we want to request it via REST API script externally.

Thanks!

9 REPLIES 9

jason45
Kilo Guru

These guys are correct. I use the Buy Item Service Catalog API:



        /items/{sys_id}/order_now



Where sys_id is the sc_cat_item sys_id.



This will order you one item at a time. Be careful of multiple requests coming in for the same item (albeit with different variables) at the same time - it gets its knickers in a twist and Requests or data can go missing.



I have written specific versions of this API enabling end users to submit requests using friendly variable data, rather than them having to look up sys_ids of reference fields first.


Hi,

Can you please share specific version of API which allow external system to send friendly variable data rather than sys_ids. We are in same situation and passing sys_id in reference variables is killing us.

try to use an attribute in your variable header inorder for the system to accept display value

sysparm_display_value=true


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Hi, tried but still no luck.

kumarl
Kilo Explorer

Hi,

I tried submitting the Service Catalog API request for order_now, but I am getting the 'The remote server returned an error: (500) Internal Server Error.'. Could you please help me out solving the Issue. I tried submitting the request using C#. 

Thanks & Regards,

Luman.