> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.trackingmore.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Webhook

### How does webhook work? (How the data flows from TrackingMore to users via Webhook?) 

Webhooks act as a gateway to receive raw data at a particular destination that you define. Webhook is used to ask Trackingmore to push back any updates to your system. This is used when the store wants to send out notifications by themselves or receive the latest delivery status / checkpoint. Users can select when to ask TrackingMore pushes back delivery updates when using webhook. 
This requires you to add a webhook URL in our trackingmore developer system. When completing requesting data, Webhook will respond the data to you through your configured URL. You can also understand it like this: you share an **endpoint** with TrackingMore and TrackingMore will be sending you the payloads in JSON format. And you write a schema to process that and show it on the track page. (The endpoint is the webhook URL) 

### 📢 What you’ll learn
In this tutorial, we’ll discuss:
* [Setup webhook](https://support.trackingmore.com/en/article/webhook-1vrike4/#6-setup-webhook)
* [Update webhook/endpoint](https://support.trackingmore.com/en/article/webhook-1vrike4/#6-update-webhookendpoint)
*  [Test endpoint](https://support.trackingmore.com/en/article/webhook-1vrike4/#6-test-endpoint)
* [Disable or delete webhook](https://support.trackingmore.com/en/article/webhook-1vrike4/#6-disable-or-delete-webhook)


###### Setup webhook
1.  Go to [TrackingMore Developer](https://admin.trackingmore.com/developer) > [Webhooks](https://admin.trackingmore.com/developer/webhooks)
2. Add Webhook URL & description (${color}[#f50000](**4**) Webhook URLs max).
3. Select statuses to start receiving updates (all statuses including info received, in transit, out for delivery, failed attempt, delivered, exception, expired, notfound or specific statuses from all statuses) 
![Add webhook URL](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1s2cfi1.png)
![All statuses](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_nrtnt6.png)
![Specific statuses](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_rma9n7.png)

###### Update webhook/endpoint
1.  Go to [TrackingMore Developer](https://admin.trackingmore.com/developer) > [Webhooks](https://admin.trackingmore.com/developer/webhooks)
2. Click the specific endpoint
3. Actions > update details: endpoint URL, description, version, statuses > update endpoint
![Go to endpoint details](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_i28lhi.png)
![Update details](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_c2jiik.png)
![Update endpoint](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_yvqcr4.png)

###### Test endpoint
1.  Go to [TrackingMore Developer](https://admin.trackingmore.com/developer) > [Webhooks](https://admin.trackingmore.com/developer/webhooks)
2. Click the specific endpoint
3. Actions > test endpoint
![Go to endpoint details](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_i28lhi.png)
![Test endpoint](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1m4qeod.png)

###### Disable or delete webhook
1.  Go to [TrackingMore Developer](https://admin.trackingmore.com/developer) > [Webhooks](https://admin.trackingmore.com/developer/webhooks)
2. Click the specific endpoint
3. Actions > disable, actions > delete
![Go to endpoint details](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_i28lhi.png)
![Disable or delete webhook](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1yn8h5.png)


For more details about Webhook, please refer to this doc: https://www.trackingmore.com/docs/trackingmore/79dpyqt0qaebs-webhook-overview & more sections below: 
1. [Webhook secure](https://www.trackingmore.com/docs/trackingmore/79dpyqt0qaebs-webhook-overview#webhook-secure)
2. [Retry webhook](https://www.trackingmore.com/docs/trackingmore/79dpyqt0qaebs-webhook-overview#retry-webhooks)
3. [Webhook-Specifications](https://www.trackingmore.com/docs/trackingmore/yy2jwwjtwdapz-webhook-specifications#webhook-specifications)
4. [Webhook outgoing IP](https://www.trackingmore.com/docs/trackingmore/36lvjv4mt85c6-webhook-outgoin-ip)
