You can expand this object to inspect all the properties contained in the data that came in the payload: Here, you can access all the headers that came with the webhook and inspect their values:įor the webhook payload, the Body section contains a browsable object representing the webhook payload.
![shopify webook shopify webook](https://uploads-ssl.webflow.com/6112e42ed0e9760a90cc0610/6112e42ed0e976c042cc0a0a_15751624467714_.pic_hd.jpg)
Starting from the top section you can see some metadata provided by Hookdeck, shown below: The webhook event page provides you with in-depth details regarding the webhook you just received. Load this URL in your browser and you will see a screen similar to the one below:
![shopify webook shopify webook](https://i.ytimg.com/vi/B6zSNouMcBM/maxresdefault.jpg)
To view details of the webhook, copy the event URL, which is the last item on the logged webhook in the CLI. Once sent, you will see an entry in your Hookdeck CLI session like below:Īs seen in the above image, the status of the request is 201, indicating that a new resource has been created on the logger API.
#Shopify webook update
Conveniently, Shopify provides a way to send a test webhook notification, which you can do by clicking the Send test notification button on your webhook row as displayed in the previous image.Ĭlick this button for your Cart update webhook subscription to send a test webhook. Great! You now have your webhook logging system set up, and it's time to put it to the test. Copy and paste this into your browser to begin a guest login session. Note: If you're running the CLI in guest mode, you will need to use the guest Login URL link in the console to access the dashboard. With this information, the CLI will begin the process of generating the URL and once it's done, you will see the URL printed to the screen and the CLI indicating that it is ready to receive requests. What's the connection label (i.e.: My API)? log-shopify-webhook (if you're using your own custom server, replace this value with your endpoint) What path should the webhooks be forwarded to (i.e.: /webhooks) **What should your new source label be? **
![shopify webook shopify webook](https://i.ytimg.com/vi/Cj6HuupVgZU/maxresdefault.jpg)
PromptĬreate new source (this prompt does not show up if you have not created any previous connections)* Ensure to hit the Enter key after each answer. Below are the questions and the answers you should supply to each question. This command starts an interactive session where the CLI collects information about the endpoint you're about to create.