> For the complete documentation index, see [llms.txt](https://help.1msg.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.1msg.io/docs/russkii/api-1msg/shablony-waba/shablon-akcii-po-vremeni-limited-time-offer.md).

# Шаблон Акции по времени (Limited-Time Offer)

**Limited-Time Offer Templates** — это **маркетинговые шаблоны WhatsApp**, которые позволяют отправлять сообщения с **ограниченными по времени акциями**. Такие шаблоны показывают **дату истечения предложения** и **работающий таймер обратного отсчета** прямо в сообщении, стимулируя клиентов успеть воспользоваться предложением до его окончания.

После истечения даты нельзя скопировать код.&#x20;

<figure><img src="/files/jJUZtsD9EG3zTcYp3H7f" alt=""><figcaption></figcaption></figure>

#### Основные особенности

* **Категория:** только `MARKETING`.
* Поддержка **таймера обратного отсчета** и **expiration details**, если включено.
* **Footer (подвал)** не поддерживается.
* При просмотре в WhatsApp Web или Desktop приложение таймер/предложение **не отображается** — пользователю будет показано общее уведомление.

## Создание шаблона "**Limited-Time Offer**"

Создание шаблона описано[ в документации API ](https://1msg-docs.web.app/ru#tag/Shablony/operation/addTemplate)в методе /addTemplate.

<details>

<summary>Пример создания шаблона  "<strong>Limited-Time Offer</strong>"</summary>

```json
POST https://api.1msg.io/{{channel}}/addTemplate
Content-Type: application/json
Body:{
  "name": "limited_time_offer_caribbean_pkg_2023",
  "category": "MARKETING",
  "language": "en_US",
  "components": [
    {
      "type": "header",
      "format": "image",
      "example": {
        "header_handle": [
          "https://placehold.co/800x600.jpg"
        ]
      }
    },
    {
      "type": "limited_time_offer",
      "limited_time_offer": {
        "text": "Expiring offer!",
        "has_expiration": true
      }
    },
    {
      "type": "body",
      "text": "Good news, {{1}}! Use code {{2}} to get 25% off all Caribbean Destination packages!",
      "example": {
        "body_text": [
          [
            "Pablo",
            "CARIBE25"
          ]
        ]
      }
    },
    {
      "type": "buttons",
      "buttons": [
        {
          "type": "copy_code",
          "example": "CARIBE25"
        },
        {
          "type": "url",
          "text": "Book now!",
          "url": "https://awesomedestinations.com/offers?code={{1}}",
          "example": [
            "https://awesomedestinations.com/offers?code=n3mtql"
          ]
        }
      ]
    }
  ]
}


```

</details>

## Отправить шаблон "**Limited-Time Offer**" <a href="#kak-otpravit-shablon-katalog" id="kak-otpravit-shablon-katalog"></a>

Отправка шаблона описана [ в документации API ](https://1msg-docs.web.app/ru#tag/Shablony/operation/sendTemplate)в методе /sendTemplate.

<details>

<summary>Пример отправки шаблона "<strong>Limited-Time Offer</strong>"</summary>

expiration\_time\_ms — показывает дату истечения акции. После этой даты нельзя скопировать код.&#x20;

```json
POST https://api.1msg.io/{{channel}}/sendTemplate
Content-Type: application/json
Body: {
  "template": "limited_time_offer_caribbean_pkg_2023",
  "language": {
    "policy": "deterministic",
    "code": "en_US"
  },
  "namespace": "{{namespace}}",
  "params": [
    {
      "type": "header",
      "parameters": [
        {
          "type": "image",
          "image": {
            "link": "https://placehold.co/800x600.jpg"
          }
        }
      ]
    },
    {
      "type": "body",
      "parameters": [
        {
          "type": "text",
          "text": "Pablo"
        },
        {
          "type": "text",
          "text": "CARIBE25"
        }
      ]
    },
    {
      "type": "limited_time_offer",
      "parameters": [
        {
          "type": "limited_time_offer",
          "limited_time_offer": {
            "expiration_time_ms": 1798562800000
          }
        }
      ]
    },
    {
      "type": "button",
      "sub_type": "copy_code",
      "index": 0,
      "parameters": [
        {
          "type": "coupon_code",
          "coupon_code": "CARIBE25"
        }
      ]
    },
    {
      "type": "button",
      "sub_type": "url",
      "index": 1,
      "parameters": [
        {
          "type": "text",
          "text": "n3mtql"
        }
      ]
    }
  ],
  "phone": "XXXXXXXXXXX"
}


        
```

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.1msg.io/docs/russkii/api-1msg/shablony-waba/shablon-akcii-po-vremeni-limited-time-offer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
