Shopify事件API在更新订单时无法正常工作。

huangapple go评论74阅读模式
英文:

shopify event API is not working for Update Order

问题

我正在使用 RESTful API 将 Shopify 订单与我的数据库同步,我正在使用以下 API:

https://sapphire-online.myshopify.com/admin/api/2020-07/events.json?filter=order&created_at_min=2020...

以获取最近在 Shopify 上更新的事件记录。

这个操作的结果是:

{
    "events": []
}

除了 Confirm 动作之外,这个 API 并不起作用。

根据 Shopify 的文档,更新事件并不起作用,它只会返回 Confirm 记录。我已经尝试过 Webhooks,

英文:

I am synchronizing Shopify Order with my Database using restful APIs and I am using this API

https://sapphire-online.myshopify.com/admin/api/2020-07/events.json?filter=order&created_at_min=2020...

to get event records which are recently updated on shopify.

Result of this:

{
    "events": []
}

This API is not working except Confirm verb.

as per shopify documentation update event is not working, its returning only Confirm records. I already try Weebhooks,

答案1

得分: 1

为什么不只是设置并监听订单/更新的网络钩子?实际上,这是有效的,而且你可以自定义它,只返回你感兴趣的数据。

英文:

Why not just setup and listen to an orders/update webhook? That actually does work, and you can customize it to only return data you are interested in.

huangapple
  • 本文由 发表于 2020年7月25日 12:35:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/63084391.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定