2

Is there a way for Magento2 to send tracking information email to the customer when tracking information is saved?

Currently, we are using 3rd party tool ecomdash to process the order and shipment, and it use SOAP API to send back the tracking information to Magento 2, however, it does not notify the customer with email. Is there a way to trigger the "Send Tracking Information" when Magento received the tracking info?

1

Even though a long time has passed, answering for anyone else that might need it. When calling the ship api at: /V1/order/{orderId}/ship, there is a notify key you can pass, thus causing Magento to send a notification, so your JSON might look something like:

{
  "notify": true, // This causes the client notification email
  "tracks": [
    {
      "track_number": "1Y-9876543210",
      "title": "Some Title",
      "carrier_code": "custom"
    }
  ]
}

See more here: https://devdocs.magento.com/swagger/#/salesShipOrderV1/salesShipOrderV1ExecutePost

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.