The CreatorCon Call for Content is officially open! Get started here.

How to submit request via API .

Rajyalakshmi
Tera Expert

I have created one catalog item.i need to publish API for this catalog item and need to provide API details to customer.please guide.How we can implement this functionality in servicenow?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Rajyalakshmi 

you can ask them to use OOTB Service Catalog API and ask them to send the JSON request in proper format

Service Catalog API 

also check this link

Service Catalog REST API - ORDERNOW to check all Mandatory Fields before creating Request Item 

OR

you can use a Scripted REST API which gives you full control on what API request and response will look like

I shared solution here few years ago, check that and enhance

Scripted rest api 

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Rajyalakshmi 

you can ask them to use OOTB Service Catalog API and ask them to send the JSON request in proper format

Service Catalog API 

also check this link

Service Catalog REST API - ORDERNOW to check all Mandatory Fields before creating Request Item 

OR

you can use a Scripted REST API which gives you full control on what API request and response will look like

I shared solution here few years ago, check that and enhance

Scripted rest api 

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader