Webhooks


SpreadSimple has a new feature - Webhooks, that can be found in Checkout Tab.

What is a webhook?

Put simply, as soon as something happens, the webhook immediately notifies other applications transferring the data about the event. Just like SMS that you get from your bank whenever there is some activity in your bank account.
So basically webhooks provide automatic real-time communication between apps and it's all done quickly and almost effortlessly.



What do I need webhooks for?

Using webhooks can be a great way to automate your business processes like order collection that results in saving lots of time and effort. All you need to do is integrate them with other tools you want to use.

How do I set the webhooks up?

To use webhooks you will need an intermediate automation service like Integromat, Zapier, etc. To use webhooks you will need an intermediate automation service like Integromat, Zapier, etc.
There you need to add the tool you want to connect with your SpreadSimple website and then create your custom webhook URL. This URL should be pasted into Webhooks URL Field in your Checkout Tab on SpreadSimple.

Setting up the Webhook URL

After all the changes have been saved, make sure to have a test run to see that your service catches the webhook which means the connection is working. For that you just need to make a test order in your store.
If everything works fine the service will explore and gain the data structure which comes from your order request. That data is what will be used by the tool you want to integrate your SpreadSimple website with.

Use case:

Using Webhooks we build a CRM for our SpreadSimple store. We highly recommend you to watch this tutorial video to get the idea of how webhooks can be applied in an automation process.



The tech stuff

- Webhook makes a POST request to the specified URL
- The body is in JSON format
- Request body sample:
{
"emailFrom": null,
"subject": null,
"client": {
"name": "John",
"phone": "123123",
"email": "john@example.com",
"message": "Baker str, 210b"
},
"cartItems": [
{
"title": "Leather two-cushion sofa",
"image": "https://i.imgur.com/cVdCdL2.jpg",
"price": 1804,
"hash": 2786557451,
"quantity": 1,
"priceFormatted": " $ 1,804.00"
},
{
"title": "Fabric three-cushion sofa",
"image": "https://i.imgur.com/CNZAOY2.jpg",
"price": 1385,
"hash": 272129055,
"quantity": 1,
"priceFormatted": " $ 1,385.00"
},
{
"title": "Modern sofa",
"image": "https://i.imgur.com/7yojwep.jpg",
"price": 2200,
"hash": 3767661806,
"quantity": 1,
"priceFormatted": " $ 2,200.00"
}
],
"totalAmountFormatted": " $ 5,389.00",
"totalAmount": 5389,
"orderId": "92K106I",
"cartItemsText": "- Leather two-cushion sofa | 1804 × 1\n- Fabric three-cushion sofa | 1385 × 1\n- Modern sofa | 2200 × 1"
}
Was this article helpful?
Cancel
Thank you!