- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2019 10:51 AM
Gertting below error while creating request in servicenow through REST API integration using Cart API:
{"error":{"message":"Mandatory Variables are required","detail":""},"status":"failure"}>
Not sure why. Third party is sending the Payload in below format with all mandatory fields on request form:
Creation message: {
"variables": {
"description": "my request description",
"short_description": "my request",
"requested_for": "777713784fd4d8888ddab33181108885",
},
"sysparm_quantity": "1"
}
Appreciate your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2019 07:55 AM
Thanks for the response. The issue was with the variable name. I misspelled one variable name which caused this issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 07:49 AM
To use submit_order, item should be added to cart
Please use Buy item (order_now) end point
api/sn_sc/servicecatalog/items/{sys_id}/order_now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 11:30 AM
Thanks for the reply and as you suggested, I have used the same endpoint:
But still having the issue and this time different error(
Mandatory Variables are required) even though I have added all mandatory variables.
Here is the payload:
{
"variables": {
"description": "test",
"dueDate": "02/16/2019 14:20:59",
"assignment_group": "f8fc1924db792b40e10974dfaa961918",
"short_description": "etest",
"requested_for": "68ec13784fd4d2003ddab3318110c7d1",
"cmdb_ci": "44e090344f620b003ddab3318110c73f"
},
"sysparm_quantity": "1",
"detail": "This is a detail"
}
Here is the error message:
{ "error": { "detail": "", "message": "Mandatory Variables are required" }, "status": "failure" }
Please suggest.
Thanks,
Arindam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2019 07:55 AM
Thanks for the response. The issue was with the variable name. I misspelled one variable name which caused this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 11:55 AM
Thanks you and I used the same.
{
"u_resilient_incident_id": "3033.2258201",
"variables": {
"description": "test",
"dueDate": "02/16/2019 14:20:59",
"assignment_group": "f8fc1924db792b40e10974dfaa961918",
"short_description": "etest",
"requested_for": "68ec13784fd4d2003ddab3318110c7d1",
"cmdb_ci": "44e090344f620b003ddab3318110c73f"
},
"sysparm_quantity": "1",
"detail": "This is a detail"
}