I want to create a product order using the json by passing it in rest api explorer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 02:22 AM
Hi All,
I want to create a product order using the json by passing it in rest api explorer. But I will be passing the product offering name. I will not pass the sys_id in the request payload. But instead I will be passing the name of the product offering and specification in the request payload. Is it possible to do this? Can I use scripted rest api to use the sysid of the corresponding product offering by scripting to create a product order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 10:56 PM
hi @NishaB ,
Maybe, my reply might be too late, but let me try to answer for your question.
> I will not pass the sys_id in the request payload.
> But instead I will be passing the name of the product offering and specification in the request json payload.
> Is it possible to do this?
When you try to create a product order through "Product Order Open API", you have to put the sys_id of both Product Offering and Product Specification into the payload. Without having a sys_id, sending by only the name is not accepted by the API.
I hope this comment is fit with your question..
Thank you!