Invoice paid webhook is doubled

Since 30 of April, every webhook has been received 2 or sometimes 3 times. Why does this happen?

Receiving duplicate webhook notifications can occur due to several reasons:

  1. Retries Due to Non-2xx Responses: If your server does not respond with a 2xx HTTP status code, Square will retry sending the webhook notification. Ensure your server is responding with a 2xx status code promptly to avoid retries.

  2. Network Issues: Temporary network issues can cause duplicate notifications if the initial delivery attempt fails or times out.

  3. Multiple Subscriptions: Check if you have multiple webhook subscriptions set up for the same event. This can lead to receiving the same notification multiple times.

  4. Webhook Configuration: Verify your webhook configuration in the Square Developer Console to ensure there are no misconfigurations that might cause duplicate notifications.

Review your webhook logs in the Developer Console to identify patterns or issues with the responses your server is sending back to Square.

This answer was reviewed by @ashley-square.