# Webhook

**How It Works:**\
When enabled, an API call from xPay.Stream to your set Notification Url is done.\
Your API notification URL should be a Public Accessible **HTTP - POST** endpoint.\
Tx Object is post and the bill fields are appended if the deposit belongs to a bill.&#x20;

```javascript
{
	"data": {
		"txID": "c6f7c4bba8b7f0055f0ebfaac2c3a93f2b22967c70f31ef78ff56034effa368e",
		"source": "TN7MFRAUvUJWeVDqLi6UyZr6FUR2LewC6B",
		"destination": "TVbbKgHShGieBJGEJ2F7aHtGdrcKBTcmPm",
		"amount": 10000000,
		"type": "TRC20",
		"timestamp": 1724159760000,
		"block": 46851278,
		"action": "received",
		"networkFeeSUN": 5536440,
		"wallet": "cc59ec7b-d712-4da7-aabe-2d6cc9e46aa3",
		"username": "omega-pos",
		"tag": "elie-coo",
		"address": "TVbbKgHShGieBJGEJ2F7aHtGdrcKBTcmPm",
		"usde": 10004294.863468813,
		"signature": "86669ff93c03681609d9b50d893a05c2a303cbd57681593689384ddaeca63bb2",
		"bill": {
			"uuid": "0dc72d45-48d4-4713-9516-88c27bb80044",
			"address": "TVbbKgHShGieBJGEJ2F7aHtGdrcKBTcmPm",
			"billAmount": 10000000,
			"billRef": "1a9e46f3",
			"canceled": false,
			"closed": true,
			"cooldown": 0,
			"createdAt": 1724159689578,
			"hex": "41D74BFF46309350C4536E3B5AEBDADF64427AA0D7",
			"paidAmount": 10000000,
			"starting": 1724159629578,
			"tag": "XPAY-24e3",
			"testnet": true,
			"txs": [
				{
					"txRef": "f884fe1df8b2c62e894e42b10a94522c36435e874840383aa8aaae7184430e56",
					"txID": "c6f7c4bba8b7f0055f0ebfaac2c3a93f2b22967c70f31ef78ff56034effa368e",
					"amount": 10000000,
					"timestamp": 1724159760000,
					"block": 46851278
				}
			],
			"until": 1724161489578,
			"username": "omega-pos",
			"wallet": "cc59ec7b-d712-4da7-aabe-2d6cc9e46aa3"
		}
	},
	"signature": "81b64563d344633f91ef32ce9af94cafccae568e6625a860b28018440139b4e7"
}
```

**How to enable it?**

<figure><img src="/files/ZY9swVd24NMygF64msRx" alt=""><figcaption><p><strong>Enable Notification URL</strong></p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.xpay.stream/notifications/webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
