> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wavix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp service window closed

> The message isn't a template, and the recipient hasn't messaged your sender in the last 24 hours.

**Error code:** `SERVICE_WINDOW_CLOSED`

**Should you try again?** No, not as a free-form message. Send a template instead.

## Why it happens

* Outside the 24-hour customer service window, you can reach a recipient only with an approved template.

## How to fix it

1. Send an approved [message template](https://docs.wavix.com/messaging/whatsapp/concepts.md#message-templates) instead of `content`.
2. After the recipient replies, the window opens again for 24 hours, and you can send free-form messages.

For how the window works, see [Customer service window](https://docs.wavix.com/messaging/whatsapp/concepts.md#customer-service-window).

## Technical details

| Detail | Value |
| - | - |
| Returned in | The response to an API request, or a delivery error: the `whatsapp.message.failed` event in `data.error`, and the `error` field of [Retrieve a WhatsApp message](https://docs.wavix.com/api-reference/whatsapp/retrieve-a-whatsapp-message.md) and [List WhatsApp messages](https://docs.wavix.com/api-reference/whatsapp/list-whatsapp-messages.md) |
| HTTP status | `422` (API response only) |
| Code | `SERVICE_WINDOW_CLOSED`: `error_code` in an API response, `code` in a delivery error |
| `error_class` | `permanent` (API response only) |
| `subcode` | `null`: this code has no subcodes (delivery error only) |
| `action` | `fix_and_resend` (delivery error only) |

For the error format and how to handle it, see [Request errors](https://docs.wavix.com/api-reference/errors.md#request-errors) and [WhatsApp delivery errors](https://docs.wavix.com/messaging/whatsapp/troubleshooting.md#how-delivery-errors-reach-you).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.