- 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-14-2019 10:58 AM
This means that they need to pass some mandatory variable value in payload.
You have to look at your REST API definition to see which fields are mandatory.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 05:27 AM
Can you help me understanding that? I didn't find any other variable.
Thanks,
Arindam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 05:48 AM
Greetings Arindam,
Best option is to try this with the rest api explorer. Namespace - sn_sc. You typically need to get the variables for an item, to see which ones are required in order to submit the item to be requested. In this case, it appears your catalog item you are trying to request requires a detail variable, which you are not providing.
-Andrew Barnes
Join me at Developer Blog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 06:47 AM