Inbound REST API (Service Catalog API) how to assistance
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-18-2021 06:00 AM
I am interested in creating inbound REST API from ISIM into ServiceNow. I have found that I need to use the Service Catalog API in order to have a REQ created which in turn created a RITM and SCTASK. I have looked at the Service Catalog API documentation but it unfortunately wasn't as helpful as I was hoping. Is there any documentation/videos which shows how to setup and utilize the Service Catalog API?
- Labels:
 - 
						
							
		
			Service Catalog
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-19-2021 02:34 AM
Hello,
I use the Buy Item resource from the Service Catalog API:
Sample request (POST) is:
https://instance.service-now.com/api/sn_sc/servicecatalog/items/sys_id_of_catalog_item/order_now
With a request body (JSON):
{
               "sysparm_quantity": "1",
               "variables": {
                              "FieldName1":"Value1",
                              "FieldName2": "Value2",
                              "FieldName3": "Value3",
                              "FieldName4": "Value4"
               },
               "sysparm_requested_for": "sys_id_of_requested_for_user"
}
sysparm_quantity: the number of requests to create.
variables: an object build up of the catalog variable names and values. NOTE: for reference fields / list collectors you need to pass the sys_id value (comma separated for multiple list collector values).
sysparm_requested_for: the sys_id of the user record you are requesting for
This requires basic authorization to POST with a User Name / Password set up in your SN instance.
I hope this helps. Any other questions let me know.
Geoff
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-22-2021 10:01 AM
Hi Joseph - please let me know if this answered your question.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-15-2024 01:48 AM
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-20-2024 01:45 PM
You can probably just remove the comma at the end of:
"shipment_type": "By Ship",
