# Webhooks

Discord and JSON webhooks allow you to receive notifications for events happening on your PayNow store. This can be useful for various things, like keeping track of activity.

{% hint style="info" %}
*If you wish to use JSON webhooks, please read our documentation on webhooks* [*here*](https://docs.paynow.gg/api/webhook-introduction)
{% endhint %}

### How do I create a Discord webhook and connect it to my PayNow store?

1. Visit the [Webhooks](https://dashboard.paynow.gg/webhooks) page located on your dashboard sidebar

<figure><img src="/files/OyaIaS1cEpbgyyegwuZs" alt=""><figcaption></figcaption></figure>

2. Press the "New webhook" button on the top right

<figure><img src="/files/DnaT16O07lqZnsForzdt" alt=""><figcaption></figcaption></figure>

3. Select the type of webhook you wish to use, either Discord or JSON. If you use a Discord URL it will autofill to the Discord option

<figure><img src="/files/BAKLR3oL46uzZDLSWnT0" alt=""><figcaption></figcaption></figure>

4. If you choose to use Discord, on the endpoint URL simply put the Discord webhook URL you get after creating a webhook in your Discord. If you don't know how to create a Discord webhook, follow this [guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
5. For Discord webhooks it's best to create one webhook entry per event if you wish to show Completed Orders, Refunds & Chargeback embeds. To do this let's start with the `Order Completed` event. Subscribe to the `Order Completed` event inside the `Subscribed To` field

<figure><img src="/files/7R8FUWSmKWCFCgg5UHS5" alt=""><figcaption></figcaption></figure>

6. Next you can edit the embed as you wish. All available variables for each event can be found by hovering over `Discord Embed Template` or by looking at [this page](/integration/webhooks/discord-placeholders.md).  Once you have the embed you wish you press update. This will make the event all set up for an `Order Completed` event. See the image below for a completed setup of the `Order Completed` event with some example variables.&#x20;

<figure><img src="/files/b5Bd47OPOSVpvnwbcRXr" alt=""><figcaption></figcaption></figure>

7. Now the event is fully set up for the `Order Completed` event. To set up other events, like Refunds, Chargebacks, or Subscriptions, repeat steps 2-6 for each one. Make sure to adjust the variables for each event, as they may differ.


---

# 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://guides.paynow.gg/integration/webhooks.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.
