如何在Magento中使用RESTful API发送运输电子邮件通知?

时间:2019-02-11 17:44:47

标签: magento magento2

我试图在设置跟踪号并将订单状态更改为<已发货后发送通知。

我正在使用Magento Restful API服务,您可以在这里找到:https://devdocs.magento.com/swagger/index.html#/

我在带有以下JSON的Magento文档/V1/order/{orderId}/ship上找到了此调用:

     {
      "items": [
        {
          "extension_attributes": {},
          "order_item_id": 0,
          "qty": 0
        }
      ],
      "notify": true,
      "appendComment": true,
      "comment": {
        "extension_attributes": {},
        "comment": "string",
        "is_visible_on_front": 0
      },
      "tracks": [
        {
          "extension_attributes": {},
          "track_number": "string",
          "title": "string",
          "carrier_code": "string"
        }
      ],
      "packages": [
        {
          "extension_attributes": {}
        }
      ],
      "arguments": {
        "extension_attributes": {}
      }
    }

我已将notify属性设置为true。但是,我仍然没有收到任何电子邮件。是否有仅用于此目的的另一个RESTful API?如何在Magento中使用RESTful API发送运送电子邮件通知?

0 个答案:

没有答案