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

# Tracking URLs

## Static tracking urls <a href="#h_23a0743546" id="h_23a0743546"></a>

If you provide a tracking url via your API then you should enter it's JSON key in the Tracking URL field as shown below:

[![](https://zapiet-ltd-2e9268abd76f.intercom-attachments-7.com/i/o/525530939/308919e192fbac8763aa8e5a/aBgk8HPGJrEjDtMouv2wpBA-guHYNfCLSg.png-1593365155?expires=1725953400\&signature=81abee09f0ff33b896f48318d778dab8a8d99238f0f45d559add001707476a70\&req=cSIiE8p%2BlIJWFb4f3HP0gBryuNqWGqiOJXtqFZLf9jrobq0FYi4JmwKbG1VK%0A5Qpg0eW7FrAy8hlyrw%3D%3D%0A)](https://zapiet-ltd-2e9268abd76f.intercom-attachments-7.com/i/o/525530939/308919e192fbac8763aa8e5a/aBgk8HPGJrEjDtMouv2wpBA-guHYNfCLSg.png-1593365155?expires=1725953400\&signature=81abee09f0ff33b896f48318d778dab8a8d99238f0f45d559add001707476a70\&req=cSIiE8p%2BlIJWFb4f3HP0gBryuNqWGqiOJXtqFZLf9jrobq0FYi4JmwKbG1VK%0A5Qpg0eW7FrAy8hlyrw%3D%3D%0A)

In the example above we will automatically fetch the value contained within the "tracking\_url" parameter and attached this to the customer's order within Shopify.

***

## Dynamically generated tracking urls <a href="#h_7b0c8d7bf1" id="h_7b0c8d7bf1"></a>

If you do not include a tracking url via your API you can dynamically construct a url using liquid variables.\
​

[![](https://zapiet-ltd-2e9268abd76f.intercom-attachments-7.com/i/o/525530940/5ec3fa083b8038a41f78c6d0/QV51dELd2HoLMM8hyjgRSqSljKCatyVrtw.png-1593364940?expires=1725953400\&signature=aaf9a895e85f33f6106db61bff18a71dcd26a6a45b78e610e328d375602df804\&req=cSIiE8p%2BlIVfFb4f3HP0gM2k%2FjMNSTTQ6TgGNA4gwXvd59cKbp3pmnbsAHAV%0AErwxIVLWkLEGtdEJpA%3D%3D%0A)](https://zapiet-ltd-2e9268abd76f.intercom-attachments-7.com/i/o/525530940/5ec3fa083b8038a41f78c6d0/QV51dELd2HoLMM8hyjgRSqSljKCatyVrtw.png-1593364940?expires=1725953400\&signature=aaf9a895e85f33f6106db61bff18a71dcd26a6a45b78e610e328d375602df804\&req=cSIiE8p%2BlIVfFb4f3HP0gM2k%2FjMNSTTQ6TgGNA4gwXvd59cKbp3pmnbsAHAV%0AErwxIVLWkLEGtdEJpA%3D%3D%0A)

There are currently three variables available:

| Field name       | Description                                                                    | Example          |
| ---------------- | ------------------------------------------------------------------------------ | ---------------- |
| id               | Shopify's unique identifier for the order                                      | 2206491738155    |
| external\_id     | Your unique identifier for the order provided in your Delivery Create response | ABCDEFG12345     |
| tracking\_number | The tracking number provided in your Delivery Create response                  | RETHNKW354W3H438 |

<br>
