Webhooks are a tool for retrieving and storing data from a certain event. They allow you to register an https:// URL where the event data can be stored in JSON or XML formats. Webhooks are commonly used for:
- Placing an order
- Changing a product's price
- Collecting data for warehousing & inventory information
- Obtaining updates on an order status such as refunds, shipment tracking info, etc
Create a Webhook
- From your Shopify admin, go to Settings > Notifications.
- Scroll down to the Webhooks section.
- Click the Create webhook button. A new window should appear.
- From the first drop-down, select the "Event" from the following list:
- Inventory Item update: a webhook will be sent every time a unit item is updated.
- Inventory level update: a webhook will be sent every time a unit in a location is updated.
- Location update: a webhook will be sent every time a location name is updated.
- Location creation: a webhook will be sent when new locations are created (warehouses, etc.)
- Order creation: a webhook will be sent every time an order is created.
- Order update: a webhook will be sent every time an order has been updated.
- Product creation: a webhook will be sent every time a product has been created.
- Product update: a webhook will be sent every time a product has been updated.
- Product deletion: a webhook every time a product is deleted to keep system clean.
- Refund create: a webhook will be sent every time a refund is issued.
- From the second drop-down, choose the JSON format in which you would like Shopify to send this information.
- Under URL, enter https://shipearlyapp.com/shopifyUpdate this is where the data is to be stored.
- Click Add webhook. Your webhook should now appear under the "Webhooks" section.
To Delete Webhooks:
- From your Shopify admin, go to Settings > Notifications.
- Scroll down to the Webhooks section.
- Next to the webhook you created, there should be a little trash can icon.
- Click the trash can icon to delete the webhook.
For more detailed information, or if Shopify changes it's UI for webhooks visit: https://help.shopify.com/manual/sell-online/notifications/webhooks
Comments
0 comments
Article is closed for comments.