I'm using the rest API
.../index.php/rest/V1/orders/561/
in order to update my order status:
Payload (POST):
{
"entity": {
"entity_id": 561,
"state": "new",
"status": "pending"
}
}
That works fine, but it's not triggering an order status email. Looking into the full payload I don't see any option to trigger the email. Triggering the comments API is triggering a email but it is not the status change email. Any ideas?
Best Answer
You can use the salesOrderManagementV1 to add a comment to an order email and send an email:
Some details from the code:
You can also add a comment in that email:
Digging into the API code: