截至2025年1月,我们将更改Webhook中客户的表示方式:
- 我们添加了customers/purchasing_summary Webhook。
- 我们对包含客户负载的Webhook进行了一些更改: 我们移除了 tags,转而使用 customer.tags_added 和 customer.tags_removed Webhook。 我们移除了 email_marketing_consent,转而使用 customers/email_marketing_consent_update。 我们移除了 sms_marketing_consent,转而使用 customers/marketing_consent_update。 我们移除了以下字段:last_order_id、last_order_name、total_spent 和 orders_count。它们现在在新的 customers/purchasing_summary Webhook 中可用,但 last_order_name 已被弃用。
- 我们移除了tags,转而使用customer.tags_added和customer.tags_removed Webhook。
- 我们移除了email_marketing_consent,转而使用customers/email_marketing_consent_update。
- 我们移除了sms_marketing_consent,转而使用customers/marketing_consent_update。
- 我们移除了以下字段:last_order_id、last_order_name、total_spent和orders_count。它们现在在新customers/purchasing_summary Webhook中可用,但last_order_name已被弃用。
包含客户负载的Webhook如下:
- checkouts/create
- checkouts/update
- customers/create
- customers/delete
- customers/disable
- customers/enable
- customers/update
- draft_orders/create
- draft_orders/update
- orders/cancelled
- orders/create
- orders/fulfilled
- orders/paid
- orders/partially_fulfilled
- orders/updated
了解有关Webhook主题的更多信息,请访问Shopify.dev。

