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?
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
The webhook is working now even though I changed nothing. It must have been an issue with shopify
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.