Shopify Webhook Payload 中缺少源信息

问题描述

我为 Shopify Webhook 获取的有效负载缺少某些事件所需的一些信息,我不确定如何设置它们。 As the documentation says,结帐/创建事件应包含以下字段:

  • source_identifier
  • source_url
  • device_id
  • 来源

即使我得到这些字段,它们的值也始终是 null。我已经尝试在 url 中包含所有常见的 utm 字段并在不同的设备上尝试过,但在所有情况下该值都为空。我需要做些什么才能正确设置这些字段?

这是一个示例负载

   {
      "id": 2138997617xxxx,"token": "34ef7992da1c58952e6c6756f090xxxx","cart_token": "a92ffd8d1837a3f20f2d2e2c8966xxxx","email": null,"gateway": null,"buyer_accepts_marketing": false,"created_at": "2021-06-16T13:04:20+02:00","updated_at": "2021-06-16T13:04:21+02:00","landing_site": "\/","note": null,"note_attributes": [],"referring_site": "","shipping_lines": [],"taxes_included": true,"total_weight": 400,"currency": "EUR","completed_at": null,"closed_at": null,"user_id": null,"location_id": null,"source_identifier": null,"source_url": null,"device_id": null,"phone": null,"customer_locale": "de","line_items": [
        ...
      ],"name": "#2138997617xxxx","source": null,"abandoned_checkout_url": "...","discount_codes": [],"tax_lines": [],"source_name": "web","presentment_currency": "EUR","total_discounts": "0.00","total_line_items_price": "27.00","total_price": "27.00","total_tax": "0.00","subtotal_price": "27.00","total_duties": null
    }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)