문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top