我正在尝试与Lightspeed电子商务平台进行一些自定义集成,我需要一种连接add_ to _cart/ update_cart操作的方法,但我找不到任何连接到此事件的钩子。在Lightspeed中这是可能的吗?开发人员文档完全没有提到添加到购物车/更新...有什么提示吗?
发布于 2018-07-13 22:31:33
您可以通过创建一个用于报价/更新的webhook来捕获此操作。当购物车得到更新时,会向您的给定url发送一个请求,其中包含所有必需的信息。看看这个页面:https://developers.lightspeedhq.com/ecom/endpoints/quote/
发布于 2021-04-22 03:14:47
设置webhook的正确方法是发布:
https://api.yourshop.com/en/webhooks.json
{
"webhook": {
"isActive": true,
"itemGroup": "orders",
"itemAction": "*",
"language": "en",
"format": "json",
"address": "https://yourwebhook.com/"
}
}请注意,字段itemAction有一个*,它将接收操作created|updated|deleted
更多信息请点击此处:https://developers.lightspeedhq.com/ecom/endpoints/webhook/#post-create-a-webhook
https://stackoverflow.com/questions/48008568
复制相似问题