- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 10:27 AM
Hi All,
I created test catalog item to create request using Service Catalog API. I am using "Buy Item(POST)" method in REST API explorer. But its giving me below error. Can anyone help here
{
"error": {
"message": "com.glide.rest.domain.ServiceException: Exception while reading request",
"detail": ""
},
"status": "failure"
}
Paylod:
{
'sysparm_id': 'f59b3f0e9709121080e4b390f053af49',
'sysparm_quantity': '1',
'variables':{
'car_name': nexon'
}
}
There is only one variable in this catalog item
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 08:57 PM
hi @SANDEEP28 ,
pass below payload in raw
{
'sysparm_id': 'f59b3f0e9709121080e4b390f053af49',
'sysparm_quantity': '1',
'variables':{
'car_name': 'nexon'
}
}
try to execute once again.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 08:57 PM
hi @SANDEEP28 ,
pass below payload in raw
{
'sysparm_id': 'f59b3f0e9709121080e4b390f053af49',
'sysparm_quantity': '1',
'variables':{
'car_name': 'nexon'
}
}
try to execute once again.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 11:42 PM
Hi @SANDEEP28
As per the payload shared by you, you have missed a ' before nexon. Please try with below payload and see if it works :
{
'sysparm_id': 'f59b3f0e9709121080e4b390f053af49',
'sysparm_quantity': '1',
'variables':{
'car_name': 'nexon'
}
}
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 12:24 AM
Hi @SANDEEP28 ,
There is just a little error in payload please correct it as below
Paylod:
{
'sysparm_id': 'f59b3f0e9709121080e4b390f053af49',
'sysparm_quantity': '1',
'variables':{
'car_name': 'nexon'
}
}
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 12:50 AM
Hi @SANDEEP28,
Mostly in this scenario, we get the error in payload. To validate the payload, you can use this site below:
And there is minor issue in your payload:
{ 'sysparm_id': 'f59b3f0e9709121080e4b390f053af49', 'sysparm_quantity': '1', 'variables':{ 'car_name': 'nexon' } }
Please accept my solution if it works for you and thumps up.
Thanks
Jitendra