# 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>


---

# 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.zapiet.com/last-mile-api/tracking-urls.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.
