I am using API call to create order shipment.
$ch = curl_init("https://store-url/index.php/rest/all/V1/order/17168/ship");
It creates the shipment but not sending shipment email.
Please suggest me some idea.
thanks
I am using API call to create order shipment.
$ch = curl_init("https://store-url/index.php/rest/all/V1/order/17168/ship");
It creates the shipment but not sending shipment email.
Please suggest me some idea.
thanks
The notify field is used to trigger Magento to send the shipment email.
Found the answer here:
So in order to send shipment email to customer, final call should be:
$ch = curl_init("https://store-url/index.php/rest/all/V1/order/order_id/ship?notify=true");