
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 10:45 AM
I'm trying to test the catalog API Order Now using SOAP UI. According to the link I provided it should return to me the request number. However it is returning the sys_id of a shopping cart. What am I missing? Below is the json body I am sending. All fields in this request are single line text.
{
sysparm_quantity: 1,
variables: {
first_name: 'John',
middle_name: '',
last_name: 'smith',
employee_id: 'test',
employee_type: 'test',
employee_manager: 'test',
department: 'test',
start_date: 'test',
end_date: 'test',
managment_level: 'test',
work_location: 'test',
work_hours: 'test'
}
}
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:27 AM
Hi,
I believe two-step may cause some issues. You could try on PDI, for example, disabling it to see if that helps.
You can also review the code for it at:
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:03 AM
Hello,
Is that all that you're sending and is your URL using the item sys_id?
Is the request actually created? Have you found it in your system?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:12 AM
Yes the URL has the sys_id of the item. If I impersonate the account I'm using to test with I find the request filled out in their cart. If I use Rest API explorer giving it the sys_id of the item and the same json body in the raw tab. I get the same results. The item is filled out and in my cart.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:18 AM
And just to ask, because I have to, haha, you're using order_now not
/sn_sc/servicecatalog/items/{sys_id}/add_to_cart
Because it sounds like you're using the add_to_cart.
Thanks
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 11:19 AM