> For the complete documentation index, see [llms.txt](https://developer.paywall.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.paywall.one/payment-orchestration-integration-document/callback-examples/paywatch.md).

# PayWatch

**Overview:** The related algorithm is triggered when payments remain in a pending state and, by default, checks the payment status after 25 minutes. For payments that remain pending, it sends a notification indicating the final status. In order for this notification to be sent, you must configure the PayWatch setting at the time the payment order is created. Otherwise, Paywall will still perform the status check but will not send you a notification.

<table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody><tr><td><pre><code>PayWatchId
</code></pre></td><td>PayWatch identifier (sent for informational purposes only)</td></tr><tr><td><pre><code>PaymentId
</code></pre></td><td>Payment identifier</td></tr><tr><td><pre><code>MerchantUniqueCode
</code></pre></td><td>Tracking number provided at the time of payment creation</td></tr><tr><td><pre><code>PaymentLastStatusId
</code></pre></td><td><p>The status of the payment before PayWatch intervention</p><p><br>See: <a href="/pages/6zwTxPFyZq6Gwzaran3f">Review </a></p></td></tr><tr><td><pre><code>PaymentNewStatusId
</code></pre></td><td><p>The status of the payment after PayWatch intervention</p><p><br>See: <a href="/pages/6zwTxPFyZq6Gwzaran3f">Review</a></p></td></tr><tr><td><pre><code>PaymentStatusChanged
</code></pre></td><td>Was there a change in the payment status?<br><strong>Example</strong>: Started → Successful</td></tr><tr><td><pre><code>ProviderRequest
</code></pre></td><td>The request sent to the provider at the time of payment inquiry</td></tr><tr><td><pre><code>ProviderResponse
</code></pre></td><td>The response received from the provider at the time of payment inquiry</td></tr><tr><td><pre><code>ProviderHttpStatus
</code></pre></td><td>The HTTP response received from the provider at the time of inquiry</td></tr><tr><td><pre><code>PaymentDateTime
</code></pre></td><td>The date of the payment</td></tr><tr><td><pre><code>Hash
</code></pre></td><td><p>It is the Hash value used to verify that the request originated from Paywall. It is generated using the <code>System Webhook Hash Key</code> created in the Paywall panel.</p><p></p><p>The key mentioned above may vary depending on the value of the <code>HashKeyType</code> parameter. A dynamic structure should be implemented.</p></td></tr><tr><td><pre><code>HashFormat
</code></pre></td><td>The format type used to generate the hash value<br><br>Bkz: <a href="/pages/CwGK9IsyjWbnxDaBvQOq">Hash Formats</a></td></tr><tr><td><pre><code>HashKeyType
</code></pre></td><td>The type of key used in generating the hash value<br><br>See: <a href="/pages/rGeM863mExwJKspEaXUG">Key Types </a></td></tr></tbody></table>

```csharp
public class PayWatchCallbackRequest
{
    public int PayWatchId { get; set; }
    public int PaymentId { get; set; }
    public string MerchantUniqueCode { get; set; }
    public int PaymentLastStatusId { get; set; }
    public int PaymentNewStatusId { get; set; }
    public bool PaymentStatusChanged { get; set; }
    public object ProviderRequest { get; set; }
    public object ProviderResponse { get; set; }
    public int ProviderHttpStatus { get; set; }
    public DateTime PaymentDateTime { get; set; }
}
```


---

# 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://developer.paywall.one/payment-orchestration-integration-document/callback-examples/paywatch.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.
