can't create a catalog item using REST API

Chandra31
Tera Contributor

Hi @Ankur Bawiskar I'm trying to submit a request using Postman with the API and payload below, but it's generating a cart ID instead of a request number. I've followed your instructions in the old post.

 

Post : https://dev.service-now.com/api/sn_sc/servicecatalog/items/e8638d3487636250222f4226cebb35d7/order_no...

 

 

Regards,

Chandra

 

 

9 REPLIES 9

Ankur Bawiskar
Tera Patron

@Chandra31 

did you try with admin credentials in REST API Explorer?

if not then the user you are using in Postman satisfies the Available For user criteria or not?

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar  Yes, i've used admin credentials in REST API, however it is giving cart id rather than req number.

 

Regards,

Chandra

 

hi @Chandra31 ,

 is your instance might be configured for 2 step checkout?.

so in that case the order_now API  behaves like 'Add to cart'. and hence the request does not create.

 

There are 2 system properties 

  • glide.sc.sp.twostep (for Service Portal)
  • glide.sc.checkout.twostep (for native UI)

If either is set to true, the two-step process is enforced

 

Follow this thread for more information:

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

@Bhavya11  I set both properties to false and tested it, but it still returns the cart ID. I checked the suggested post, but it describes a two-step process—add to cart and submit. However, I want to make the request using a single API call.

 

Regards,

Chandra