Dear colleagues!
Please, check if I am right in my understanding of Product Ordering REST API.
If I have some product in status "active" and I want to suspend it, I have to send to Product Ordering API something like this:
{
"id": "30001",
"productOrderItem": [
{
"id": "100",
"action": "modify", "product": {
"id": "4444"
"status": "suspended" }
}
]
}
Question #1: Am I right?If yes, then I have the next
question #2: what is the reason of the desicion to separate Product Item Actions (add/delete/modify/noChange) and Change Status Actions (suspend, unsuspend, etc.)? What would be wrong, if we have just one mixed type of action, so we can use it whenever we want to create or suspend our product? It could have add/delete/modify/noChange/suspend/unsuspend/add_suspended actions (etc.).
The upper example could be like this:
{
"id": "30001",
"productOrderItem": [
{
"id": "100",
"action": "suspend", "product": {
"id": "4444"
}
}
]
}
Thank you!
------------------------------
Konstantin Malyshev
Bercut LLC
------------------------------