doujiexin1136 2016-03-08 16:04
浏览 264
已采纳

在通过API创建订单时,Shopify Webhook不会触发

When I create an order through the orders API the webhook for orders/create does not fire, however, if a real order comes through the store the webhook successfully fires.

Does anyone know how I can use the orders API to create an order and have the webhook trigger?

  • 写回答

2条回答 默认 最新

  • douzi8916 2016-03-08 17:55
    关注

    Order hook for shopify triggers every-time, sometimes even multiple times and it triggers for order-update too when order is created. There must be something wrong that you were trying.

    You can use logger to write down to a file with extension ".txt". So that you can know how many times web-hook is triggered or it's triggered or not.

    You can use this: https://github.com/Seldaek/monolog

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
  • dsxfa26482 2016-03-08 17:28
    关注

    The webhook is working now even though I changed nothing. It must have been an issue with shopify

    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 利用加权最小二乘法求亚马逊各类商品的价格指标?怎么求?
  • ¥15 c++ word自动化,为什么可用接口是空的?
  • ¥15 Matlab计算100000*100000的矩阵运算问题:
  • ¥50 VB6.0如何识别粘连的不规则的数字图片验证码
  • ¥16 需要完整的这份订单所有的代码,可以加钱
  • ¥30 写一个带界面控制的机房电脑一键开机关机并且实时监控的软件
  • ¥15 Stata数据分析请教
  • ¥15 请教如何为VS2022搭建 Debug|win32的openCV环境?
  • ¥15 关于#c++#的问题:c++如何使用websocketpp实现websocket接口调用,求示例代码和相关资料
  • ¥15 51单片机的外部中断,按下按键后不能切换到另一个模式