can't create a catalog item using REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Regards,
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Ankur Bawiskar Yes, i've used admin credentials in REST API, however it is giving cart id rather than req number.
Regards,
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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:
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@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
