0

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

  • 源标识符
  • source_url
  • 设备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
    }
4

0 回答 0