# 2 (Resend request)

The **`2` (Resend request)** message is sent by the receiving application to initiate the retransmission of messages.

This function is used:
- If a sequence number gap is detected 
- If the receiving application lost a message
- As a function of the initialization process
<br/><br/>

The **`2` (Resend request)** message can be used to request:
- A single message
- A range of messages
- All messages subsequent to a particular message
<br/><br/>

| Tag      | Name           | Type       | Required                                   | Description                                                                                                                                                                                                                                                                                  |
| -------- | -------------- | ---------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **7**    | `BeginSeqNo`   | `SeqNum`   | **yes**                                    | Message sequence number of the first message in range to be resent.                                                                                                                                                                                                                          |
| **16**   | `EndSeqNo`     | `SeqNum`   | **yes**                                    | Message sequence number of the last message in range to be resent. <br/><br/>If the request is for a single message, **7** `BeginSeqNo` = **16** `EndSeqNo`. <br/>If the request is for all messages subsequent to a particular message, **16** `EndSeqNo`  = `0` (representing infinity).   |

For a sample message and other details, see [`FIX 4.4 : Resend Request <2> message` in the FIX 4.4 documentation](https://www.onixs.biz/fix-dictionary/4.4/msgType_2_2.html).