# Webhook

{% hint style="info" %}
Webhook can be used for you to automatically send messages via Telegram to yourself for you to be notified of recent purchases made by your customers.\
\
You can also use this webhook to send your customer's purchase information into your Google Excel and more.
{% endhint %}

{% hint style="success" %}
This Webhook function is only available on Standard, Premium and Ultimate plan subscriptions.
{% endhint %}

### Webhooks Setup

1. Click on **Settings (1)** and scroll down until you find the **Webhooks section (2)**.

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

2. Press the **Add Webhook** button to add your webhook.

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

3. Select **Webhook Status (1)**, then enter the name you want to assign in the **Name field (2)** and enter the webhook link in the **Callback URL field (3)**.

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

4. Press the **'||'** icon to stop receiving data from your webhook and press it again to resume receiving data from the webhook. Press the **trash can icon** to delete the webhook.

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

### Webhook Data

In Commerce, you can use the webhook to pull data for each:

<table data-header-hidden><thead><tr><th width="243">State</th><th>Descriptions</th></tr></thead><tbody><tr><td><strong>Order Paid</strong></td><td>Trigger when you mark your order as paid or the customer's order successfully makes a payment</td></tr><tr><td><strong>Order Shipped</strong></td><td>Trigger when you enter the tracking number on the customer's order</td></tr><tr><td><strong>Checkout Abandoned</strong></td><td>Trigger when a customer does not complete payment within 60 minutes</td></tr><tr><td><strong>Checkout Completed</strong></td><td>Trigger when the customer successfully checkout and reaches up to the thank you page</td></tr><tr><td><strong>Checkout Updated</strong></td><td>Trigger when customers receive the Thank you Page Offer (TYPO) promotion you offer</td></tr><tr><td><strong>Order Status Processing</strong></td><td>Trigger when you change the status of a customer's order to Processing</td></tr><tr><td><strong>Order Status Completed</strong></td><td>Trigger when you change the status of a customer's order to Completed</td></tr></tbody></table>

Here, we include the values ​​that you can pull.

