WhatsApp Messages Rejected with Error 1340: Outside of Allowed Window WhatsApp Messages Rejected with Error 1340: Outside of Allowed Window

WhatsApp Messages Rejected with Error 1340: Outside of Allowed Window

Asha Chintaluru

Symptom

WhatsApp messages are getting rejected with Error 1340, "Outside of the allowed window—This message is sent outside of the allowed response window."

Applies To

  • Messages API
  • WhatsApp

Resolution

Ensure that you are using a templated message.

Cause

This error occurs if a free-form or non-templated WhatsApp message is sent outside the Customer Care Window (24 hours after an end-user sends a message to the customer). WhatsApp requires that any message that is sent to a user for the first time, or that is outside the Customer Care Window be a templated message, therefore, freeform or non-templated messages will be rejected with error code 1340 (WhatsApp error codes:470-for On-Premise number,i.e Vonage hosted number and 131047 for WhatsApp Cloud number,i.e WhatsApp hosted numbers).

Additional Information

For more information, see Facebook's WhatsApp Messages Guidelines.