REST API for Order Guide submission

Krishna137
Tera Contributor

Hi,

 

We have an order guide defined in our SNOW instance. Based on the options selected on the first page, 2 catalog items will be associated to the order guide under Rule base. 

Please let me know the REST APIs to be used to submit a request under the order guide from a third party tool.

 

Thanks,

Krishna

7 REPLIES 7

Sanjeev Kumar1
Kilo Sage

Hi,

You need to write a Scripted REST API.

and run your Order Guide.

See Fillowing

https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/concept/c_RunningOrderGuidesAutomatically.html 

 

For Cart API.

https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/reference/r_ServiceCatalogScriptAPI.html 

 

It will help you 🙂

Alikutty A
Tera Sage

Hello,

There are 2 REST API function specific to Order Guides. They are submit_guide and checkout_guide, You can use these to create new order guide request from third party tool.

Please search on this API reference link and you will get details about its input and output parameters

https://docs.servicenow.com/bundle/london-application-development/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html

Hi,

 

Thank you. I had already gone through that link before. But it didnt give an idea about how to submit the request. 

 

PUT https://instance.service-now.com/api/sn_sc/servicecatalog/items/{sys_id}/submit_guide will return the catalog items based on the variables we pass for the order guide. After that how to submit the request ?

 

Can you please let me know how to submit the request after giving the above API ?

I believe you may have to checkout_guide after you use the submit API. This should be creating the items