| <p><strong>Parameters</strong>: {{ checkout}} <br><strong>Description</strong>: Checkout data<br><strong>Example</strong>: \[Collection]</p>                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Parameters</strong>: {{ checkout.id}}<br><strong>Description</strong>: Id for checkout data<br><strong>Example</strong>: 1262140</p>                                                                                             |
| <p><strong>Parameters</strong>: {{ checkout.domain}} <br><strong>Description</strong>: Domain/Subdomain of your store<br><strong>Example</strong>: mirfaith.myshoppegram.com</p>                                                            |
| <p><strong>Parameters</strong>: {{ checkout.url}} <br><strong>Description</strong>: Your store link<br><strong>Example</strong>: <https://mirfaith.myshoppegram.com> </p>                                                                   |
| <p><strong>Parameters</strong>: {{ checkout.currency}} <br><strong>Description</strong>: Currency used in your store<br><strong>Example</strong>: MYR</p>                                                                                   |
| <p><strong>Parameters</strong>: {{ checkout.total}} <br><strong>Description</strong>: The amount of payment charged<br><strong>Example</strong>: 10</p>                                                                                     |
| <p><strong>Parameters</strong>: {{ checkout.shipping}} <br><strong>Description</strong>: The shipping rates you have set<br><strong>Example</strong>: 0</p>                                                                                 |
| <p><strong>Parameters</strong>: {{ checkout.rate}} <br><strong>Description</strong>: The name of the shipping rates that the customer has chosen<br><strong>Example</strong>: FREE SHIPPING COD</p>                                         |
| <p><strong>Parameters</strong>: {{ checkout.completed\_at}} <br><strong>Description</strong>: The date and time the customer successfully made the payment<br><strong>Example</strong>: 2021-03-03T22:58:32+08:00</p>                       |
| <p><strong>Parameters</strong>: {{ checkout.created\_at}} <br><strong>Description</strong>: The date and time the customer wants to make the payment<br><strong>Example</strong>: 2021-03-03T22:58:17+08:00</p>                             |
| <p><strong>Parameters</strong>: {{ checkout.items}} <br><strong>Description</strong>: Data items/variants in checkout<br><strong>Example</strong>: \[Collection]</p>                                                                        |
| <p><strong>Parameters</strong>: {{ checkout.items\[].product}} <br><strong>Description</strong>: Product data at checkout<br><strong>Example</strong>: \[Collection]</p>                                                                    |
| <p><strong>Parameters</strong>: {{ checkout.items\[].product.name}} <br><strong>Description</strong>: The name of your product<br><strong>Example</strong>: Test </p>                                                                       |
| <p><strong>Parameters</strong>: {{ checkout.items\[].product.sku}} <br><strong>Description</strong>: SKUs for your product variants<br><strong>Example</strong>: 123456</p>                                                                 |
| <p><strong>Parameters</strong>: {{ checkout.items\[].name}} <br><strong>Description</strong>: The name of your product variant<br><strong>Example</strong>: 2 Unit/ Hitam</p>                                                               |
| <p><strong>Parameters</strong>: {{ checkout.items\[].currency}} <br><strong>Description</strong>: Currency used in your store<br><strong>Example</strong>: MYR </p>                                                                         |
| <p><strong>Parameters</strong>: {{ checkout.items\[].price}} <br><strong>Description</strong>: The price of your product variants<br><strong>Example</strong>: 10</p>                                                                       |
| <p><strong>Parameters</strong>: {{ checkout.items\[].quantity}} <br><strong>Description</strong>: The quantity of your variant product that is at Checkout<br><strong>Example</strong>: 1</p>                                               |
| <p><strong>Parameters</strong>: {{ checkout.items\[].subtotal}} <br><strong>Description</strong>: The total price of the variant product at Checkout<br><strong>Example</strong>: 10</p>                                                    |
| <p><strong>Parameters</strong>: {{ checkout.customer}} <br><strong>Description</strong>: Customer data that checkout on your website<br><strong>Example</strong>: \[Collection]</p>                                                         |
| <p><strong>Parameters</strong>: {{ checkout.customer.first\_name}} <br><strong>Description</strong>: The first name of the customer who checked out on your website<br><strong>Example</strong>: Abu</p>                                    |
| <p><strong>Parameters</strong>: {{ checkout.customer.last\_name}}<br><strong>Description</strong>: The last name of the customer who checked out on your website<br><strong>Example</strong>: Ali</p>                                       |
| <p><strong>Parameters</strong>: {{ checkout.customer.phone}} <br><strong>Description</strong>: The phone number of the customer who checked out on your website<br><strong>Example</strong>: 60123456789</p>                                |
| <p><strong>Parameters</strong>: {{ checkout.customer.email}} <br><strong>Description</strong>: Email customers who checkout on your website<br><strong>Example</strong>: <abuali@gmail.com></p>                                             |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address}} <br><strong>Description</strong>: Shipping data entered during checkout on your website<br><strong>Example</strong>: \[Collection]</p>                                      |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.first\_name}} <br><strong>Description</strong>: The first name entered on the shipping page during checkout on your website<br><strong>Example</strong>: Nur</p>              |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.last\_name}}  <br><strong>Description</strong>: The last name entered on the shipping page during checkout on your website <br><strong>Example</strong>: Aishah</p>           |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.phone}} <br><strong>Description</strong>: Phone number entered on the shipping page during checkout on your website<br><strong>Example</strong>: 601122334455</p>             |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.email}}  <br><strong>Description</strong>: Email entered on the shipping page during checkout on your website<br><strong>Example</strong>: <nuraishah@gmail.com></p>          |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.address1}}  <br><strong>Description</strong>: Address entered on the shipping page during checkout on your website<br><strong>Example</strong>: Persiaran Permata Perdana</p> |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.address2}} <br><strong>Description</strong>: Address line 2 (If any) entered on the shipping page during checkout on your website</p><p><strong>Example</strong>: -</p>       |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.zip}} <br><strong>Description</strong>: Postal code entered on the shipping page during checkout on your website<br><strong>Example</strong>: 63000</p>                       |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.city}} <br><strong>Description</strong>: The city entered in the shipping page during checkout on your website<br><strong>Example</strong>: Selangor</p>                      |
| <p><strong>Parameters</strong>: {{ checkout.shipping\_address.state}} <br><strong>Description</strong>: The state entered in the shipping page during checkout on your website<br><strong>Example</strong>: Cyberjaya</p>                   |


---

# 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.shoppego.com/en/settings/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.
