
- 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:58 AM
Hi,
Yeah, that's what I figured.
You could attempt to take the sys_id in response...and fire yet another curl using the check_out:
/sn_sc/servicecatalog/cart/checkout
You'd want to review that approach as that orders all items in checkout, maybe you can try and specify the item, etc. but essentially, the main point is, you'd have to punch the checkout through.
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 01:30 PM
Yes that works, now lets just hope the developer for workday can figure out how to take the response and send another api.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 02:12 PM
Gave correct answer to early. The checkout api just return what was in the cart but never actually submitted the cart. I had to use /api/sn_sc/v1/servicecatalog/cart/submit_order instead.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 02:59 PM
Hi
Alright, heh.
Yeah, like I said above:
the main point is, you'd have to punch the checkout through. So I was just trying to help read the documentation as that's not something I've had to personally do, but glad you got the idea and looked into it.
I didn't mean that specific method, but was guiding the approach. I would believe the correct answer to your question (posted above) was why was it going to the cart...and that was because of 2-step?
Additional info, to help you, was the extra info I provided about approaching it with a second curl request.
Take care
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!