When I try to use the OOB: Add Item To Cart(POST) & Submit Order(POST) it says: "Mandatory...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Team,
We have a requirement to provide users to create REQ, RITM for a catalog item, When I'm trying to provide them the POST link by using the OOB: Add Item To Cart(POST) & Submit Order(POST) it says:
400 Bad Request
In Response body:
{
"error": {
"message": "Mandatory Variables are required",
"detail": ""
},
"status": "failure"
}Eventhough, i filled the required all the variables. One of the variables is 'Read only, some of them are mandatory variables.
Thanks,
Nikhil Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
it should work ideally as you passed the mandatory variables
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
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader