BlogSquare Webhooks

How to Test Square Webhooks

Square webhooks cover payments, refunds, orders, and catalog updates so back-office systems can react as money and inventory move.

Square Official Webhook Docs

1. Square Webhook Events

Square can send the following webhook events to your endpoint:

payment.created
payment.updated
refund.created
refund.updated
order.created
order.updated
catalog.version.updated

2. Set Up a Test Endpoint with HookRay

Follow these steps to start receiving Square webhooks for testing:

  1. Go to HookRay and click "Start Testing — Free" to get your unique webhook URL.
  2. Copy the URL (e.g., https://h.hookray.com/abc123).
  3. In your Square dashboard, navigate to the webhook settings and paste the HookRay URL as your endpoint.
  4. Select the events you want to receive (see list above).
  5. Trigger a test event — HookRay will show the incoming webhook in real-time.

3. Sample Square Webhook Payload

Here's an example of what a Square webhook payload looks like:

payload.json
{
  "merchant_id": "ML4F4M3A6H4G2",
  "type": "payment.updated",
  "event_id": "v1-payment-3b6e8d6f",
  "created_at": "2026-03-20T10:05:00Z",
  "data": {
    "object": {
      "payment": {
        "id": "R2B3Z4Y5X6",
        "amount_money": {
          "amount": 4200,
          "currency": "USD"
        },
        "status": "COMPLETED"
      }
    }
  }
}

4. Common Issues & Troubleshooting

Webhook not arriving?

Check that your endpoint URL is correct and publicly accessible. Square cannot reach localhost URLs — use HookRay's cloud URL instead.

Getting 400 or 500 errors?

HookRay accepts any payload and returns 200 OK by default, so the issue is likely on Square's side. Check your webhook configuration and event selection.

Need to verify webhook signatures?

Square signs webhook requests for security. Use HookRay to capture the raw headers and body, then implement signature verification in your application code.

5. Next Steps

  • Use HookRay's webhook replay feature to re-send captured webhooks while building your handler
  • Enable smart parsing (Pro plan) to see Square-specific fields highlighted automatically
  • Check the Square webhook documentation for the complete event reference

Ready to test Square webhooks?

Get a free webhook URL in 5 seconds. No signup required.

Start Testing Square Webhooks — Free