Square payment.updated webhook payload example

Square · event: payment.updated · content type: application/json

This is a representative sample — fake IDs, real structure. To see a payload with your data, point the provider at a capture URL (button below).

See it live, not frozen

One click creates a free capture bin with this exact payload already in it — pretty-printed, headers inspectable, replayable to your own endpoint:

Then paste the bin's URL into Square's webhook settings to capture a real delivery. No signup.

Headers

content-type: application/json
user-agent: Square Connect v2
x-square-hmacsha256-signature: gPzOT2NsFJEXAMPLEbase64hmacEXAMPLEUuFsGd0cs=

Body

{
  "merchant_id": "6SSW7HV8K2ST5",
  "type": "payment.updated",
  "event_id": "13b867cf-db3d-4b1c-90b6-2f32a9d78124",
  "created_at": "2026-08-29T00:00:00.087Z",
  "data": {
    "type": "payment",
    "id": "KkAkhdMsgzn59SM8A89WgKwekxLZY",
    "object": {
      "payment": {
        "id": "KkAkhdMsgzn59SM8A89WgKwekxLZY",
        "status": "COMPLETED",
        "amount_money": {
          "amount": 2995,
          "currency": "USD"
        },
        "order_id": "nUSN9TdxpiK3SrQg3wzmf6r8LP9YY",
        "created_at": "2026-08-28T23:59:58.907Z",
        "updated_at": "2026-08-29T00:00:00.087Z",
        "version": 2
      }
    }
  }
}

Things that bite people

Send it yourself

Reproduce this delivery against any endpoint (your handler, a bin, staging):

$ curl -X POST https://your-endpoint.example/hook \
  -H 'content-type: application/json' \
  -H 'user-agent: Square Connect v2' \
  -H 'x-square-hmacsha256-signature: gPzOT2NsFJEXAMPLEbase64hmacEXAMPLEUuFsGd0cs=' \
 -d '{"merchant_id":"6SSW7HV8K2ST5","type":"payment.updated","event_id":"13b867cf-db3d-4b1c-90b6-2f32a9d78124","created_at":"2026-08-29T00:00:00.087Z","data":{"type":"payment","id":"KkAkhdMsgzn59SM8A89WgKwekxLZY","object":{"payment":{"id":"KkAkhdMsgzn59SM8A89WgKwekxLZY","status":"COMPLETED","amount_money":{"amount":2995,"currency":"USD"},"order_id":"nUSN9TdxpiK3SrQg3wzmf6r8LP9YY","created_at":"2026-08-28T23:59:58.907Z","updated_at":"2026-08-29T00:00:00.087Z","version":2}}}}'

← All payload examples · Related guide · Signature debugger · Docs