# Tracking an order

### 🔗 **Endpoint**

#### **GET**

```
https://<track-domain>/api/v1/tracking-url?vendorOrderNumber=<vendorOrderNumber>&mobile=<mobile>
```

### 🧩 **Dynamic Values**

<table><thead><tr><th width="228.89581298828125">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>&#x3C;track-domain></code></td><td>Your Eshopbox tracking domain. You can find this in <strong>Eshopbox workspace → Settings → Customer portal → Setup your tracking page domain</strong>. Example: <code>track.eshopbox.com</code></td></tr><tr><td><code>vendorOrderNumber</code></td><td>Customer Order ID of the order</td></tr><tr><td><code>mobile</code></td><td>Shipping phone number associated with the order</td></tr></tbody></table>

### 📥 **Request Example**

```
GET https://eshopboxdemo3458.eshopbox.com/api/v1/tracking-url?vendorOrderNumber=ORDER1234&mobile=9999999999
```

***

### ✅ **Success Response (200)**

```json
{
    "orders": [
        {
            "trackingUrl": "https://eshopboxdemo3458.eshopbox.com/VklTMTUyIyMjIzc2NTQ1Njc41Dk=",
            "created_at": "2025-12-08 18:03:17",
            "customerOrderNumber": "ORDER123"
        }
    ]
}
```

#### **Response Fields**

<table><thead><tr><th width="283.1796875">Field</th><th>Description</th></tr></thead><tbody><tr><td><code>trackingUrl</code></td><td>Encoded tracking URL for the order. Use this to redirect the customer.</td></tr><tr><td><code>created_at</code></td><td>Timestamp when the order was created.</td></tr><tr><td><code>customerOrderNumber</code></td><td>Customer Order ID matching the request.</td></tr></tbody></table>

### ⛔ **Error Response (400)**

Occurs when the order does not exist or incorrect `vendorOrderNumber` is provided.

```json
{
    "error": {
        "errors": [
            {
                "domain": "global",
                "reason": "badRequest",
                "message": "CustomerOrderNumber not found"
            }
        ],
        "code": 400,
        "message": "CustomerOrderNumber not found"
    }
}
```


---

# 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://eshop.gitbook.io/eshopbox-developers/order/orders/tracking-an-order.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.
