Uploaded July 2020 | Updated September 2026, 8 hours ago
You can use Webhooks to get notified about API events at the time they occur. These are very useful to integrate to prevent the need to build polling into your application. Here, we walk through an example Serverless Application Model (or SAM) app that creates resources in AWS for handling Webhook events. Since this is a SAM application, it uses AWS Lambda, AWS HTTP API, and AWS DynamoDB.
A key thing to call out is that this tutorial is only covering how to handle accepting and verifying webhooks with Square. This means that it will only handle creating an endpoint to accept events at, verifying that it is a valid payload sent by Square, and then storing that information to be processed later (or by another system). All webhook events are just stored in a DynamoDB table in the end, so you could process those asynchronously.
Check out the example application linked below, and find more information about Square’s webhook events by taking a look at our documentation.
SAM Webhooks App: github.com/mootrichard/square-webhooks-sam-app
Webhooks: developer.squareup.com/docs/webhooks-overview
Stop Using Servers to Handle Webhooks blog post: developer.squareup.com/blog/stop-using-servers-to-handle-webhooks
New Webhook Event for Syncing with Square Catalog blog post: developer.squareup.com/blog/new-webhook-event-for-syncing-with-square-catalog
Square Developer Forums – developer.squareup.com/forums
Square Developer Community – https://squ.re/slack
Square Developer Twitter – twitter.com/squaredev
Square Developer Blog – developer.squareup.com/blog
You can use Webhooks to get notified about API events at the time they occur. These are very useful to integrate to prevent the need to build polling into your application. Here, we walk through an example Serverless Application Model (or SAM) app that creates resources in AWS for handling Webhook events. Since this is a SAM application, it uses AWS Lambda, AWS HTTP API, and AWS DynamoDB.
A key thing to call out is that this tutorial is only covering how to handle accepting and verifying webhooks with Square. This means that it will only handle creating an endpoint to accept events at, verifying that it is a valid payload sent by Square, and then storing that information to be processed later (or by another system). All webhook events are just stored in a DynamoDB table in the end, so you could process those asynchronously.
Check out the example application linked below, and find more information about Square’s webhook events by taking a look at our documentation.
SAM Webhooks App: github.com/mootrichard/square-webhooks-sam-app
Webhooks: developer.squareup.com/docs/webhooks-overview
Stop Using Servers to Handle Webhooks blog post: developer.squareup.com/blog/stop-using-servers-to-handle-webhooks
New Webhook Event for Syncing with Square Catalog blog post: developer.squareup.com/blog/new-webhook-event-for-syncing-with-square-catalog
Square Developer Forums – developer.squareup.com/forums
Square Developer Community – https://squ.re/slack
Square Developer Twitter – twitter.com/squaredev
Square Developer Blog – developer.squareup.com/blog










![Square | INTRODUCING SNIPPETS API
Learn all about how you can build eCommerce apps with the new Snippets API and help the thousands of sellers who sign up for Square Online every day at developer.squareup.com/snippets-api.
The Snippets API inserts your Javascript, HTML, or CSS into Square Online with a simple POST request. So you can build custom add-ons that sellers can add to their online sites. Easy!
You can market your app in the Square App Marketplace. And sellers can install your app as an add-on with just a few clicks. Boom—everybody wins.
Start building today: developer.squareup.com/snippets-api.
[TRANSCRIPT]
Thousands of merchants sign up for Square Online every day — so they can quickly and easily set up their online stores, and start selling in more ways.
Now — for developers — there’s the new Snippets API that lets you seamlessly add HTML, CSS and JAVASCRIPT into a sellers website.
...Like that.
This means you can build customized add-ons for Square Online sellers, making their online store better.
You could help sellers …
Boost customer loyalty with chatbots
Grow email lists with marketing pop-ups.
Increase trust with live social proof, and…
Showcase reviews from top platforms.
Then, integrate your app and publish to the Square App Marketplace — sellers can install with the click of a button.
Start building today with Square.
developer.squareup.com
keyword: SNIPPETS Square | INTRODUCING SNIPPETS API](https://i.ytimg.com/vi/JbytzNibk54/mqdefault.jpg)