Request Body format to make a Service Catalog REST API call for 'Buy Item' with variables


Description

Request Body format to make a Service Catalog REST API call for 'Buy Item' with variables

Instructions

POST https://<instance_name>.service-now.com/api/sn_sc/servicecatalog/items/<sc_cat_item_sys_id>/order_now
{
"sysparm_quantity": "1",
"variables":
{
"requested_for":"<sys_id_of_user>",
"short_description":"Test variable",
"description":"Test"
}
}

Additional Information

If the variables contains a reference field, please note that the system expects a sys_id value for it.

The client can make a get call with a display name and get the sys_id before substituting it in the variables values.