> For the complete documentation index, see [llms.txt](https://docs.xplorpay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xplorpay.com/api-reference/webhooks/prerequisites.md).

# Prerequisites

Before you start using webhooks, ensure you meet the following prerequisites:

### Technical requirements

* Create a publicly accessible HTTPS endpoint that can receive and process webhook payloads.
* Set up appropriate error-handling and retry logic.
* Implement the authentication method applicable to your webhook type:
  * **Legacy Transaction Webhooks:** Implement digital-signature verification to validate webhook signatures ([Transaction webhooks](https://docs.xplorpay.com/api-reference/webhooks/working-with-webhooks/transaction-webhooks)).
  * **Enhanced webhooks:** If shared-secret authentication is configured, validate the `X-Webhook-Secret` HTTP request header before processing webhook events.

For more information about authentication methods, see [Webhook Authentication](https://docs.xplorpay.com/api-reference/webhooks/webhook-authentication).

### Webhook configuration

The setup process depends on the webhook type.

#### Legacy webhooks

Register your webhook URL with the integration team. They complete the registration and configure the endpoint on the merchant account to receive POST events.

Your publicly accessible HTTPS endpoint must:

* Accept incoming `HTTP POST` requests.
* Return an HTTP `200 OK` status code to confirm receipt.

#### Enhanced webhooks

Setup of enhanced webhooks is handled internally by Xplor Pay. Supported ACH and card transaction events can be enabled and customized for an individual merchant or an entire partner portfolio/HNK.

For more details, see [Webhook Authentication](https://docs.xplorpay.com/api-reference/webhooks/webhook-authentication).

### **Webhook configuration by user type** <a href="#webhook-configuration-by-user-type" id="webhook-configuration-by-user-type"></a>

You can configure legacy webhooks according to your account type.

#### **Software Partners**

The webhook configuration applies during the account setup.

{% hint style="info" %}
The setup process differs depending on the webhook type.
{% endhint %}

#### **Virtual Terminal users**

{% hint style="warning" %}
Users with an **Account Administrator** role can configure supported legacy transaction alerts in the **Virtual Terminal**.
{% endhint %}

To add a webhook URL in the Merchant Portal:

1. Go to **VT Settings** > **Terminal**.
2. Select the **Enable Transaction Alert**.
3. Add your URL to the **Transaction Alert Callback URL** field.
4. Click **Save Terminal Settings**.

{% hint style="info" %}
For more information about Virtual Terminal, see [Virtual Terminal](https://docs.xplorpay.com/merchant-portal/guides/virtual-terminal).
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xplorpay.com/api-reference/webhooks/prerequisites.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
