can't create a catalog item using REST API

Chandra31
Tera Contributor

Hi @Ankur Bawiskar I'm trying to submit a request using Postman with the API and payload below, but it's generating a cart ID instead of a request number. I've followed your instructions in the old post.

 

Post : https://dev.service-now.com/api/sn_sc/servicecatalog/items/e8638d3487636250222f4226cebb35d7/order_no...

 

 

Regards,

Chandra

 

 

19 REPLIES 19

Hi  ,

 

Please follow  these for

REST API EXPLORER

Follow these steps in REST API Explorer

** make sure you have made changes on the Property.

Step 1: Open the REST API Explorer and select below

Namespace: sn_sc

API Name: Service Catalog API

API Version: latest

 

then select 'Buy item (POST)' method

 

Screenshot 2026-03-31 095636.png

Screenshot 2026-03-31 095713.png

 

 

 

POST https://instnace .service-now.com/api/sn_sc/servicecatalog/items/{sys_id}/order_now

Pass sys_id of catalog item in path parameters

 

Screenshot 2026-03-31 095742.png

 

 

 

In request body(row tab) pass json

Screenshot 2026-03-31 095856.png

 

 

Click on Send

After that

Response Screenshot 2026-03-31 095912.pngScreenshot 2026-03-31 095943.png

 

 

 

 

POSTMAN

Open postman and choose POST method and pass url like this

https://instance.service-now.com/api/sn_sc/servicecatalog/items/:sys_id/order_now

In params section add sys_id in path variables like below

Screenshot 2026-03-31 100019.png

Then set authorization  and body

{

  "sysparm_quantity": "1",

  "variables": { // add varibles list here

    "variable_name_1": "value_1",

    "variable_name_2": "value_2"

  }

 

}

 

Screenshot 2026-03-31 100047.png

 

 

Click on Send

Then the response will look like this

 

Screenshot 2026-03-31 100117.png

 

 

 

 

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

Hi @Chandra31 ,

 

did issue resolved?.

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

@Chandra31 

check point mentioned by @Bhavya11 

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

I set both properties to false and tested it, but it still returns the cart ID. I checked the suggested post, but it describes a two-step process—add to cart and submit. However, I want to make the request using a single API call.

 

Tanushree Maiti
Kilo Patron

Hi @Chandra31 

 

Endpoint URL: Use the Service Catalog API's order_now endpoint.
https://<your-instance>://<catalog_item_sys_id>/order_now

 

Try with Payload

 

{
  "sysparm_id": "a96250e407d01410540bf2508c1ed014", // pass the  sys_id of your Catalog Item
  "sysparm_quantity": "1",
  "variables": {
    "variable_name_1": "variable_value_1",
    "variable_name_2": "variable_value_2",
    "requested_for": "1f78df4047bc4bcbf6" // For reference fields like 'requested_for', you need to pass the sys_id of requested for  }
}

 

Use correct credential by which you can create request in instance itself.

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: