Sandbox 101: Implementing Webhooks @SquareDev
Sandbox 101: Implementing Webhooks  @SquareDev
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
Sandbox 101: Implementing WebhooksSandbox 101: Ad Hoc Line-Items on an OrderSandbox 101: Linking Customer DataThe Sandbox: IdempotencySquare Unboxed 2023: A Partner and Developer EventBeyond the Network: Unlocking the Power of Programmable Traffic with NgrokMain Stage | Executive PanelSandbox Sessions: Refactor the Dart codeSandbox Sessions: Implement the Lambda backend in PythonSandbox Short: IdempotencyWelcome to Square DevelopersSquare | INTRODUCING SNIPPETS API
Square Developer |

Sandbox 101: Implementing Webhooks

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER