WhatsApp Status Webhooks Can Arrive Out of Order, Breaking Delivery Data
Each outgoing WhatsApp message triggers sent, delivered, read, or failed webhooks, and storing only the most recently received one can corrupt message data. A read message may revert to delivered, or a failure may be overwritten by a late sent status. Statuses can also arrive before the message is saved, causing them to be lost. The article recommends treating delivery as a forward-only state, recording each status's timestamp separately, and holding early-arriving statuses. These precautions are needed because Meta's documentation does not guarantee ordering, may send duplicates through retries, and can skip the delivered webhook when a message is read immediately.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in