# Pain.014

The pain.014 message contains information about the status of the payment, such as whether the payment has been accepted or rejected, the reason for rejection, and the date and time of the status change. It can also include information about the financial institution that processed the payment and the ultimate beneficiary of the transaction.

There can be multiple pain.014 messages generated against a single pain.013 message in the context of payment initiation and status reporting.

The pain.013 messages is used to initiate a payment, while the pain.014 message is used to report the status of the payment initiation. The status of payment can change multiple times as it goes through different stages of processing, such as acceptance, rejection, processing, and completion.

Each time there is a change in the status of a payment, a new pain.014 message may be generated to report the updated status. For example, if a payment is initially accepted but later rejected due to insufficient funds, two separate pain.014 messages would be generated - one to report the initial acceptance and another to report the subsequent rejection.

A sample payload of a Pain.014 message is as follows;

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.014.001.06" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <pain.014.001.06>
    <GrpHdr>
      <MsgId>202204160001</MsgId>
      <CreDtTm>2022-04-16T12:00:00</CreDtTm>
      <OrgnlMsgId>202204150001</OrgnlMsgId>
      <OrgnlMsgNmId>pain.013</OrgnlMsgNmId>
      <NbOfTxs>1</NbOfTxs>
      <SttlmInf>
        <SttlmMtd>CLRG</SttlmMtd>
        <SttlmAcct>
          <Id>
            <IBAN>GB29NWBK60161331926819</IBAN>
          </Id>
        </SttlmAcct>
      </SttlmInf>
    </GrpHdr>
    <OrgnlPmtInfAndSts>
      <OrgnlPmtInfId>00001</OrgnlPmtInfId>
      <PmtInfSts>RJCT</PmtInfSts>
      <StsRsnInf>
        <Rsn>
          <Cd>AM05</Cd>
        </Rsn>
      </StsRsnInf>
    </OrgnlPmtInfAndSts>
  </pain.014.001.06>
</Document>
```

In this example, the PAIN.014 message includes the original message ID and name (PAIN.013), the number of transactions, settlement information, and information about the original payment instruction (OrgnlPmtInfAndSts). The payment information status is updated to "RJCT" (rejected), and a reason code "AM05" is provided in the StsRsnInf section to explain the rejection. This way, the receiving party can easily identify which payment instruction is being modified or canceled, and what changes have been made.
